日本語 English
株式会社ヒューリンクス
TEL:03-5642-8384
営業時間:9:00-17:30

ln

関数 ln は、指定範囲の各数値についてその自然対数 (底 e) の値または範囲としての値を返します。

構文

ln(numbers)

引数 numbers には、スカラーまたは範囲として与えられた数値を指定します。引数 numbers に含まれる欠損値や文字列は無視され、文字列や欠損値として返されます。

  • ln(x) に対して:
    x < 0 の場合は、エラーメッセージを返します。
    x = 0 の場合は、-∞  を返します。
    許容される x の最大値は約 x < 10309 です。

  • ln(2.71828) は、近似値 1.0 を返します。

関連情報

ln

The ln function returns a value or range of values consisting of the natural logarithm (base e) of each number in the specified range.

Syntax

ln(numbers)

The numbers argument can be a scalar or range of numbers. Any missing value or text string contained within a range is ignored and returned as the string or missing value.

For ln(x):

x < 0 returns an error message, and

x = 0 returns -∞

The largest value allowed is approximately x < 10309.

Example

The operation ln(2.71828) returns a value ≈ 1.0.

関連情報