Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:complex:functions:im [2016/09/19 13:40] – created Maurits W. Haverkort | documentation:language_reference:objects:complex:functions:im [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Im ====== | ||
| + | ### | ||
| + | Complex.Im($z$) returns a real number equal to the complex part of $z$ | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | The following example defines $z$ as a complex number and sets $y$ equal to its imaginary part. | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | -- Complex.Im(z) | ||
| + | z = 3 + 2 * I | ||
| + | y = Complex.Im(z) | ||
| + | |||
| + | print(" | ||
| + | print(" | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | z = (3 + 2 I) | ||
| + | y = Im[z] = 2 | ||
| + | </ | ||
| + | |||
| + | ===== List of all functions in complex ===== | ||
| + | {{indexmenu> | ||