[][src]Trait mathru::elementary::Hyperbolic

pub trait Hyperbolic {
    fn sinh(self) -> Self;
fn cosh(self) -> Self;
fn tanh(self) -> Self;
fn coth(self) -> Self;
fn sech(self) -> Self;
fn csch(self) -> Self;
fn arsinh(self) -> Self;
fn arcosh(self) -> Self;
fn artanh(self) -> Self;
fn arcoth(self) -> Self;
fn arsech(self) -> Self;
fn arcsch(self) -> Self; }

Required methods

fn sinh(self) -> Self

Hyperbolic sine

fn cosh(self) -> Self

Hyperbolic cosine

fn tanh(self) -> Self

Hyperbolic tangens

fn coth(self) -> Self

Hyperbolic cotangens

fn sech(self) -> Self

Hyperbolic secant

fn csch(self) -> Self

Hyperbolic cosecant

fn arsinh(self) -> Self

Inverse hyperbolic sine

fn arcosh(self) -> Self

Inverse hyperbolic cosine

fn artanh(self) -> Self

Inverse hyperbolic tangens

fn arcoth(self) -> Self

Inverse hyperbolic cosecant

fn arsech(self) -> Self

Inverse hyperbolic secant

fn arcsch(self) -> Self

Inverse hyperbolic cosecant

Loading content...

Implementations on Foreign Types

impl Hyperbolic for f32[src]

fn sinh(self) -> Self[src]

Hyperbolic sine

fn cosh(self) -> Self[src]

Hyperbolic cosine

fn tanh(self) -> Self[src]

Hyperbolic tangens

Arguments

  • self :

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 0.0_f64;

let f: f64 = x.tanh();
let g: f64 = 0.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn coth(self) -> Self[src]

Hyperbolic cotangens

Arguments

  • self : != 0.0

Panic

iff self == 0.0

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 1.0_f64;

let f: f64 = x.coth();
let g: f64 = x.cosh() / x.sinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn sech(self) -> Self[src]

Hyperbolic secant

Arguments

  • self :

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 0.0_f64;

let f: f64 = x.sech();
let g: f64 = 1.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn csch(self) -> Self[src]

Hyperbolic cosecant

Arguments

  • self : != 0.0

Panics

if self == 0

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 1.0_f64;

let f: f64 = x.csch();
let g: f64 = 1.0 / x.sinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arsinh(self) -> Self[src]

Hyperbolic inverse sine

fn arcosh(self) -> Self[src]

Hyperbolic inverse cosine

fn artanh(self) -> Self[src]

Hyperbolic inverse tangens

fn arcoth(self) -> Self[src]

Hyperbolic inverse cotan

Arguments

  • self -1.0 > self, self > 1.0

Panics

if -1.0 <= self && self <= 1.0

Example

use mathru::{
    algebra::abstr::Field,
    elementary::{Exponential, Hyperbolic},
};

let x: f64 = 2.0_f64;
let f: f64 = x.arcoth();
let g: f64 = ((x + 1.0) / (x - 1.0)).ln() / 2.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arsech(self) -> Self[src]

Hyperbolic inverse secant

Arguments

  • self 0.0 < self <= 1.0

Panics

if 0.0 >= self || self > 1.0

Example

use mathru::elementary::{Exponential, Hyperbolic};

let x: f64 = 0.5_f64;
let f: f64 = x.arsech();
let g: f64 = (1.0 / x).arcosh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arcsch(self) -> Self[src]

Hyperbolic inverse cosecant

Arguments

  • self <> 0.0

Panics

iff self = 0.0

Example

use mathru::{
    algebra::abstr::Field,
    elementary::{Exponential, Hyperbolic},
};

let x: f64 = 2.0_f64;
let f: f64 = x.arcsch();
let g: f64 = (1.0 / x).arsinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

impl Hyperbolic for f64[src]

fn sinh(self) -> Self[src]

Hyperbolic sine

fn cosh(self) -> Self[src]

Hyperbolic cosine

fn tanh(self) -> Self[src]

Hyperbolic tangens

Arguments

  • self :

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 0.0_f64;

let f: f64 = x.tanh();
let g: f64 = 0.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn coth(self) -> Self[src]

Hyperbolic cotangens

Arguments

  • self : != 0.0

Panic

iff self == 0.0

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 1.0_f64;

let f: f64 = x.coth();
let g: f64 = x.cosh() / x.sinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn sech(self) -> Self[src]

Hyperbolic secant

Arguments

  • self :

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 0.0_f64;

let f: f64 = x.sech();
let g: f64 = 1.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn csch(self) -> Self[src]

Hyperbolic cosecant

Arguments

  • self : != 0.0

Panics

if self == 0

Example

use mathru::elementary::Hyperbolic;

let x: f64 = 1.0_f64;

let f: f64 = x.csch();
let g: f64 = 1.0 / x.sinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arsinh(self) -> Self[src]

Hyperbolic inverse sine

fn arcosh(self) -> Self[src]

Hyperbolic inverse cosine

fn artanh(self) -> Self[src]

Hyperbolic inverse tangens

fn arcoth(self) -> Self[src]

Hyperbolic inverse cotan

Arguments

  • self -1.0 > self, self > 1.0

Panics

if -1.0 <= self && self <= 1.0

Example

use mathru::{
    algebra::abstr::Field,
    elementary::{Exponential, Hyperbolic},
};

let x: f64 = 2.0_f64;
let f: f64 = x.arcoth();
let g: f64 = ((x + 1.0) / (x - 1.0)).ln() / 2.0;
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arsech(self) -> Self[src]

Hyperbolic inverse secant

Arguments

  • self 0.0 < self <= 1.0

Panics

if 0.0 >= self || self > 1.0

Example

use mathru::elementary::{Exponential, Hyperbolic};

let x: f64 = 0.5_f64;
let f: f64 = x.arsech();
let g: f64 = (1.0 / x).arcosh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);

fn arcsch(self) -> Self[src]

Hyperbolic inverse cosecant

Arguments

  • self <> 0.0

Panics

iff self = 0.0

Example

use mathru::{
    algebra::abstr::Field,
    elementary::{Exponential, Hyperbolic},
};

let x: f64 = 2.0_f64;
let f: f64 = x.arcsch();
let g: f64 = (1.0 / x).arsinh();
let abs_difference: f64 = (f - g).abs();

assert!(abs_difference < 1.0e-10);
Loading content...

Implementors

impl<T> Hyperbolic for Complex<T> where
    T: Real
[src]

fn sinh(self) -> Self[src]

Hyperbolic sine

fn cosh(self) -> Self[src]

Hyperbolic cosine

fn tanh(self) -> Self[src]

Hyperbolic tangens

fn coth(self) -> Self[src]

Hyperbolic cotangens

fn sech(self) -> Self[src]

Hyperbolic secant

fn csch(self) -> Self[src]

Hyperbolic cosecant

fn arsinh(self) -> Self[src]

Hyperbolic inverse sine

Arguments

Panics

fn arcosh(self) -> Self[src]

Hyperbolic inverse cosine

Argument

Panics

fn artanh(self) -> Self[src]

Inverse hyperbolic tangent

Arguments

Panics

fn arcoth(self) -> Self[src]

Inverse hyperbolic cosecant

Arguments

Panics

fn arsech(self) -> Self[src]

Hyperbolic inverse secant

Loading content...