RosettaCodeData/Task/Arithmetic-Complex/RLaB/arithmetic-complex.rlab
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

8 lines
154 B
Text

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