RosettaCodeData/Task/Arithmetic-Complex/J/arithmetic-complex.j

11 lines
99 B
Plaintext

x=: 1j1
y=: 3.14159j1.2
x+y
4.14159j2.2
x*y
1.94159j4.34159
%x
0.5j_0.5
-x
_1j_1