1 2 3 4 5 6 7 8 9 10 11
use crate::decimal::{ dec::math::{cos::cos, div::div, sin::sin}, Decimal, }; type D<const N: usize> = Decimal<N>; #[inline] pub(crate) const fn tan<const N: usize>(x: D<N>) -> D<N> { div(sin(x), cos(x)) }