Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:objects:complex:properties:im [2016/09/19 13:41] – created Maurits W. Haverkortdocumentation: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("The imaginary part of z = ",z," is ",z.Im)
 +z.Im = -2
 +print("The imaginary part of z = ",z," is ",z.Im)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +The imaginary part of z = (3+2 I) is 2
 +The imaginary part of z = (3-2 I) is -2
 +</file>
 +
 +===== List of all properties of complex numbers =====
 +{{indexmenu>.#1}}
Print/export