complex_algebra/complex/
sinh.rs

1use super::c;
2
3pub trait Sinh<T: Copy + PartialEq> {
4    fn sinh(z: c<T>) -> c<T>;
5}
6
7#[macro_export]
8macro_rules! sinh_macro {
9    ($T:tt) => {
10        impl Sinh<$T> for c<$T> {
11            fn sinh(z: c<$T>) -> c<$T> {
12                c(1.0, 0.0) / c(0.0, 1.0) * c::sin(c(0.0, 1.0) * z)
13            }
14        }
15    };
16}