Bug 288355 - Equation parser makes it difficult to exponentiate things with other things
Summary: Equation parser makes it difficult to exponentiate things with other things
Status: RESOLVED NOT A BUG
Alias: None
Product: kst
Classification: Applications
Component: equations (show other bugs)
Version: 2.0.4
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 20:26 UTC by D. V. Wiebe
Modified: 2012-02-29 00:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.