#include <iostream>
#include <math.h>
#include "Musimat.h"
Go to the source code of this file.
Classes | |
class | Complex |
Complex class implements a set of data types, conversions, and operations for complex numbers. More... | |
Functions | |
Real | RealPart (Complex c) |
Convenience function to get the real part of a Complex number. | |
Real | ImagPart (Complex c) |
Convenience function to get the imaginary part of a Complex number. | |
Void | RealPart (Complex &c, Real r) |
Convenience function to set the real part of a Complex number. | |
Void | ImagPart (Complex &c, Real r) |
Convenience function to set the imaginary part of a Complex number. | |
Complex | Abs (Complex c) |
Convenience function to return the absolute value of a Complex number. | |
Complex | Conjugate (Complex c) |
Convenience function to return the conjugate value of a Complex number. | |
Complex | Exp (Complex a, Complex b) |
Raise Complex a to the power of Complex b. | |
Complex | Exp (Real r, Real theta) |
Raise Real r to the power of Real theta. |
The Complex datatype.
Definition in file Complex.h.
Convenience function to return the absolute value of a Complex number.
Definition at line 263 of file Complex.h.
References Complex::Abs(), and Return.
Referenced by RealToRational().
Convenience function to set the imaginary part of a Complex number.
Definition at line 260 of file Complex.h.
References Complex::i().
{ c.i(r); }
Convenience function to set the real part of a Complex number.
Definition at line 257 of file Complex.h.
References Complex::r().
{ c.r(r); }