GOffice.Quad¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
h |
r/w |
||
l |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
Details¶
- class GOffice.Quad¶
- classmethod abs(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the absolute
GOffice.value
of a, storing the result in res.
- classmethod absl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the absolute
GOffice.value
of a, storing the result in res.
- classmethod acos(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the arc cosine of a, storing the result in res.
- classmethod acosl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the arc cosine of a, storing the result in res.
- classmethod add(a, b)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
b (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function adds a and b, storing the result in res.
- classmethod addl(a, b)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
b (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function adds a and b, storing the result in res.
- classmethod asin(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the arc sine of a, storing the result in res.
- classmethod asinl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the arc sine of a, storing the result in res.
- classmethod atan2(y, x)¶
- Parameters:
y (
GOffice.Quad
) – quad-precisionGOffice.value
x (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes polar angle coordinate of the point (x,`y`), storing the result in res.
- classmethod atan2l(y, x)¶
- Parameters:
y (
GOffice.Quadl
) – quad-precisionGOffice.value
x (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes polar angle coordinate of the point (x,`y`), storing the result in res.
- classmethod atan2pi(y, x)¶
- Parameters:
y (
GOffice.Quad
) – quad-precisionGOffice.value
x (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes polar angle coordinate of the point (x,`y`) divided by pi, storing the result in res.
- classmethod atan2pil(y, x)¶
- Parameters:
y (
GOffice.Quadl
) – quad-precisionGOffice.value
x (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes polar angle coordinate of the point (x,`y`) divided by pi, storing the result in res.
- classmethod constant8(data, base, scale)¶
- Parameters:
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function interprets a vector of digits in a given base as a quad-precision
GOffice.value
. It is mostly meant for internal use.
- classmethod cos(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the cosine of a, storing the result in res.
- classmethod cosl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the cosine of a, storing the result in res.
- classmethod cospi(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
- classmethod cospil(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
- classmethod div(a, b)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
b (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function divides a and b, storing the result in res.
- classmethod divl(a, b)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
b (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function divides a and b, storing the result in res.
- classmethod dot_product(a, b)¶
- Parameters:
a ([
GOffice.Quad
]) – vector of quad-precision valuesb ([
GOffice.Quad
]) – vector of quad-precision values
- Returns:
result location
- Return type:
res:
GOffice.Quad
- classmethod dot_productl(a, b)¶
- Parameters:
a ([
GOffice.Quadl
]) – vector of quad-precision valuesb ([
GOffice.Quadl
]) – vector of quad-precision values
- Returns:
result location
- Return type:
res:
GOffice.Quadl
- classmethod end(state)¶
- Parameters:
state (
object
orNone
) – state pointer fromGOffice.Quad.start
.
This ends a section of quad precision arithmetic.
- classmethod endl(state)¶
- Parameters:
state (
object
orNone
) – state pointer fromGOffice.Quad.start
.
This ends a section of quad precision arithmetic.
- classmethod exp(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
- res:
result location
- expb:
(allow-none): power-of-base result scaling location
- Return type:
(res:
GOffice.Quad
, expb:float
)
This function computes the exponential function at a, storing the result in res. If the optional expb is supplied, it is used to return a power of radix by which the result should be scaled. This is useful to represent results much, much bigger than double precision can handle.
- classmethod expm1(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
- classmethod expm1l(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
- classmethod floor(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function takes the floor of a, storing the result in res.
- classmethod floorl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function takes the floor of a, storing the result in res.
- classmethod hypot(a, b)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
b (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the square root of a^2 plus b^2, storing the result in res.
- classmethod hypotl(a, b)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
b (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the square root of a^2 plus b^2, storing the result in res.
- classmethod init(h)¶
- Parameters:
h (
float
) – a double precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This stores the
GOffice.value
h in res. As an exception, this may be called outsideGOffice.Quad.start
andGOffice.Quad.end
sections.
- classmethod log(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the natural logarithm at a, storing the result in res.
- classmethod logl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the natural logarithm at a, storing the result in res.
- classmethod mul(a, b)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
b (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function multiplies a and b, storing the result in res.
- classmethod mul12(x, y)¶
- Parameters:
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function multiplies x and y, storing the result in res with full quad precision.
- classmethod mull(a, b)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
b (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function multiplies a and b, storing the result in res.
- classmethod negate(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function negates a and stores the result in res.
- classmethod negatel(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function negates a and stores the result in res.
- classmethod pow(x, y)¶
- Parameters:
x (
GOffice.Quad
) – quad-precisionGOffice.value
y (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
- res:
result location
- expb:
(allow-none): power-of-base result scaling location
- Return type:
(res:
GOffice.Quad
, expb:float
)
This function computes x to the power of y, storing the result in res. If the optional expb is supplied, it is used to return a power of radix by which the result should be scaled. Such scaling can be done with the scalbn function, typically after combining multiple such terms. This is useful to represent results much, much bigger than double precision can handle.
- classmethod scalbnl(res, a, n)¶
- Parameters:
res (
GOffice.Quadl
) –a (
GOffice.Quadl
) –n (
int
) –
- classmethod sin(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the sine of a, storing the result in res.
- classmethod sinl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the sine of a, storing the result in res.
- classmethod sinpi(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
- classmethod sinpil(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
- classmethod sqrt(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function takes the square root of a, storing the result in res.
- classmethod sqrtl(a)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function takes the square root of a, storing the result in res.
- classmethod start()¶
- Returns:
a pointer to pass to
GOffice.Quad.end
() when done.- Return type:
Initializes
GOffice.Quad
arithmetic. Any use ofGOffice.Quad
must occur between calls toGOffice.Quad.start
() andGOffice.Quad.end
().
- classmethod startl()¶
- Returns:
a pointer to pass to
GOffice.Quad.end
() when done.- Return type:
Initializes
GOffice.Quad
arithmetic. Any use ofGOffice.Quad
must occur between calls toGOffice.Quad.startl
() andGOffice.Quad.end
().
- classmethod sub(a, b)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
b (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quad
This function subtracts a and b, storing the result in res.
- classmethod subl(a, b)¶
- Parameters:
a (
GOffice.Quadl
) – quad-precisionGOffice.value
b (
GOffice.Quadl
) – quad-precisionGOffice.value
- Returns:
result location
- Return type:
res:
GOffice.Quadl
This function subtracts a and b, storing the result in res.
- scalbn(a, n)¶
- Parameters:
a (
GOffice.Quad
) –n (
int
) –
- value()¶
- Returns:
closest double precision
GOffice.value
to self. As an exception, this may be called outsideGOffice.Quad.start
andGOffice.Quad.end
sections.- Return type: