Skip to content

Commit

Permalink
feat: add hyperbolic functions (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Sep 2, 2022
1 parent cb25124 commit 4252824
Showing 1 changed file with 120 additions and 0 deletions.
120 changes: 120 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,60 @@ scalar_functions:
required: false
- value: fp64
return: fp64
-
name: "cosh"
description: "Get the hyperbolic cosine of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "sinh"
description: "Get the hyperbolic sine of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "tanh"
description: "Get the hyperbolic tangent of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "acos"
description: "Get the arccosine of a value in radians."
Expand Down Expand Up @@ -382,6 +436,72 @@ scalar_functions:
required: false
- value: fp64
return: fp64
-
name: "acosh"
description: "Get the hyperbolic arccosine of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: on_domain_error
options: [ NAN, ERROR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: on_domain_error
options: [ NAN, ERROR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "asinh"
description: "Get the hyperbolic arcsine of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "atanh"
description: "Get the hyperbolic arctangent of a value in radians."
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: on_domain_error
options: [ NAN, ERROR ]
required: false
- name: x
value: fp32
return: fp32
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- name: on_domain_error
options: [ NAN, ERROR ]
required: false
- name: x
value: fp64
return: fp64
-
name: "atan2"
description: "Get the arctangent of values given as x/y pairs."
Expand Down

0 comments on commit 4252824

Please sign in to comment.