Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log1p(3) [php man page]

LOG1P(3)								 1								  LOG1P(3)

log1p - Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero

SYNOPSIS
float log1p (float $number) DESCRIPTION
log1p(3) returns log(1 + $number) computed in a way that is accurate even when the value of $number is close to zero. log(3) might only return log(1) in this case due to lack of precision. PARAMETERS
o $number - The argument to process RETURN VALUES
log(1 + $number) CHANGELOG
+--------+--------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on all platforms | | | | +--------+--------------------------------------------------+ SEE ALSO
expm1(3), log(3), log10(3). PHP Documentation Group LOG1P(3)

Check Out this Related Man Page

LOG1P(3)						     Linux Programmer's Manual							  LOG1P(3)

NAME
log1p, log1pf, log1pl - logarithm of 1 plus argument SYNOPSIS
#include <math.h> double log1p(double x); float log1pf(float x); long double log1pl(long double x); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): log1p(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE; or cc -std=c99 log1pf(), log1pl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99 DESCRIPTION
log1p(x) returns a value equivalent to log (1 + x) It is computed in a way that is accurate even if the value of x is near zero. RETURN VALUE
On success, these functions return the natural logarithm of (1 + x). If x is a NaN, a NaN is returned. If x is positive infinity, positive infinity is returned. If x is -1, a pole error occurs, and the functions return -HUGE_VAL, -HUGE_VALF, or -HUGE_VALL, respectively. If x is less than -1 (including negative infinity), a domain error occurs, and a NaN (not a number) is returned. ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Domain error: x is less than -1 An invalid floating-point exception (FE_INVALID) is raised. Pole error: x is -1 A divide-by-zero floating-point exception (FE_DIVBYZERO) is raised. These functions do not set errno. CONFORMING TO
C99, POSIX.1-2001. SEE ALSO
exp(3), expm1(3), log(3) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-08-05 LOG1P(3)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

checking size of the first line in a log file

Hi My test.log file looks like this: 0 190_GSTV_HUX_003QISCGSK026_error070322_115331917.log 34 190_GSTV_HUX_003QISCGSK026_error070117_151311385.log 12 190_GSTV_HUX_003QISCGSK026_error070117_151230001.log 2 190_GSTV_HUX_003QISCGSK026_error070117_101010001.log 0... (19 Replies)
Discussion started by: kiran1112
19 Replies

2. Shell Programming and Scripting

Sed/awk gods, I need your Help! Fancy log extraction

Hi! I'm trying to find a way to extract a certain amount of lines from a log file. This would allow me to "follow" a web user through our log files. Here is a sample fake log file to explain what i want to accomplish : BEGIN REQUEST sessionID=123456 boatload of lines for thread-1 detailing... (8 Replies)
Discussion started by: gnagus
8 Replies

3. Linux

log session

How could I log a seesion on unix machine...log all the commands applied on the server by a user (15 Replies)
Discussion started by: mm00123
15 Replies

4. Shell Programming and Scripting

Parsing a large log

I need to parse a large log say 300-400 mb The commands like awk and cat etc are taking time. Please help how to process. I need to process the log for certain values of current date. But I am unbale to do so. (17 Replies)
Discussion started by: asth
17 Replies

5. Shell Programming and Scripting

perform a check based on number of @ in a log line

Hello, I am intending to perform a check based on number of "@" , present in a line in a log file . The idea is basically to perform a check on cc or bcc sender, based on an email log, which shows all the for email address. Say if the number of @ is more than 30, I will consider it as a mass... (12 Replies)
Discussion started by: fed.linuxgossip
12 Replies

6. Programming

How to log time in C/C++

Hi, Actually I want to create a log file in c, which should log the details in to log file. Here am facing one problem..like if I am doing loging am not able to log the exact time..Its printing the same time..Can anybody help me out on this..?? Sample code: =========== #include <stdio.h>... (9 Replies)
Discussion started by: Kattoor
9 Replies

7. Shell Programming and Scripting

Help needed with log conversion script.

Hi All, I have a log file with several entries which need to be converted in a different format: A) log "tcp://1.2.3.4:80" should be translated to --> Logged this from host 1.2.3.4 port 80 B) log "tcp://1.2.3.4:*" --> Logged this from host 1.2.3.4 C) log "tcp://1.2.3.4:80,8080" -->... (9 Replies)
Discussion started by: morningSunshine
9 Replies

8. Shell Programming and Scripting

^M character in the log file

Hi .. when i am running the following simple script, i am getting the log file as ""test1.log?"", there is a ^M charater. I dont know why it is generating like that. when i tried to replace the ^M character, it is saying there is no pattern like that. :%/ctrlV ctrlM//g (pattern not found).... (9 Replies)
Discussion started by: sanskumar2003
9 Replies

9. Shell Programming and Scripting

Extracting strings from a log file.

I'm new to all this and I've been fiddling with this problem for HOURS and feel silly that I can't work it out! I have a .log file that VERY long and looks like this: 2011-08-31 10:03:34 SUESTART AG Amndmnt Client WebRequest DNU SUEEND Sequence: 600, 2011-08-31 10:03:34 SUESTART... (11 Replies)
Discussion started by: SusieSA
11 Replies

10. Shell Programming and Scripting

Getting info from a huge log file

Hello everyone. I am having problem with parsing a data from the huge log file. the log file is an application log with around 5 Gb in size and it rotates every midnight. Now if the application encountered such issue, it sends an email with a specific info but without further details. So I... (13 Replies)
Discussion started by: cwiggler
13 Replies

11. Shell Programming and Scripting

extract information from a log file (last days)

I'm still new to bash script , I have a log file and I want to extract the items within the last 5 days . and also within the last 10 hours the log file is like this : it has 14000 items started from march 2002 to january 2003 awk '{print $4}' < *.log |uniq -c|sort -g|tail -10 but... (14 Replies)
Discussion started by: matarsak
14 Replies

12. Shell Programming and Scripting

[awk] combine and convert time from log files

dear all, an awk newbie need your help.... i have log files with this format: mylog1a.log: "08/10/2012","5:05 PM" "Hostname","Device Address","Count" "","10.10.10.18","10234" mylog2a.log: "08/11/2012","5:05 PM" "Hostname","Device Address","Count" "","10.10.10.18","12543" ... (18 Replies)
Discussion started by: makan
18 Replies

13. Shell Programming and Scripting

Parse log files

Hi all, We are having a sample log like .... test.log:2015.03.17 06:16:24 >> ABC.generateMethod() MethodAException while processing Request! DataForm: Header --- dtd: template.dtd, titleName: berger, requestId: 1503170032131, documentName: invoice123, hostName: acme.net, userName: userABC... (10 Replies)
Discussion started by: tandrei
10 Replies

14. UNIX for Beginners Questions & Answers

Tried to change user name, now cannot log in

I have been trying to change my user name and machine name, however now I cannot log in and I am directed as guest. Is there a way to resolve this problem? (33 Replies)
Discussion started by: kristinu
33 Replies

15. Shell Programming and Scripting

Grep a log file for the last 5 minutes of contents every 5 minutes

Hi all, System Ubuntu 16.04.3 LTS i have the following log INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042 INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies