Assuming your formula is correct, checked longhand in Python 3.8.0 using the math library:
So your rounded values seem OK.
Again this assumes that your formula is correct.
This User Gave Thanks to wisecracker For This Post:
Hi,
I have below awk statement and I need to convert the second field ( substr($0,8,6))from minutes to hours with 2 decimail place. How can I achieve this?
/usr/bin/awk '{print substr($0,23,4),substr($0,8,6)}' /tmp/MANAGER_LIST.$$ >> /tmp/NEWMANAGER_LIST.$$
Thanks for any help! (4 Replies)
hi all
Am new to scripting...
So,i have a file named file1 its contents are as follows:
joy 55 66 77
ruby 77 88 99
saloni 88 44 33
I would require a script which will calculate its percentage,its total and the average with awk script
Many thanks in advance..
Please reply me at... (4 Replies)
Hi members, I am working in WebSphere in Unix environment. we are working with 500 odd servers and most of the times processes got down. Can i have any shell script through whih some popup with alarm get raised whenever some server get down. kindly help.. Thanks Rishi (1 Reply)
Is there any awk command to calculate P Value ?(Probability)
Is it possib;e to calculate P va;ue for this data for ex?
7.891284
8.148193
7.749575
7.958188
7.887702
7.714877
8.141548
7.51845
8.27736
7.929853
7.92456
8.249126
7.989113
8.012573
8.351206 (2 Replies)
I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall:
Example file:
File 1
001 0.046 0.667267
001 0.047 0.672028
001 0.048 0.656025
001 0.049 ... (2 Replies)
Hello,
I created a user in my AIX 5.3 system and i modified /etc/passwd file in and assigned this user the uid=0 like root user.
The problem is that when this user log into the system through putty it asks for root password instead of the user password.
As a result of this, if i reset the... (4 Replies)
Hi Guys,
I got stuck to a a point where I need to find the value for (4 to the power of -2 upto 8 places after decimal ....
4^(-2) ; the result I need is upto 8 places after decimal.
How is that possible?
Thanks a lot!! (2 Replies)
Discussion started by: Indra2011
2 Replies
LEARN ABOUT NETBSD
exp2f
EXP(3) BSD Library Functions Manual EXP(3)NAME
exp, expf, exp2, exp2f, expm1, expm1f, -- exponential functions
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
exp(double x);
float
expf(float x);
double
exp2(double x);
float
exp2f(float x);
double
expm1(double x);
float
expm1f(float x);
DESCRIPTION
The exp() and the expf() functions compute the base e exponential value of the given argument x.
The exp2(), and exp2f() functions compute the base 2 exponential of the given argument x.
The expm1() and the expm1f() functions computes the value exp(x)-1 accurately even for tiny argument x.
RETURN VALUES
These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions exp() and
expm1() detect if the computed value will overflow, set the global variable errno to ERANGE and cause a reserved operand fault on a VAX.
SEE ALSO math(3)STANDARDS
The exp() functions conform to ANSI X3.159-1989 (``ANSI C89''). The exp2(), exp2f(), expf(), expm1(), and expm1f() functions conform to
ISO/IEC 9899:1999 (``ISO C99'').
HISTORY
The exp() functions appeared in Version 6 AT&T UNIX. The expm1() function appeared in 4.3BSD.
BSD September 13, 2011 BSD