Skip to content

Commit

Permalink
feat: add log1p function
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Aug 12, 2022
1 parent 6461d30 commit 0b03f00
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions extensions/functions_logarithmic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,29 @@ scalar_functions:
name: "base"
description: "The logarithm base `b` to use"
return: fp64
-
name: "log1p"
description: >
Natural logarithm (base e) of 1 + the value
log1p(x) => log(1+x)
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
- 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
- value: fp64
return: fp64

0 comments on commit 0b03f00

Please sign in to comment.