RosettaCodeData/Task/Arithmetic-Complex/RLaB/arithmetic-complex.rlab

9 lines
154 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
>> x = sqrt(-1)
0 + 1i
>> y = 10 + 5i
10 + 5i
>> z = 5*x-y
-10 + 0i
>> isreal(z)
1