feat(const_eval): impl. asin

This commit is contained in:
Erich Gubler committed 2024-01-18 16:57:46 -05:00
1 parent afb54d58ba
commit e2783c7d45
2 files changed
+4

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ Bottom level categories:
- `abs`
- `acos`
- `acosh`
- `asin`
- `cos`
- `cosh`
- `round`
+3
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!(