[][src]Trait mathru::elementary::Trigonometry

pub trait Trigonometry {
    pub fn pi() -> Self;
pub fn sin(self) -> Self;
pub fn cos(self) -> Self;
pub fn tan(self) -> Self;
pub fn cot(self) -> Self;
pub fn sec(self) -> Self;
pub fn csc(self) -> Self;
pub fn arcsin(self) -> Self;
pub fn arccos(self) -> Self;
pub fn arctan(self) -> Self;
pub fn arctan2(self, other: Self) -> Self;
pub fn arccot(self) -> Self;
pub fn arcsec(self) -> Self;
pub fn arccsc(self) -> Self; }

Required methods

pub fn pi() -> Self[src]

Returns the mathematic constant PI

pub fn sin(self) -> Self[src]

Sinus function

pub fn cos(self) -> Self[src]

Cosinus function

pub fn tan(self) -> Self[src]

Tangens function

pub fn cot(self) -> Self[src]

Cotangens function

pub fn sec(self) -> Self[src]

Secant function

pub fn csc(self) -> Self[src]

Cosecant function

pub fn arcsin(self) -> Self[src]

Inverse sinus function

pub fn arccos(self) -> Self[src]

Inverse cosinus function

pub fn arctan(self) -> Self[src]

Inverse tangens function

pub fn arctan2(self, other: Self) -> Self[src]

pub fn arccot(self) -> Self[src]

Inverse cosecant function

pub fn arcsec(self) -> Self[src]

Inverse secant function

pub fn arccsc(self) -> Self[src]

Loading content...

Implementations on Foreign Types

impl Trigonometry for f32[src]

pub fn pi() -> Self[src]

Returns the mathematic constant PI

pub fn sin(self) -> Self[src]

Sinus

pub fn cos(self) -> Self[src]

Cosinus

pub fn tan(self) -> Self[src]

Tangens

pub fn sec(self) -> Self[src]

Secant

Panics

self = n pi + pi/2 n \in Z

pub fn arcsin(self) -> Self[src]

Inverse sine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

pub fn arccos(self) -> Self[src]

Inverse cosine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

pub fn arctan(self) -> Self[src]

Computes the arctangent of a number

pub fn arctan2(self, other: Self) -> Self[src]

Computes the arctangent

impl Trigonometry for f64[src]

pub fn pi() -> Self[src]

Returns the mathematic constant PI

pub fn sin(self) -> Self[src]

Sinus

pub fn cos(self) -> Self[src]

Cosinus

pub fn tan(self) -> Self[src]

Tangens

pub fn sec(self) -> Self[src]

Secant

Panics

self = n pi + pi/2 n \in Z

pub fn arcsin(self) -> Self[src]

Inverse sine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

pub fn arccos(self) -> Self[src]

Inverse cosine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

pub fn arctan(self) -> Self[src]

Computes the arctangent of a number

pub fn arctan2(self, other: Self) -> Self[src]

Computes the arctangent

Loading content...

Implementors

Loading content...