Struct mexprp::num::ComplexFloat [] [src]

pub struct ComplexFloat {
    pub r: f64,
    pub i: f64,
}

A complex number made of a real f64 and an imaginary f64.

Fields

The real part

The imaginary part

Methods

impl ComplexFloat
[src]

[src]

Returns the complex conjugate of this number

Trait Implementations

impl Debug for ComplexFloat
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ComplexFloat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Num for ComplexFloat
[src]

[src]

Attempts to create an instance of the number from an f64

[src]

Attempts to create an instance of the number from complex parts. It's possible the imaginary part will be ignored for Numbers that don't support it. Read more

[src]

Returns the name of this Num type (used for errors)

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl From<(f64, f64)> for ComplexFloat
[src]

[src]

Performs the conversion.

impl From<f64> for ComplexFloat
[src]

[src]

Performs the conversion.

impl PartialOrd for ComplexFloat
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for ComplexFloat
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for ComplexFloat
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ComplexFloat

impl Sync for ComplexFloat