A sample for arithmetical expression evaluation

D

Deleted member 103

Guest
Hi coldraymagic,

i think the bills are not right. ;)


Ciao,
Filippo
 

Attachments

  • Bild1.jpg
    Bild1.jpg
    10.6 KB · Views: 208
  • Bild2.jpg
    Bild2.jpg
    10.5 KB · Views: 214

klaus

Expert
Licensed User
Longtime User
I agree with Filippo, unfortunately your math evaluator doesn't take into account the order of operations Order of operations - Wikipedia, the free encyclopedia !

In Filippo's examples:
sqrt(9) + 2 ^ 2 = 3 + 4 = 7 and not 25
the sqrt operation AND the ^ operation must be executed before the + operation !
your calculation is equivalent to
(sqrt(9) + 2) ^ 2 = 25

Best regards.
 
Last edited:

Rioven

Active Member
Licensed User
Longtime User
Top