Logo

Programming-Idioms

History of Idiom 77 > diff from v24 to v25

Edit summary for version 25 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 24

2019-09-26, 15:33:12

Version 25

2019-09-26, 17:11:28

Idiom #77 Complex number

Declare a complex x and initialize it with value (3i - 2). Then multiply it by i.

Illustration

Idiom #77 Complex number

Declare a complex x and initialize it with value (3i - 2). Then multiply it by i.

Illustration
Code
  complex :: x
  x = (-2,3)
  x = x * (0,1)