I write a workflow for converting a given decimal to a simplified fraction as well as simplifying a given fraction.
It saves me a lot of time and I hope it is useful for you too.
Download You can download the workflow file from my GitHub.
Examples
frac .11 ==> .11 = 11 / 100
frac 4/6 ==> 4/6 = 2 / 3
frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11
frac 1.2/0 ==> Error: divided by zero.
frac b/3 ==> Error: Invalid input format
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Update
7 additional math tools are added and the new workflow is renamed to MathTools.
1) Simplify fractions
Examples:
frac .11 ==> .11 = 11 / 100
frac 4/6 ==> 4/6 = 2 / 3
frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11
2) Greatest common divisor
Examples:
3) Least common multiple
Examples:
4) Simplify surds
Examples:
sqrt .0144 ==> √(.0144) = 3/25 = 0.12
sqrt 4 8/81 ==> ³√(8/81) = (2/3) ³√(1/3)
Note:
5) Log functions
Examples:
log 5 ==> log₁₀(5) = 0.698970004336
log2 1.0001 ==> log₂(1.0001) = 0.000144262291095
ln e ==> ln(e) = 1.0
Note:
6) Prime factorization
Examples:
factor 100 ==> factor(100) = [1, 2, 2, 5, 5]
factor 31 ==> factor(31) = [1, 31]
Note:
7) Permutations and Combinations
Examples:
C( 4 2 ==> C(4, 2) = 6
c( 1000 3 ==> C(1000, 3) = 166167000
P( 4 2 ==> P(4, 2) = 12
p( 1000 3 ==> P(1000, 3) = 997002000
Note: