GOffice.Quad¶
Methods¶
| class | acos(a) | 
| class | acosl(a) | 
| class | add(a, b) | 
| class | addl(a, b) | 
| class | asin(a) | 
| class | asinl(a) | 
| class | atan2(y, x) | 
| class | atan2l(y, x) | 
| class | atan2pi(y, x) | 
| class | atan2pil(y, x) | 
| class | constant8(data, base, scale) | 
| class | cos(a) | 
| class | cosl(a) | 
| class | cospi(a) | 
| class | cospil(a) | 
| class | div(a, b) | 
| class | divl(a, b) | 
| class | dot_product(a, b) | 
| class | dot_productl(a, b) | 
| class | end(state) | 
| class | endl(state) | 
| class | exp(a) | 
| class | expm1(a) | 
| class | expm1l(a) | 
| class | floor(a) | 
| class | floorl(a) | 
| class | functional() | 
| class | functionall() | 
| class | hypot(a, b) | 
| class | hypotl(a, b) | 
| class | init(h) | 
| class | log(a) | 
| class | logl(a) | 
| class | mul(a, b) | 
| class | mul12(x, y) | 
| class | mull(a, b) | 
| class | pow(x, y) | 
| class | sin(a) | 
| class | sinl(a) | 
| class | sinpi(a) | 
| class | sinpil(a) | 
| class | sqrt(a) | 
| class | sqrtl(a) | 
| class | start() | 
| class | startl() | 
| class | sub(a, b) | 
| class | subl(a, b) | 
| value() | 
Details¶
- 
class GOffice.Quad¶
- 
classmethod acos(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.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-precision- GOffice.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. 
- a (
 - 
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. 
- a (
 - 
classmethod asin(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.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-precision- GOffice.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. 
- y (
 - 
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. 
- y (
 - 
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. 
- y (
 - 
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. 
- y (
 - 
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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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. 
- a (
 - 
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. 
- a (
 - 
classmethod dot_product(a, b)¶
- Parameters: - a ([GOffice.Quad]) – vector of quad-precision values
- b ([GOffice.Quad]) – vector of quad-precision values
 - Returns: - result location - Return type: - res: - GOffice.Quad
- a ([
 - 
classmethod dot_productl(a, b)¶
- Parameters: - a ([GOffice.Quadl]) – vector of quad-precision values
- b ([GOffice.Quadl]) – vector of quad-precision values
 - Returns: - result location - Return type: - res: - GOffice.Quadl
- a ([
 - 
classmethod end(state)¶
- Parameters: - state ( - objector- None) – state pointer from- GOffice.Quad.start.- This ends a section of quad precision arithmetic. 
 - 
classmethod endl(state)¶
- Parameters: - state ( - objector- None) – state pointer from- GOffice.Quad.startl.- This ends a section of quad precision arithmetic. 
 - 
classmethod exp(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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. 
- a (
 - 
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. 
- a (
 - 
classmethod init(h)¶
- Parameters: - h ( - float) – a double precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This stores the - GOffice.valueh in res. As an exception, this may be called outside- GOffice.Quad.startand- GOffice.Quad.endsections.
 - 
classmethod log(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.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-precision- GOffice.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. 
- a (
 - 
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. 
- a (
 - 
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. 
- x (
 - 
classmethod sin(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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-precision- GOffice.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: - objector- None- Initializes - GOffice.Quadarithmetic. Any use of- GOffice.Quadmust occur between calls to- GOffice.Quad.start() and- GOffice.Quad.end().
 - 
classmethod startl()¶
- Returns: - a pointer to pass to - GOffice.Quad.endl() when done.- Return type: - objector- None- Initializes - GOffice.Quadlarithmetic. Any use of- GOffice.Quadlmust occur between calls to- GOffice.Quad.startl() and- GOffice.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. 
- a (
 - 
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. 
- a (
 - 
value()¶
- Returns: - closest double precision - GOffice.valueto self. As an exception, this may be called outside- GOffice.Quad.startand- GOffice.Quad.endsections.- Return type: - float
 
- 
classmethod