Clicky

Fortran Wiki
log (Rev #3, changes)

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

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

Description

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

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

(削除)

result = log(x)

(削除ここまで)
(追記)
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 (追記ここまで)(追記) is in the range (追記ここまで)(追記) -\\pi \\lt \\omega \\leq \\pi (追記ここまで).

Example

program test_log
 real(削除) ( (削除ここまで)(追記)  (追記ここまで)(削除) 8 (削除ここまで)(削除) ) (削除ここまで)(削除)  (削除ここまで):: x = (削除) 1.0_8 (削除ここまで)(追記) 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

Revision from April 4, 2016 14:02:44 by Jason Blevins
Forward in time (to current) | Back in time (2 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures

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