I have the following script (which works fine), escept I don't know how to make the MONTH and DAY show up with leading zeros. I have a statement (not in this script) which will show this in a YYYYMMDD format, but the script makes the MONTH and DAY fields show single digits. For today, as an... (4 Replies)
Hello,
In a unix shell script,i want to round a variabele to a nearest number
Ex: set count=104.4
How can i round that to 105.?
Thanks,
Sateesh (2 Replies)
I have tab delimited file and need to remove all records prior to sort, that have non-numerics in the Field 2. valid/invalid field 2 data examples are:
" 123" valid
"1 23" invalid
" NOPE" invalid
I've tried this awk it does not recognize tab as the delimiter or check... (3 Replies)
i have a file in which 3 values are stored like --4.72 4.42 3.86
what i wanna do is that take read each value and compare with a fixed value say 5 but cant do so as i am getting an error for the same.
please check the code
cat /home/nsadm/auto/Logging/uptime.txt| while read a b c
do
if... (2 Replies)
Hi All,
I would like to do the following in the shell script
561.76 to 562
I tried using this echo 'scale=0; 749 * 75 /100 ' | bc
but just returned only 561
Please help me . I appreciate your help
Thanks
rajeevm (13 Replies)
I have a file which contains fields comma separated & with each field surrounded by quotes. The 4th field contains either a serial number, the text ABC, the text XYZ or it's blank. I want to only extract records which have a serial number. Here's some sample data:
> cat myfile... (4 Replies)
I have data in the following tab-separated format (consists of 200 columns all together, this is just a sampling)
</s> 0.001701 0.002025 0.002264 0.001430 -0.001300
. -0.205240 0.177341 -0.426209 -0.661049 -0.048884 0.027032
the -0.159145 0.084377 0.056968 0.050934 0.160689
of -0.230698... (7 Replies)
Discussion started by: owwow14
7 Replies
LEARN ABOUT OSX
cacoshl
CACOSH(3) BSD Library Functions Manual CACOSH(3)NAME
cacosh -- complex inverse hyperbolic cosine function
SYNOPSIS
double complex
cacosh(double complex z);
long double complex
cacoshl(long double complex z);
float complex
cacoshf(float complex z);
DESCRIPTION
cacosh(z) computes the inverse hyperbolic cosine of the complex floating-point number z, with a branch cut on the interval [-inf, 1] along
the real axis.
cacosh() returns values in a half-strip of the complex plane with positive real part and imaginary part in the interval [-Pi, Pi].
For all complex floating point numbers z, cacosh(conj(z)) = conj(cacosh(z)).
SPECIAL VALUES
The conjugate symmetry of cacosh() is used to abbreviate the specification of special values.
cacosh(+-0 + 0i) returns 0 + Pi/2 i.
cacosh(x + inf i) returns inf + Pi/2 i, for finite x.
cacosh(x + NaN i) returns NaN + NaN i, for finite nonzero x.
cacosh(-inf + yi) returns inf + Pi i, for finite positive-signed y.
cacosh(inf + yi) returns inf + 0i, for finite positive-signed y.
cacosh(-inf + inf i) returns inf + 3Pi/4 i.
cacosh(inf + inf i) returns inf + Pi/4 i.
cacosh(+-inf + NaN i) returns inf + NaN i.
cacosh(NaN + yi) returns NaN + NaN i, for finite y.
cacosh(NaN + inf i) returns inf + NaN i.
cacosh(NaN + NaN i) returns NaN + NaN i.
NOTES SEE ALSO ccosh(3)complex(3)STANDARDS
The cacosh() function conforms to ISO/IEC 9899:2011.
4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution