2 scale - scale a number or numbers in a value by a power of 2
8 If x is an xx-object, scale(x, n) requires xx_scale() to have been
9 defined; conditions on x and n and the type of value returned are
10 determined by the definition of xx_scale().
14 x number (real or complex) or matrix
20 Returns the value of 2^n * x.
22 scale(x,n) returns the same as x << n and x >> -n if x is an integer
23 for which 2^n * x is an integer.
26 > print scale(3, 2), scale(3,1), scale(3,0), scale(3,-1), scale(3,-2)
30 For non-object x, abs(n) < 2^31
33 NUMBER *qscale(NUMBER *x, long n)
34 COMPLEX *cscale(COMPLEX *x, long n)
35 MATRIX *matscale(MATRIX *x, long n)