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")
brob-class,swift-class
brob-class
swift-class
# NOT RUN { a <- as.brob(45) new("glub",real=a, imag=a) as.brob(5+5i) # standard colloquial R idiom # }
Run the code above in your browser using DataLab