rpn(1): fixed exponentiation #57
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
joke
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bonsai/coreutils#57
Loading…
Reference in New Issue
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