Commit 28a0157c by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR libfortran/48054 (Documentation for LOG intrinsic function is ambiguous)

	PR fortran/48054
	* intrinsic.texi: Clarify doc of logarithm functions.

From-SVN: r170899
parent 8e421af9
2011-03-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2011-03-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/48054
* intrinsic.texi: Clarify doc of logarithm functions.
2011-03-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/47552 PR fortran/47552
* trans-intrinsic.c (gfc_conv_intrinsic_ctime): Fix type of * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Fix type of
the string length variable. the string length variable.
......
...@@ -4285,7 +4285,7 @@ end program test_exit ...@@ -4285,7 +4285,7 @@ end program test_exit
@fnindex ZEXP @fnindex ZEXP
@fnindex CDEXP @fnindex CDEXP
@cindex exponential function @cindex exponential function
@cindex logarithmic function, inverse @cindex logarithm function, inverse
@table @asis @table @asis
@item @emph{Description}: @item @emph{Description}:
...@@ -7766,7 +7766,7 @@ end program test_loc ...@@ -7766,7 +7766,7 @@ end program test_loc
@node LOG @node LOG
@section @code{LOG} --- Logarithm function @section @code{LOG} --- Natural logarithm function
@fnindex LOG @fnindex LOG
@fnindex ALOG @fnindex ALOG
@fnindex DLOG @fnindex DLOG
...@@ -7774,11 +7774,13 @@ end program test_loc ...@@ -7774,11 +7774,13 @@ end program test_loc
@fnindex ZLOG @fnindex ZLOG
@fnindex CDLOG @fnindex CDLOG
@cindex exponential function, inverse @cindex exponential function, inverse
@cindex logarithmic function @cindex logarithm function
@cindex natural logarithm function
@table @asis @table @asis
@item @emph{Description}: @item @emph{Description}:
@code{LOG(X)} computes the logarithm of @var{X}. @code{LOG(X)} computes the natural logarithm of @var{X}, i.e. the
logarithm to the base @math{e}.
@item @emph{Standard}: @item @emph{Standard}:
Fortran 77 and later Fortran 77 and later
...@@ -7804,9 +7806,9 @@ If @var{X} is @code{COMPLEX}, the imaginary part @math{\omega} is in the range ...@@ -7804,9 +7806,9 @@ If @var{X} is @code{COMPLEX}, the imaginary part @math{\omega} is in the range
@item @emph{Example}: @item @emph{Example}:
@smallexample @smallexample
program test_log program test_log
real(8) :: x = 1.0_8 real(8) :: x = 2.7182818284590451_8
complex :: z = (1.0, 2.0) complex :: z = (1.0, 2.0)
x = log(x) x = log(x) ! will yield (approximately) 1
z = log(z) z = log(z)
end program test_log end program test_log
@end smallexample @end smallexample
...@@ -7830,7 +7832,8 @@ end program test_log ...@@ -7830,7 +7832,8 @@ end program test_log
@fnindex ALOG10 @fnindex ALOG10
@fnindex DLOG10 @fnindex DLOG10
@cindex exponential function, inverse @cindex exponential function, inverse
@cindex logarithmic function @cindex logarithm function with base 10
@cindex base 10 logarithm function
@table @asis @table @asis
@item @emph{Description}: @item @emph{Description}:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment