Bug 288355

Summary: Equation parser makes it difficult to exponentiate things with other things
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: equationsAssignee: kst
Status: RESOLVED NOT A BUG    
Severity: normal CC: netterfield
Priority: NOR    
Version: 2.0.4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description D. V. Wiebe 2011-12-06 20:26:34 UTC
AFAICT, if I want to evaluate "a" raised to the power of "b" with the equation parser, I have to write this as:

  EXP(b * LN(a))

which, I grant, works, but isn't very nice.  I would propose something like:

  a ** b

which is something of a de facto standard (FORTRAN, Python, &c.), assuming you're set on using ^ for logical XOR.
Comment 1 Netterfield 2012-02-29 00:50:01 UTC
The kst equation parser uses '^' for exponentiation, as x^2.
It does not have an xor operator.