Description Usage Arguments Value See Also Examples
Expansion of a number between 0 and 1 in a given integer base.
1 | floatExpand01(u, base = 2)
|
u |
real number between 0 and 1 |
base |
the base of the expansion (integer) |
The digits of the expansion of u
in a vector.
floatExpand
to expand a positive number.
1 2 3 | floatExpand01(0.125)
0*1/2 + 0*1/2^2 + 1*1/2^3
floatExpand01(1/3+1/3^3, base=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.