Clicky

Fortran Wiki
log (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #3 to #4: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

log(x) computes the natural logarithm of x, i.e. the logarithm to the base e(削除) \\-\\e (削除ここまで)(追記) e (追記ここまで).

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = log(x)

Arguments

  • x - The type shall be real or complex.

Return value

The return value is of type real or complex. The kind type parameter is the same as x. If x is complex, the imaginary part (削除) \\omega (削除ここまで)(追記) ω\omega (追記ここまで) is in the range (削除) -\\pi \\lt \\omega \\leq \\pi (削除ここまで)(追記) π<ωπ-\pi \lt \omega \leq \pi (追記ここまで).

Example

program test_log
 real :: x = 2.7182818284590451_8
 complex :: z = (1.0, 2.0)
 x = log(x) ! will yield (approximately) 1
 z = log(z)
end program test_log

category: intrinsics

Revised on March 1, 2023 13:12:32 by vmagnin (86.67.213.90) (927 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures

AltStyle によって変換されたページ (->オリジナル) /