Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log1pd128(3m) [hpux man page]

log1pd64(3M)															      log1pd64(3M)

NAME
log1pd64(), log1pd128(), log1pd32() - decimal natural logarithm of one-plus-argument functions SYNOPSIS
DESCRIPTION
The function computes the logarithmic function but may be more accurate for very small values of x. The and functions are useful to guarantee that financial calculations of (((1+x)**n)-1)/x are accurate when x is very small, namely: The preceding example might be applicable when calculating small daily interest rates. is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward. USAGE
To use any of these functions, compile with the option. Make sure your program defines and then includes Link in the math library by specifying or on the linking command line. For more information, see the at the following site: RETURN VALUE
If x is +infinity, returns +infinity. If x is -1, returns -infinity and raises the divide-by-zero exception. If x is less than -1, returns NaN and raises the invalid exception. If x is NaN, returns NaN. raises the inexact exception whenever a rounded result does not equal the mathematical result. ERRORS
If x is less than -1, sets to If x is -1, sets to SEE ALSO
annuity(3M), compound(3M), expm1d64(3M), log10d64(3M), log2d64(3M), logd64(3M), math(5). STANDARDS CONFORMANCE
These functions conform to ISO/IEC TR 24732, "Extension for the programming language C to support decimal floating-point arithmetic". HP Integrity Server Only log1pd64(3M)

Check Out this Related Man Page

log1p(3M)																 log1p(3M)

NAME
log1p(), log1pf(), log1pl(), log1pw(), log1pq() - natural logarithm of one-plus-argument functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
The function computes the logarithmic function but may be more accurate for very small values of x. The and functions are useful to guarantee that financial calculations of are accurate when x is very small, namely: The preceding example would be applicable when calculating small daily interest rates. See also and Integrity Server Only is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. is an version of it takes an argument and returns an result. is equivalent to on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with the option. Make sure your program includes and link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
If x is +INFINITY, returns +INFINITY. If x = -1.0, returns (equal to -INFINITY) and raises the divide-by-zero exception. If x < -1.0, returns NaN and raises the invalid exception. If x is NaN, returns NaN. When it raises no other exception, whether raises the inexact exception is unspecified. ERRORS
If x < -1.0, sets to Integrity Server Only HP-UX functions on Integrity servers do not set by default. For setting, compile with the option. SEE ALSO
annuity(3M), compound(3M), expm1(3M), log(3M), math(5). STANDARDS CONFORMANCE
: XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') log1p(3M)
Man Page

2 More Discussions You Might Find Interesting

1. Programming

a small problem

hey there i kinda have a small/big problem. i have created a 'small' version of a shell that only accepts ls comamnds. my problem is that when i compiled the program and got it to work, i deleted the .c file from which the shell was created. but now, i would like to do some more work on the... (2 Replies)
Discussion started by: mile1982
2 Replies

2. Programming

Passing argument to a program!!

Hi friends, I have a small query, hope u will help me with it. I want to write a small program which would take an integer as an argument, then I want to save that argument in a variable of type int. Could you please help me with it. Here is my program #include <stdio.h> int main(int... (4 Replies)
Discussion started by: gabam
4 Replies