wholebinary | R Documentation |
Auxiliary function used for generating expansion of a number, the binary expansion of length nc of the integer part is the first row and the binary expansion of length nc of the fractional part is the second row of the matrix. The sign as appended into the final list object which the function returns.
wholebinary(x, nc = 31)
x |
is a decimal number |
nc |
is the length of the binary expansion and defines the number of columns of the output matrix |
This function generates a list with a binary matrix rmat with two rows and the sign sgn in a separate entry of the list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.