Logo

Programming-Idioms

History of Idiom 77 > diff from v23 to v24

Edit summary for version 24 by foobar:
New Lisp implementation by user [foobar]

Version 23

2018-05-15, 17:40:17

Version 24

2019-09-26, 15:33:12

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
(let ((x #c(-2 3)))
  (* x #c(0 1)))