Post Reply 
Which systems support a COMPLEX data type?
07-19-2023, 12:24 AM
Post: #21
RE: Which systems support a COMPLEX data type?
In R language:

Code:

a <- sqrt(-1 + 0i)            # sqrt(-1) doesn't work → Warning message: In sqrt(-1) : NaNs produced
b <- 2-3i                     # (2 -3i) is possible
c <- 42

d <- a + b + c

print(d)

result: 44 − 2i

Bruno
Sanyo CZ-0124 ⋅ TI-57 ⋅ HP-15C ⋅ Canon X-07 + XP-140 Monitor Card ⋅ HP-41CX ⋅ HP-28S ⋅ HP-50G ⋅ HP-50G
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Which systems support a COMPLEX data type? - FLISZT - 07-19-2023 12:24 AM



User(s) browsing this thread: 1 Guest(s)