Autor Beitrag
rizor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: So 15.10.06 23:08 
Hallo,

ich hab folgendes Problem.

Ein Edit wird von mir ausgelesen.

Edit= 4x^2+21x-4

Dann spalte ich das Edit in 4x^2, +21x und -4 auf
und dann habe ich 4x^2 in 4x*x umgewandelt.

Nun möchte ich, dass 4x*x+21x-4 so umgewandelt wird, dass ich für x Werte einsetzen kann.

4x*x+21x-4 ist ein String.
Ist es möglich ein String so umzuwandeln, dass ich dann ein ergebnis erhalte, wenn ich zum Beispiel für x 1,5 einsetze?

Danke im voraus.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 15.10.06 23:41 
StrToInt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 15.10.06 23:45 
Moin!

Such mal nach Suche in: Delphi-Forum, Delphi-Library MATHEPARSER. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Mo 16.10.06 17:47 
Danke.
Ich dachte net, dass das so leicht geht.

Ich möchte aber selbst einen einfachen parser schreiben.
Danke