Einzelnen Beitrag anzeigen
Alt 02.11.2003, 15:50   #2
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Ich würde das ganze selber schreiben:
Code:
privat static float calculateEquation(float x, int a, int b, int c, int d){
return (a*Math.pow(x,3)+b*Math.pow(x,2)+c*x+d);}
Die Funktion wird für gleichungen höherer Ordnung einfach überladen.

Wenn du unbedingt einen String als Eingabe willst wird es mühsamer.

Jak

<edit>
P.S.: Vielleicht hilft dir auch der Quelltext des Applets auf dieser Seite weiter:http://home.arcor.de/rolf.mossbach/J...n.Applet1.html
</edit>
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten