feat(const_eval): impl. asinh

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

View File

@ -47,6 +47,7 @@ Bottom level categories:
- `acos` - `acos`
- `acosh` - `acosh`
- `asin` - `asin`
- `asinh`
- `cos` - `cos`
- `cosh` - `cosh`
- `round` - `round`

View File

@ -828,6 +828,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Asin => { crate::MathFunction::Asin => {
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) }) component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
} }
crate::MathFunction::Asinh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.asinh()]) })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span), crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => { crate::MathFunction::Clamp => {
component_wise_scalar!( component_wise_scalar!(