powered by
Complex Brobdingnagian numbers
A glub object holds two slots, both brobs, representing the real and imaginary components of a complex vector.
glub
brobs
real
Object of class "brob" representing the real component
"brob"
imag
Object of class "brob" representing the imaginary component
Class "swift", directly.
"swift"
signature(x = "brob", y = "glub"): ...
signature(x = "brob", y = "glub")
signature(x = "ANY", y = "glub"): ...
signature(x = "ANY", y = "glub")
signature(x = "glub", y = "glub"): ...
signature(x = "glub", y = "glub")
signature(x = "glub", y = "ANY"): ...
signature(x = "glub", y = "ANY")
signature(x = "glub", y = "brob"): ...
signature(x = "glub", y = "brob")
signature(x = "glub"): ...
signature(x = "glub")
Robin K. S. Hankin
brob-class,swift-class
brob-class
swift-class
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