Skip to content

Commit

Permalink
fix: math.log function signatures with the base default value e
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Sep 5, 2023
1 parent 8008a44 commit 034daff
Show file tree
Hide file tree
Showing 48 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion docs/reference/lang/spec/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ weight: 100

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

返回以 `e` 为底数,`x` 的对数。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.3/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.4/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.5/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return exp(x)-1. This function avoids the loss of precision involved in the dire

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of x to the base e.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4.6/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.0/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.1/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.2/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.3/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ KCL supports a few standard system modules. The following is the full list of th
Return e raised to the power of x.
- expm1(x) -> float
Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
- log(x) -> float
- log(x, base=2.71828182845904523536028747135266250) -> float
Return the logarithm of x to the base e.
- log1p(x) -> float
Return the natural logarithm of 1+x (base e). The result is computed in a way which is accurate for x near zero.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.4/reference/model/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Return `exp(x) - 1`. This function avoids the loss of precision involved in the

## log

`log(x) -> float`
`log(x, base=2.71828182845904523536028747135266250) -> float`

Return the logarithm of `x` to the base `e`.

Expand Down
Loading

0 comments on commit 034daff

Please sign in to comment.