GCWizard icon indicating copy to clipboard operation
GCWizard copied to clipboard

Formula Editor "E" interpretet as Euler

Open AndyPuma opened this issue 4 years ago • 5 comments

"id":1,"name":"[GC944F0] - ALC 5 Brunnen ","formulas":[{"id":1,"formula":"N50°4[A].[DDE] \nE10°5[C].[BEC] \ne(D)"},{"id":2,"formula":"e(1)\n\ne(D)\n\ne(DD)\n\nD"}],"values":[{"id":1,"key":"A","value":"0"},{"id":2,"key":"B","value":"7"},{"id":3,"key":"C","value":"2"},{"id":4,"key":"D","value":"8"}]}

Variable "E" noch nicht bekannt [DDE] wird offensichtlich als e^DD (e^88) interpretiert - sprengt aber den Integer Bereich denn es nicht 922337203685477580700000000000000000000 sondern 1.6516362549940018555283297962648587670696288420000448138888115075308155... × 10^38

Soll -> e^DD nur bei e(DD)

und wenn Zahl zu groß lieber FEHLER ausgeben als ein falsches Ergebnis

e_problem

AndyPuma avatar Jan 16 '22 17:01 AndyPuma

It's an issue (feature?) with the underlying math lib: https://github.com/fkleon/math-expressions/issues/61

S-Man42 avatar Jan 17 '22 12:01 S-Man42

@Mike-3 I will check the logic issue. However, in the formula (1) of the picture you can see three lines. Didn't we decided to interpret each line of a formula separately? So shouldn't the e(D) be colored? In fact, the logic does not calculates it anyway... so color and logic do the same here: ignore it.

So, I believe there are two issues: One with the logic and one with the coloring... don't know...

S-Man42 avatar Jan 17 '22 12:01 S-Man42

I had looked at it. In my opinion everything is correct. If there are brackets, only the part inside the brackets is colored and calculated. The third line is also not calculated.

Mike-3 avatar Jan 18 '22 05:01 Mike-3

Hm my interpretation was other, but it's ok for since the formula parser itself does the same :D

S-Man42 avatar Jan 18 '22 07:01 S-Man42

https://github.com/fkleon/math-expressions/issues/61

S-Man42 avatar Sep 08 '22 07:09 S-Man42