Guest User

Untitled

a guest
Jul 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. > set.seed(42)
  2.  
  3. > N <- 5
  4.  
  5. > vec <- complex(5, rnorm(5), rnorm(5))
  6.  
  7. > t(getRe(vec))
  8. [,1] [,2] [,3] [,4] [,5]
  9. [1,] -0.9390771 -0.04167943 0.8294135 -0.4393582 -0.3140354
  10.  
  11. > Re(vec)
  12. [1] -0.93907708 -0.04167943 0.82941349 -0.43935820 -0.31403543
  13.  
  14. Warning message:
  15. In getRe(vec) : imaginary parts discarded in coercion
Add Comment
Please, Sign In to add comment