Differences

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

Link to this comparison view

documentation:language_reference:objects:complex:functions:re [2016/09/19 13:39] – created Maurits W. Haverkortdocumentation:language_reference:objects:complex:functions:re [2016/10/10 09:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Re ======
  
 +###
 +Complex.Re($z$) returns a real number equal to the real part of $z$
 +###
 +
 +===== Example =====
 +
 +###
 +The following example defines $z$ as a complex number and sets $x$ equal to its real part.
 +###
 +
 +==== Input ====
 +<code Quanty Example.Quanty>
 +-- Complex.Re(z)
 +z = 3 + 2 * I
 +x = Complex.Re(z)
 +
 +print("z = ",z)
 +print("x = Re[z] = ",x)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +z = (3 + 2 I)
 +x = Re[z] = 3
 +</file>
 +
 +===== List of all functions in complex =====
 +{{indexmenu>.#1}}
Print/export