Hej.
I'm trying to programm a program which shoud calculate funktions....
äm, i mean
the program shoud draw the graf of the funktion and find "zero-points" and the extrem-points....
but have anyone any idears how i shoud make the "input"... so i mean how shoud the user enter the funktion?
thanks for idears (:
Lg Maxi
Loading
VulpesPosted May 8, 2012, 4:29 PM
To use this, you could then do:
Cubic c = new Cubic(txtA.Text, txtB.Text, txtC.Text, txtD.Text);
// evaluate when x = 1
double value = c.Evaluate(1);
MaximilianPosted May 8, 2012, 5:17 AM
okey,
but how can i analyse the string?
strig input = "f(x)=13x^3-2x^(1+1)+4x-43";
or how should I go ahead with the analyse of the txt?
copy the thing into int[] ant create an ArrayList for the sequence(?) and then do one task of the arrayList after another?
Lg
Roy SPosted May 4, 2012, 2:55 PM
Personally I would choose the second type. It's easier and if that works you can always try doing the first type later.
Btw:'function' is with a 'c' not a 'k'.
MaximilianPosted May 2, 2012, 11:24 AM
withe Textbox & button (you have to wirte f(x) = 10x³+2x²-15x+9 into the textbox)
withe radio buttons and textboxes for the variables (you have to chose 1 funktion-type withe te radiobuttons, and then enter the values of the variables a,b,c....)
at first: should i take the first or the second type? or an other one, and which?
and how should i create the "text"-analyse if i chose the type with the tb?
...
Lg
Nitesh KejriwalPosted May 1, 2012, 11:42 PM