feat(const_eval): impl. asin

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

View File

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

View File

@ -825,6 +825,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Acosh => { crate::MathFunction::Acosh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.acosh()]) }) component_wise_float!(self, span, [arg], |e| { Ok([e.acosh()]) })
} }
crate::MathFunction::Asin => {
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
}
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!(