|
I want the sign up form on my site to have a field that takes the sum of a math equation and use rails validation to validate it. Whats the best way to do it?
i.e
What is 6 + 9 ? [ 8 ]
Error Message : You have entered the wrong number
Started by IBarnes on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember that the model object you create for the new action is a different instance the lines of:
def validate unless math_equation_answered? errors.add("math_answer", "is incorrect") end end
The implementation of math....
model class.
|
|
Hi This is my first question in this forum, so please bear with me and I hope I'm not violating any rules. I am looking at different ways to model scattered 3d data as a gridded function (over xy support, z=z(x,y)).
Answering another question, coryan ...
Started by rychphd on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's a parabolic partial differential equation; the rate of change is changing, so you have ∂²t.
|
|
Dear All,
I hope somebody here can help me with my problem.
I have matrix equation below:
[M] = [A][R] + [B][L]
where: A and B = 2 by 2 matrices
M , R , L , and = 2 by 1 matrix.
To estimate one specific value of A and B , I have 9 different data of [M...
Started by Bree on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Least....
You're going to enter your data least squares fitting capabilities .
It sounds like a least squares fitting problem.
UPDATE:
This updated equation makes sense.
This equation makes no sense to me.
You can't matricies of different sizes.
|
Ask your Facebook Friends
|
Why does model.diff return 18446744073709551615 in template, when model is like this and model.pos is 0 and model.neg is 1?:
class Kaart(models.Model): neg = models.PositiveIntegerField(default=0) pos = models.PositiveIntegerField(default=0) def diff(...
Started by Zayatzz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For your reference, 18....
You're getting underflow, where self.pos - self.neg should give -1 , but you have a positive field, so it wraps around and you get 0 - 1 = 18446744073709551615 , the largest positive number representable by PositiveIntegerField .
|
|
I have a spreadsheet with a number of graphs on, and I have displayed the trend-lines / regression lines on these graphs. These are not simple linear regression lines, but are high order polynomial ones.
Is there any way that I can use the equations of...
Started by a_m0d on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Then you can put the coefficients back.
I don't know specifically, but have a look at the object model of the graph object in VBA to see if you can access the regression equation inside VBA.
|
|
Hi all,
Interesting point published in The Guardian says about the BS formula
I would like to discuss with all of you this article... but from my point of view BS is only a tool, the crass is caused by human, not by a formula.
http://www.guardian.co.uk...
Answer Snippets (Read the full thread at wilmott):
"Misused", perhaps, or "mis-applied" by people who made comments I strongly suggest
http... .
Not sure how an equation can be "abused".
It happens, especially when you don't know.
The gentleman confused Li copula model with BS equation.
|
|
Hello.
I have laggy gaming on my broadband connection. It is intermittant, but affects me about 50% of the time I'm online and playing. I play a variety of games, so it is not just one. Just to note, I have no problems with my speed. It is as expected...
Started by alexftw on
, 16 posts
by 7 people.
Answer Snippets (Read the full thread at plus):
Can you run a traceroute/pathping when it's happening so we can get a look at what's going on?
Jojo Thanks Jojo
I can say right now that it happens every few minutes and it is only noticeable... .
HI Alex,
can you say when it's happening and what it's happening on .
|
|
You are both right that slicks would work better, especially with a manual tranny. I'm in total agreement. Still not happening. paulie
Started by Paul_Lovett on
, 16 posts
by 6 people.
Answer Snippets (Read the full thread at network54):
(just Focus and she made them ship a....
Three pedals and TWO Sticks.
Is there a manual "There will ALWAYS be an FE in my LiFE" Here I am in my B model Mack.
CJ/4spd 1989 F100 302/AOD 1959 B Model Mack I don't think I'm that coordinated.
|
|
Hi,
There has been some back and forth discussion about ducted fans in general in this forum and elsewhere. Usually the limitations come from the engine that turns the fan. In general it has been concluded that the efficiency of a ducted fan is lower ...
Started by karoliina.t.salminen on
, 13 posts
by 11 people.
Answer Snippets (Read the full thread at homebuiltairplanes):
Engines and electric motors both have efficiencies that are generally independent of speed (assuming they're running at their design speed), while weight of ... .
Efficiency limitations on ducted fans are entirely related to the fan itself, not the engine .
|
|
I'm an A-level student (I don't know what the US equivalent is sorry, I'm not an undergraduate is what I'm saying), and I've independently done a project on wave functions for a few simple stationary systems; particle in a box and quantum harmonic oscillator...
Started by tomothy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at physicsforums):
(The second derivative of ψ(x.
A general wave it starts out as an ordinary differential equation of the second order.
The stationary states are just a good method to solve the Schroedinger equation.
|