Logo

Programming-Idioms

History of Idiom 77 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-09-03, 16:08:36

Version 7

2015-09-05, 16:57:59

Idiom #77 Complex number

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

Idiom #77 Complex number

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

Code
let i = ( 0 :+ 1 ) ; x = 3 * i - 2 in x * i
Doc URL
http://hackage.haskell.org/package/base/docs/Data-Complex.html#v:-58--43-