rpn(1): fixed exponentiation #57
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "rpn-fix-exp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I figured exponentiating (is that the word?)
x
to the power ofy
(Python:x ** y
) would be more intuitive for existing RPN users (because this matches the operation on HP and Elektronika calculators). It looks like thepowf
method is used likebase.powf(exponent)
. Wouldn'ty.powf(x)
be bringingy
to the power ofx
?Never mind, I looked it up and the HP 41C (basically the gold standard in terms of RPN calculators) is indeed y**x. It looks like Elektronika (which I was referencing, particularly the MK-61 keypad) is an outlier in this regard.
Pull request closed