[Kst] Equation parser - a possible BUG.
netterfield at astro.utoronto.ca
Sat Nov 20 18:00:30 CET 2004
He's right. The parser is wrong. '-' (and other unary operators?) should
have the same precedence as multiplication (ie, below exponentiation). So we
can interpret -x^2 as (-1)*x^2. The current parser interprets it as (-x)^2.
critcal bug, should be fixed for 1.0.
On November 20, 2004 09:18 am, Ron Daisy wrote:
> Dear George Staikos,
> As far as I understand you are the one that wrote the equation parser of
> While playing with KST I found that the equation parsing failed to parse
> correctly the following equation:
> The problem is that it performs the unary minus operator before the power
> of 2 as dictated
> by the precedence rules of arithmetics. This problem will show it self in
> all similar equation
> and seems to be critical.
> Hope helping improving the KST quality,
> Best regards,
> Kst mailing list
> Kst at kde.org
More information about the Kst