Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

csinf(3) [osx 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

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
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem using bash case statement

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)
Discussion started by: kristinu
1 Replies

2. Shell Programming and Scripting

Reading command line options from bash script

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)
Discussion started by: kristinu
22 Replies

3. Shell Programming and Scripting

Automatically determining directory path for scripts and programs

I have some C++ code in the following directory structure /home/chrisd/tatsh/trunk/hstmy/ ├── baseLib ├── bin │ ├── awk │ ├── bash │ ├── diag │ ├── ksh │ │ └── TAG201011 │ ├── old │ ├── perl │ ├── prog │ ├── py │ └── tcsh ├── docs ├── fortran ├── others... (0 Replies)
Discussion started by: kristinu
0 Replies

4. Shell Programming and Scripting

Bash if statements in one line

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)
Discussion started by: kristinu
8 Replies

5. Shell Programming and Scripting

Improving code by using associative arrays

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)
Discussion started by: kristinu
3 Replies

6. Shell Programming and Scripting

Using arrays in bash using strings to bash built-in true

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)
Discussion started by: kristinu
41 Replies

7. Shell Programming and Scripting

"awk date" help please

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)
Discussion started by: Ercan ıanr
2 Replies

8. UNIX for Dummies Questions & Answers

Bash script

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)
Discussion started by: Ercan ıanr
4 Replies

9. Shell Programming and Scripting

Regex not working

I am using a regex to exactly match a string abcdef as ^abcdef$. But it does'nt seem to work :( (11 Replies)
Discussion started by: gaurav99
11 Replies

Featured Tech Videos