Learn R Programming

Brobdingnag (version 1.0-4)

Complex: Real and imaginary manipulation

Description

Get or set real and imaginary components of brobs or glubs.

Usage

## S3 method for class 'glub':
Re(x)
## S3 method for class 'glub':
Im(x)
## S3 method for class 'glub':
Mod(x)
## S3 method for class 'glub':
Conj(x)
## S3 method for class 'glub':
Arg(x)
Re(x) <- value
Im(x) <- value

Arguments

x
object of class glub
value
object of class numeric or brob

Value

  • Functions Re() and Im() return an object of class brob; functions Re<-() and Im<-() return an object of class glub

Examples

Run this code
a <- cbrob(1:10,brob(1e100))
Im(a) <- 11:1
a

Run the code above in your browser using DataLab