(42S) Fractions
|
07-11-2016, 05:06 AM
Post: #1
|
|||
|
|||
(42S) Fractions
HP 42S: Fractions
The program FRACT provides three calculations involving fractions: ADD: add two fractions W/X + Y/Z = (W*Z + X*Y)/(X*Z) MULT: multiply two fractions W/X * Y/Z = (W*Y)/(X*Z) POWER: take a fraction to a power (W/X)^Y = W^Y/X^Y The end of the program stores the resulting numerator in N and the resulting denominator in D. FRACT simplifies the fraction after calculation. Note: FRACT sets the HP 42S to FIX 0 mode. Mixed fractions are not included. Code: HP 42S: Program FRACT Test 1: Addition (ADD) 12/19 + 8/17 = 356/323 W = 12, X = 19, Y = 8, Z = 17 Result: “356./323.” Y: 356, X: 323 Test 2: Multiplication (MULT) 12/19 * 8/17 = 96/323 W = 12, X = 19, Y = 8, Z = 17 Result: “96./323.” Y: 96, X: 323 Test: Power (POWER) (2/7)^3 = 8/343 W = 2, X = 7, Y = 3 Result: “8./343.”, Y: 8, X: 343 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) Fractions - Eddie W. Shore - 07-11-2016 05:06 AM
|
User(s) browsing this thread: 1 Guest(s)