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 |
|
|
Details¶
- class GOffice.Quad¶
- 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.startl
.
This ends a section of quad precision arithmetic.
- classmethod exp(a)¶
- Parameters:
a (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
- res:
result location
- exp2:
(allow-none): power-of-2 result scaling location
- Return type:
(res:
GOffice.Quad
, exp2:float
)
This function computes the exponential function at a, storing the result in res. If the optional exp2 is supplied, it is used to return a power of 2 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 plugs 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 plugs 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 pow(x, y)¶
- Parameters:
x (
GOffice.Quad
) – quad-precisionGOffice.value
y (
GOffice.Quad
) – quad-precisionGOffice.value
- Returns:
- res:
result location
- exp2:
(allow-none): power-of-2 result scaling location
- Return type:
(res:
GOffice.Quad
, exp2:float
)
This function computes x to the power of y, storing the result in res. If the optional exp2 is supplied, it is used to return a power of 2 by which the result should be scaled. This is useful to represent results much, much bigger than double precision can handle.
- 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.endl
() when done.- Return type:
Initializes
GOffice.Quadl
arithmetic. Any use ofGOffice.Quadl
must occur between calls toGOffice.Quad.startl
() andGOffice.Quad.endl
().
- 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.
- 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: