Struct easy_complex::ExpComplex
[−]
[src]
pub struct ExpComplex {
pub arg: f64,
pub module: f64,
}Fields
arg: f64
module: f64
Methods
impl ExpComplex[src]
fn new() -> ExpComplex[src]
fn new_from(f: NumComplex) -> ExpComplex[src]
fn real(&self) -> f64[src]
fn imag(&self) -> f64[src]
fn sqrt(&self) -> Result<Vec<ExpComplex>, &'static str>[src]
fn root(&self, r: usize) -> Result<Vec<ExpComplex>, &'static str>[src]
fn pow(&self, p: usize) -> ExpComplex[src]
fn conjugate(&self) -> ExpComplex[src]
fn abs(&self) -> f64[src]
fn ln(&self) -> ExpComplex[src]
Trait Implementations
impl Clone for ExpComplex[src]
fn clone(&self) -> ExpComplex[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for ExpComplex[src]
impl Complex for ExpComplex[src]
impl Display for ExpComplex[src]
Display of the numbers with a general computation style
Examples
extern crate easy_complex; use easy_complex::{ExpComplex, NumComplex, ContainedInComplex}; let exp = 1.complex(); println!("{}", exp); //Prints in exponential form --> 1.0 · exp(0.0j) println!("{}", NumComplex::new_from(exp)); //Prints in coordinates --> 1.0 + 0.0j
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Add<ExpComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the + operator.
fn add(self, other: ExpComplex) -> ExpComplex[src]
Performs the + operation.
impl<'a, 'b> Add<&'b ExpComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the + operator.
fn add(self, other: &'b ExpComplex) -> ExpComplex[src]
Performs the + operation.
impl Add<NumComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the + operator.
fn add(self, other: NumComplex) -> ExpComplex[src]
Performs the + operation.
impl<'a, 'b> Add<&'b NumComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the + operator.
fn add(self, other: &'b NumComplex) -> ExpComplex[src]
Performs the + operation.
impl Neg for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn neg(self) -> ExpComplex[src]
Performs the unary - operation.
impl<'a> Neg for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn neg(self) -> ExpComplex[src]
Performs the unary - operation.
impl Sub<ExpComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn sub(self, other: ExpComplex) -> ExpComplex[src]
Performs the - operation.
impl<'a, 'b> Sub<&'b ExpComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn sub(self, other: &'b ExpComplex) -> ExpComplex[src]
Performs the - operation.
impl Sub<NumComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn sub(self, other: NumComplex) -> ExpComplex[src]
Performs the - operation.
impl<'a, 'b> Sub<&'b NumComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the - operator.
fn sub(self, other: &'b NumComplex) -> ExpComplex[src]
Performs the - operation.
impl Mul<ExpComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the * operator.
fn mul(self, other: ExpComplex) -> ExpComplex[src]
Performs the * operation.
impl<'a, 'b> Mul<&'b ExpComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the * operator.
fn mul(self, other: &'b ExpComplex) -> ExpComplex[src]
Performs the * operation.
impl Mul<NumComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the * operator.
fn mul(self, other: NumComplex) -> ExpComplex[src]
Performs the * operation.
impl<'a, 'b> Mul<&'b NumComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the * operator.
fn mul(self, other: &'b NumComplex) -> ExpComplex[src]
Performs the * operation.
impl Div<ExpComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the / operator.
fn div(self, other: ExpComplex) -> ExpComplex[src]
Performs the / operation.
impl<'a, 'b> Div<&'b ExpComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the / operator.
fn div(self, other: &'b ExpComplex) -> ExpComplex[src]
Performs the / operation.
impl Div<NumComplex> for ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the / operator.
fn div(self, other: NumComplex) -> ExpComplex[src]
Performs the / operation.
impl<'a, 'b> Div<&'b NumComplex> for &'a ExpComplex[src]
type Output = ExpComplex
The resulting type after applying the / operator.
fn div(self, other: &'b NumComplex) -> ExpComplex[src]
Performs the / operation.