CCOS(3) BSD Library Functions Manual CCOS(3)NAME
ccos, ccosf, csin, csinf ctan, ctanf -- complex trigonometric functions
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <complex.h>
double complex
ccos(double complex z);
float complex
ccosf(float complex z);
double complex
csin(double complex z);
float complex
csinf(float complex z);
double complex
ctan(double complex z);
float complex
ctanf(float complex z);
DESCRIPTION
The ccos(), csin(), and ctan() functions compute the cosine, sine, and tangent of the complex number z, respectively. The ccosf(), csinf(),
and ctanf() functions perform the same operations in float precision.
SEE ALSO cacos(3), ccosh(3), complex(3), cos(3), math(3), sin(3), tan(3)STANDARDS
These functions conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD October 17, 2011 BSD
Check Out this Related Man Page
CSIN(3) BSD Library Functions Manual CSIN(3)NAME
csin -- complex sine function
ccos -- complex cosine function
ctan -- complex tangent function
SYNOPSIS
#include <complex.h>
double complex
csin(double complex z);
long double complex
csinl(long double complex z);
float complex
csinf(float complex z);
double complex
ccos(double complex z);
long double complex
ccosl(long double complex z);
float complex
ccosf(float complex z);
double complex
ctan(double complex z);
long double complex
ctanl(long double complex z);
float complex
ctanf(float complex z);
DESCRIPTION
csin(z) computes the sine of the complex floating-point number z.
ccos(z) computes the cosine of the complex floating-point number z.
ctan(z) computes the tangent of the complex floating-point number z.
NOTES
csin, ccos, and ctan are defined in terms of the complex hyperbolic functions as follows:
csin(z) = -i * csinh(i*z),
ccos(z) = ccosh(i*z),
ctan(z) = -i * ctanh(i*z).
SEE ALSO csinh(3)ccosh(3)ctanh(3)complex(3)STANDARDS
The csin(), ccos(), and ctan() functions conform to ISO/IEC 9899:2011.
4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution
I have the following bash script and it is not accepting the lines
"--"|"--""-")
"--""-"")
while
do
echo "Current Argument is ${1}"
case "$1" in
"--"|"--""-")
echo "Argument is ${1}"
shift # Skip ahead one to the next argument.
... (1 Reply)
I have the following code and I am calling it using
./raytrac.bash -u
and getting problems. For some reason opt_usage is still 0.
opt_usage=0
iarg=0
narg=$#
while (($iarg < $narg))
do
(( iarg = $iarg + 1 ))
arg=$argv
usrInputFlag=`echo $arg | awk '/=/ {print 1}; ! /=/... (22 Replies)
I have the following bash code, and wondering if it is possible (and a good idea) to write the if statements in one line.
# Run raytrac on the sound speed model.
if ; then
$bashPath/raytrac.bash -fcmd=$fcmd.cmd
fi
# Plot the travel times and ray paths.
if ; then
... (8 Replies)
I have the following code, and I am changing it to
#!/bin/bash
hasArgumentCModInfile=0
hasArgumentSrcsInfile=0
hasArgumentRcvsInfile=0
OLDIFS="$IFS"
IFS="|=" # IFS controls splitting. Split on "|" and "=", not whitespace.
set -- $* # Set the positional... (3 Replies)
I have the following code and for some reason when I call the program using
/home/tcdata/tatsh/trunk/hstmy/bin/bash/raytrac.bash --cmod=jcdint.cmod
I get
hasArgument =
hasArgument = true
Somehow the array element is returning even though I have not chosen the option.
... (41 Replies)
first of all i must say i am new in shell, awk programming, so this question may be so easy but i didn't do it.
i have a list like above;
Sep06 10:03 C
Sep06 10:05 C
Oct04 16:52 SM
Jun03 22:56 S
Jul17 15:57 S
Aug03 12:19 S
Aug03 12:23 S
Jul03 14:05 S
i want to get... (2 Replies)
Hi,
I need a little help to change the code at the bottom. I must get "hostname" and "sessionNumbers" in one statement. So, i need to assign "substr( $5, length($5) )" to "sessionNumbers" in first awk code part. But i don't know, how can i do this. Is this possible?
sessionNumbers=substr( $5,... (4 Replies)