Some Elementary Functions
Prev: Integer Division by Constants
Next: Unusual Bases for Number Systems
Sections
11-1Integer Square Root11-2Integer Cube Root11-3Integer Exponentiation11-4Integer Logarithm
Problems
-
Is the correct integer fourth root of an integer obtained by computing the integer square root of the integer square root of ?
-
Code the 64-bit version of the cube root routine that is mentioned at the end of Section 11-2. Use the
long longC data type. Do you see an alternative method for handling the overflow ofbthat probably results in a faster routine? -
How many multiplications does it take to compute modulo , where is the computer’s word size?
-
Describe in simple terms the functions (a) and (b) for an integer greater than 0.