feat(const_eval): impl. atanh

This commit is contained in:
Erich Gubler 2023-12-22 08:02:12 -05:00
parent 262c07f40c
commit c2f110ed0c
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ Bottom level categories:
- `asin`
- `asinh`
- `atan`
- `atanh`
- `cos`
- `cosh`
- `round`

View File

@ -834,6 +834,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Atan => {
component_wise_float!(self, span, [arg], |e| { Ok([e.atan()]) })
}
crate::MathFunction::Atanh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.atanh()]) })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => {
component_wise_scalar!(