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

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

Required methods

Returns the mathematic constant PI

Sinus function

Cosinus function

Tangens function

Cotangens function

Secant function

Cosecant function

Inverse sinus function

Inverse cosinus function

Inverse tangens function

Inverse cosecant function

Inverse secant function

Implementations on Foreign Types

Returns the mathematic constant PI

Sinus

Cosinus

Tangens

Secant

Panics

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

Inverse sine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

Inverse cosine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

Computes the arctangent of a number

Computes the arctangent

Returns the mathematic constant PI

Sinus

Cosinus

Tangens

Secant

Panics

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

Inverse sine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

Inverse cosine function

Arguemnts

-1.0 <= x <= 1.0

Panics

|x| > 1.0

Computes the arctangent of a number

Computes the arctangent

Implementors