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

9 lines
154 B
Plaintext

>> x = sqrt(-1)
0 + 1i
>> y = 10 + 5i
10 + 5i
>> z = 5*x-y
-10 + 0i
>> isreal(z)
1