setreal | R Documentation |
Manipulate real or imaginary components of an object
Im(x) <- value
Re(x) <- value
x |
Complex-valued object |
value |
Real-valued object |
Robin K. S. Hankin
A <- matrix(c(1,0.1i,-0.1i,1),2,2)
Im(A) <- Im(A)*3
Re(A) <- matrix(c(5,2,2,5),2,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.