[−][src]Trait mathru::elementary::Hyperbolic
Hyperbolic functions
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
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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; use mathru::algebra::abstr::{Field}; use mathru::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
extern crate mathru; 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
extern crate mathru; use mathru::algebra::abstr::{Field}; use mathru::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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; 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
extern crate mathru; use mathru::algebra::abstr::{Field}; use mathru::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
extern crate mathru; 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
extern crate mathru; use mathru::algebra::abstr::{Field}; use mathru::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);
Implementors
impl<T> Hyperbolic for Complex<T> where
T: Real,
[src]
T: Real,
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]
fn arcosh(&self) -> Self
[src]
fn artanh(&self) -> Self
[src]
fn arcoth(&self) -> Self
[src]
fn arsech(&self) -> Self
[src]
Hyperbolic inverse secant