Ops.mpc: Basic Arithmetic Operators for Arbitrarily High Precision...

Description Usage Arguments Details Value References See Also Examples

Description

Addition, subtraction, multiplication, division, power, and equality functions for MPC types.

Usage

1
2
## S3 method for class 'mpc'
Ops(e1, e2)

Arguments

e1, e2

MPC complex numbers, or some numeric and complex types that can be coerced to MPC complex.

Details

The operations work when both operands are an MPC complex number, but some binary operations between MPC complex numbers and other types are not yet implemented.

Value

An object of (S3) class mpc, which the user should use as a normal numeric value. The precision of the resulting complex number is the maximum of the precision used for x and y. Currently, the implementation does not support use as a numeric vector.

References

Andeas Enge, Micka\"el Gastineau, Philippe Th\'eveny, and Paul Zimmermann, mpc — A library for multiprecision complex arithmetic with exact rounding, see http://www.multiprecision.org.

See Also

complex.

Examples

1
2
library(mpc)
summary(mpc(3) + mpc(3,50))

mpc documentation built on May 2, 2019, 5:25 p.m.