- Compute a the
nthroot of an XFL number
- Return the new XFL
Due to speed constraints,
float_rootconverts the argument to an IEEE base-2 double precision floating point before applying n-th root. Therefore the returned result will often contain less precision than expected. If you need better precision you should consider dividing your XFL into a high and a low product then individually take the square roots of those products and multiply the results together.
int64_t float_root ( int64_t float1, uint32_t n );
int64_t three = float_root(nine, 2);
If a negative number is passed the function will return
COMPLEX_NOT_SUPPORTEDif the root is an even root.
|float1||int64_t||An XFL floating point enclosing number representing the floating point number to take the square root of|
|n||uint32_t||The root to compute, for example |
|int64_t||The computed nth root|
If negative, an error:
- the supplied parameter was not a valid XFL enclosing number
- the supplied parameter was a negative number which would result in a complex root.