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`
- `acos`
- `acosh`
- `asin`
- `cos`
- `cosh`
- `round`

View File

@ -825,6 +825,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::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::Clamp => {
component_wise_scalar!(