GOffice.Quad

Fields

Name Type Access Description
h float r/w  
l float r/w  

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:
Returns:

result location

Return type:

res: GOffice.Quad

This function adds a and b, storing the result in res.

classmethod addl(a, b)
Parameters:
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-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:
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:
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:
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:
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:
  • data (bytes) – vector of digits
  • base (float) – base of vector’s elements
  • scale (float) – scaling GOffice.value after interpreting digits
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:
Returns:

result location

Return type:

res: GOffice.Quad

This function divides a and b, storing the result in res.

classmethod divl(a, b)
Parameters:
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:
Returns:

result location

Return type:

res: GOffice.Quad

classmethod dot_productl(a, b)
Parameters:
Returns:

result location

Return type:

res: GOffice.Quadl

classmethod end(state)
Parameters:state (object or None) – state pointer from GOffice.Quad.start.

This ends a section of quad precision arithmetic.

classmethod endl(state)
Parameters:state (object or 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 functional()
Return type:bool
classmethod functionall()
Return type:bool
classmethod hypot(a, b)
Parameters:
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:
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 precision GOffice.value
Returns:result location
Return type:res: GOffice.Quad

This stores the GOffice.value h in res. As an exception, this may be called outside GOffice.Quad.start and GOffice.Quad.end sections.

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:
Returns:

result location

Return type:

res: GOffice.Quad

This function multiplies a and b, storing the result in res.

classmethod mul12(x, y)
Parameters:
  • x (float) – double precision GOffice.value
  • y (float) – double precision GOffice.value
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:
Returns:

result location

Return type:

res: GOffice.Quadl

This function multiplies a and b, storing the result in res.

classmethod pow(x, y)
Parameters:
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-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:object or None

Initializes GOffice.Quad arithmetic. Any use of GOffice.Quad must 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:object or None

Initializes GOffice.Quadl arithmetic. Any use of GOffice.Quadl must occur between calls to GOffice.Quad.startl() and GOffice.Quad.endl().

classmethod sub(a, b)
Parameters:
Returns:

result location

Return type:

res: GOffice.Quad

This function subtracts a and b, storing the result in res.

classmethod subl(a, b)
Parameters:
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 outside GOffice.Quad.start and GOffice.Quad.end sections.
Return type:float