Skip to content

Commit

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

0 comments on commit 55e8275

Please sign in to comment.