ToSymbolicForm
Returns a symbolic form of a number as a string.
Syntax
-
ToSymbolicForm(x)
-
x
is a number
-
Description
If x
is a number, then ToSymbolicForm(x)
attempts to return a string containing a simple expression in rational numbers, powers, and mathematical constants, which evaluate to a number very close to x
.
Examples
∑((−2)^n/n!, n, 0, 100)
0.135335283237 (=e⁻²)
ToSymbolicForm(ans)
e⁻²
sin(π/3)
0.866025403784 (=√3/2)
ToSymbolicForm(ans)
√3/2