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

Nitesh KejriwalRank #253 · 9.9K reputationPosted May 1, 2012, 7:42 PM EDT
Maximilian15 reputationPosted May 2, 2012, 7:24 AM EDT
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
Roy S194 reputationPosted May 4, 2012, 10:55 AM EDT
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'.
Maximilian15 reputationPosted May 8, 2012, 1:17 AM EDT
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
VulpesRank #55 · 29.2K reputationPosted May 8, 2012, 12:29 PM EDT
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);