Ratio Equation Program
|
09-08-2017, 11:32 PM
(This post was last modified: 09-08-2017 11:32 PM by Joe Horn.)
Post: #5
|
|||
|
|||
RE: Ratio Equation Program
Here's an even shorter program that takes the 3 known values, entered on the stack in either clockwise or counterclockwise order, starting from the unknown but skipping it. For example, if this is the equation: \(\frac { 51 }{ 57 } =\frac { 68 }{ x } \), then you'd enter the values either of these two ways:
57 ENTER 51 ENTER 68 [clockwise] 68 ENTER 51 ENTER 57 [counterclockwise] Then run this program: Code: 001 ÷ Of course, cross-multiplying and then dividing also takes only two operations, but I like the circular input pattern of this RPN-friendly method. <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Ratio Equation Program - Gamo - 09-08-2017, 11:04 AM
RE: Ratio Equation Program - Didier Lachieze - 09-08-2017, 11:40 AM
RE: Ratio Equation Program - Gamo - 09-08-2017, 11:54 AM
RE: Ratio Equation Program - Didier Lachieze - 09-08-2017, 04:09 PM
RE: Ratio Equation Program - Joe Horn - 09-08-2017 11:32 PM
|
User(s) browsing this thread: 1 Guest(s)