log.3 (175461) | log.3 (216211) |
---|---|
1.\" Copyright (c) 2008 David Schultz | 1.\" Copyright (c) 2008-2010 David Schultz <das@FreeBSD.org> |
2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/msun/man/log.3 175461 2008-01-18 21:43:00Z das $ | 25.\" $FreeBSD: head/lib/msun/man/log.3 216211 2010-12-05 22:11:22Z das $ |
26.\" | 26.\" |
27.Dd January 17, 2008 | 27.Dd December 5, 2010 |
28.Dt LOG 3 29.Os 30.Sh NAME 31.Nm log , 32.Nm logf , 33.Nm logl , 34.Nm log10 , 35.Nm log10f , | 28.Dt LOG 3 29.Os 30.Sh NAME 31.Nm log , 32.Nm logf , 33.Nm logl , 34.Nm log10 , 35.Nm log10f , |
36.Nm log2 , 37.Nm log2f , |
|
36.Nm log1p , 37.Nm log1pf 38.Nd logarithm functions 39.Sh LIBRARY 40.Lb libm 41.Sh SYNOPSIS 42.In math.h 43.Ft double 44.Fn log "double x" 45.Ft float 46.Fn logf "float x" 47.Ft double 48.Fn log10 "double x" 49.Ft float 50.Fn log10f "float x" 51.Ft double | 38.Nm log1p , 39.Nm log1pf 40.Nd logarithm functions 41.Sh LIBRARY 42.Lb libm 43.Sh SYNOPSIS 44.In math.h 45.Ft double 46.Fn log "double x" 47.Ft float 48.Fn logf "float x" 49.Ft double 50.Fn log10 "double x" 51.Ft float 52.Fn log10f "float x" 53.Ft double |
54.Fn log2 "double x" 55.Ft float 56.Fn log2f "float x" 57.Ft double |
|
52.Fn log1p "double x" 53.Ft float 54.Fn log1pf "float x" 55.Sh DESCRIPTION 56The 57.Fn log 58and 59.Fn logf 60functions compute the natural logarithm of 61.Fa x . 62.Pp 63The 64.Fn log10 65and 66.Fn log10f 67functions compute the logarithm base 10 of | 58.Fn log1p "double x" 59.Ft float 60.Fn log1pf "float x" 61.Sh DESCRIPTION 62The 63.Fn log 64and 65.Fn logf 66functions compute the natural logarithm of 67.Fa x . 68.Pp 69The 70.Fn log10 71and 72.Fn log10f 73functions compute the logarithm base 10 of |
74.Fa x , 75while 76.Fn log2 77and 78.Fn log2f 79compute the logarithm base 2 of |
|
68.Fa x . 69.Pp 70The 71.Fn log1p 72and 73.Fn log1pf 74functions compute the natural logarithm of 75.No "1 + x" . --- 16 unchanged lines hidden (view full) --- 92.Xr math 3 , 93.Xr pow 3 94.Sh STANDARDS 95The 96.Fn log , 97.Fn logf , 98.Fn log10 , 99.Fn log10f , | 80.Fa x . 81.Pp 82The 83.Fn log1p 84and 85.Fn log1pf 86functions compute the natural logarithm of 87.No "1 + x" . --- 16 unchanged lines hidden (view full) --- 104.Xr math 3 , 105.Xr pow 3 106.Sh STANDARDS 107The 108.Fn log , 109.Fn logf , 110.Fn log10 , 111.Fn log10f , |
112.Fn log2 , 113.Fn log2f , |
|
100.Fn log1p , 101and 102.Fn log1pf 103functions conform to 104.St -isoC-99 . | 114.Fn log1p , 115and 116.Fn log1pf 117functions conform to 118.St -isoC-99 . |