feat(const_eval): impl. tan

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

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ Bottom level categories:
- `sinh`
- `sqrt`
- `step`
- `tan`
## v0.19.0 (2024-01-17)
+3
View File
@@ -869,6 +869,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Sinh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.sinh()]) })
}
crate::MathFunction::Tan => {
component_wise_float!(self, span, [arg], |e| { Ok([e.tan()]) })
}
crate::MathFunction::Sqrt => {
component_wise_float!(self, span, [arg], |e| { Ok([e.sqrt()]) })
}