Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:complex:properties:im [2016/09/19 13:41] – created Maurits W. Haverkort | documentation:language_reference:objects:complex:properties:im [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Im ====== | ||
+ | ### | ||
+ | The imaginary part of the complex number $z$. | ||
+ | ### | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ### | ||
+ | The following example defines a complex number $z$ and prints its imaginary part | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- z.Im | ||
+ | z=3+2*I | ||
+ | print(" | ||
+ | z.Im = -2 | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | The imaginary part of z = (3+2 I) is 2 | ||
+ | The imaginary part of z = (3-2 I) is -2 | ||
+ | </ | ||
+ | |||
+ | ===== List of all properties of complex numbers ===== | ||
+ | {{indexmenu> |