Learn R Programming

Brobdingnag (version 1.2-9)

glub-class: Class "glub"

Description

Complex Brobdingnagian numbers

Arguments

Objects from the Class

A glub object holds two slots, both brobs, representing the real and imaginary components of a complex vector.

Slots

real:

Object of class "brob" representing the real component

imag:

Object of class "brob" representing the imaginary component

Extends

Class "swift", directly.

Methods

.cPair

signature(x = "brob", y = "glub"): ...

.cPair

signature(x = "ANY", y = "glub"): ...

.cPair

signature(x = "glub", y = "glub"): ...

.cPair

signature(x = "glub", y = "ANY"): ...

.cPair

signature(x = "glub", y = "brob"): ...

Im<-

signature(x = "glub"): ...

Re<-

signature(x = "glub"): ...

Author

Robin K. S. Hankin

See Also

brob-class,swift-class

Examples

Run this code
a <- as.brob(45)
new("glub",real=a, imag=a)

as.brob(5+5i)   # standard R idiom; imaginary component discarded
as.glub(5+5i)   # returns a Glubbdubdribian object


Run the code above in your browser using DataLab