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 zeroSYNOPSIS
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)