Manual Reference Pages  - log10 (3fortran)

NAME

LOG10(3) - [MATHEMATICS] Base 10 or common logarithm

SYNOPSIS

result = log10(x)

         elemental real(kind=KIND) function log10(x)

real(kind=KIND),intent(in) :: x

CHARACTERISTICS

o X may be any kind of real value
o the result is the same type and characteristics as X.

DESCRIPTION

LOG10(3) computes the base 10 logarithm of X. This is generally called the "common logarithm".

OPTIONS

o X : A real value > 0 to take the log of.

RESULT

The logarithm to base 10 of X

EXAMPLES

Sample program:

    program demo_log10
    use, intrinsic :: iso_fortran_env, only : real_kinds, &
     & real32, real64, real128
    implicit none
    real(kind=real64) :: x = 10.0_real64

x = log10(x) write(*,’(*(g0))’)’log10(’,x,’) is ’,log10(x)

! elemental write(*, *)log10([1.0, 10.0, 100.0, 1000.0, 10000.0, & & 100000.0, 1000000.0, 10000000.0])

end program demo_log10

Results:

     > log10(1.000000000000000) is .000000000000000
     >   0.0000000E+00   1.000000       2.000000       3.000000       4.000000
     >    5.000000       6.000000       7.000000

STANDARD

FORTRAN 77

SEE ALSO

****(3)

fortran-lang intrinsic descriptions


Nemo Release 3.1 log10 (3fortran) April 28, 2024
Generated by manServer 1.08 from b0769ab5-11d3-4c2b-9774-bb09e146fcd3 using man macros.