Simplifying results from rat function
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ken Bannister
el 19 de En. de 2022
Respondida: Walter Roberson
el 19 de En. de 2022
Suppose I have found the decimal value:
0.642857142857143
Which by the way I know to be 9/14
if I go:
result =rat(0.642857142857143)
I get the interesting symbolic output:
'1 + 1/(-3 + 1/(5))'
How do I now go about turning this symbolic numerical expression into something
like '9/14' ?
I thought maybe simplifyFraction would suffice, but looks like that is reserved for algebraic espressionss
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!