feat(const_eval): impl. sinh

This commit is contained in:
Erich Gubler 2023-12-14 10:41:39 -05:00
parent 99a38c7b7c
commit 133b573133
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,7 @@ Bottom level categories:
- `round`
- `saturate`
- `sin`
- `sinh`
## v0.19.0 (2024-01-17)

View File

@ -853,6 +853,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Sin => {
component_wise_float!(self, span, [arg], |e| { Ok([e.sin()]) })
}
crate::MathFunction::Sinh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.sinh()]) })
}
fun => Err(ConstantEvaluatorError::NotImplemented(format!(
"{fun:?} built-in function"
))),