# sin(3) [opendarwin man page]

```SIN(3)							   BSD Library Functions Manual 						    SIN(3)

NAME
sin -- sine function

SYNOPSIS
#include <math.h>

double
sin(double x);

DESCRIPTION
The sin() function computes the sine of x (measured in radians).

SPECIAL VALUES
sin(+-0) returns +-0.

sin(+-infinity) returns a NaN and raises the "invalid" floating-point exception.

acos(3), asin(3), atan(3), atan2(3), cos(3), cosh(3), sinh(3), tan(3), tanh(3), math(3)

STANDARDS
The sin() function conforms to ISO/IEC 9899:1999(E).

BSD								 November 20, 2002							       BSD```

## Check Out this Related Man Page

```SIN(3)							   BSD Library Functions Manual 						    SIN(3)

NAME
sin -- sine function

SYNOPSIS
#include <math.h>

double
sin(double x);

long double
sinl(long double x);

float
sinf(float x);

DESCRIPTION
The sin() function computes the sine of x (measured in radians).

SPECIAL VALUES
sin(+-0) returns +-0.

sin(+-infinity) returns a NaN and raises the "invalid" floating-point exception.

VECTOR OPERATIONS
If you need to apply the sin() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may
give significantly better performance:

#include <Accelerate/Accelerate.h>

vFloat vsinf(vFloat x);
vFloat vsincosf(vFloat x, vFloat *c);
void vvsinf(float *y, const float *x, const int *n);
void vvsin(double *y, const double *x, const int *n);
void vvsincosf(float *s, float *c, const float *x, const int *n);
void vvsincos(double *s, double *c, const double *x, const int *n);

acos(3), asin(3), atan(3), atan2(3), cos(3), cosh(3), sinh(3), tan(3), tanh(3), math(3)

STANDARDS
The sin() function conforms to ISO/IEC 9899:2011.

BSD								 December 11, 2006							       BSD```
Man Page

## Editing a file using a script

Hi I have about 10 config files belonging to software that runs on SCO UNIX. These files contain, amongst many other things, a path which points to the software locations. We normally have to change them manually every time the software is coppied to a new location and when you gotta do a few...

## Parse a string in XML file using shell script

Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it...

## Passing Arguments in Shell Scripts

Hello everybody! First time posting here:) Right, I am trying to pass arguments in my shell scripts using \$1, \$2 and \$3 etc using if else statement........ This is my shell script which is based on serching the google website #!/bin/sh wget -t1 -E -e robots=off - -awGet.log -T 200 -H...

## Using "find" and "-exec rm" ... Just no luck :(

Hi All, Ok, so I'm fairly new to Unix, but would like to think I'm grasping things fairly ok (Well until now ;) ), BUT with this one I'm going in circles ... LOL .. really can't work out why? So sorry for this post if it seems a little "dumb" .. But here goes. In short I'd like to achieve the...

## Include white spaces while using CUT command

Hi I tried to extract 19 characters (default) enclosed with in tag from a file using cut command. If the characters comprises of double space, the cut command gives the output with a single spacing. file 1 <name>Kumar Rajasekaran</name> cut -c7-26 "file1" the out put i received is ...

## Need to create a simple script using MD5, SSH...

Hi all, I am brand new to these forums and I am a brand new UNIX Administartor. Don't know any scripting yet :wall:, and would like to learn as my boss is slowly letting me understand everything about being a Sys/*Nix Admin. He created this script which I am trying to replicate because I lost it...

## 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. ...

## passing argument from one function to another

Hi all, In the given script code . I want to pass the maximum value that variable "i" will have in function DivideJobs () to variable \$max of function SubmitCondorJob(). Any help? Thanks #!/bin/bash ...

## Help me pls : splitting single file in unix into different files based on data

I have a file in unix with sample data as follows : -------------------------------------------------------------- -------------------------------------------------------------- {30001002|XXparameter|Layout|\$ I want this file to be splitted into different files and corresponding to the sample...

## FTP search ,grep using perl

Need assistance on a Perl script. I have a list of file names in a file and would like to search/grep the same names in the list of files on the ftp server and output to a file. Any help is appreciable Below is the script that can give me the list of files,size of file, Modified date on the...

## Csv file parsing and validating

Hi, I have basic knowledge on unix shell scripting(not an expert). My requirement is reading the csv file using the schema defined in the configuration file and if the condition is not mached then move the unmatched record to a error file and matched good records into other file. In brief: ...

## Appending a column in xlsx file using Python

Is there a way to append an existing xlsx worksheet to add data from a text file ? I have an excel file for which I need to manipulate the first worksheet based on a text file. I match the text file to the xlsx and write the 'Scores' column in the xlsx sheet and save the workbook. For those ...

## Parsing a column of text file - best practices

HI Folks - I hope all is well! I have a business process where I manage a text file of substitution variables and their values for a target system. After updating, I run a script to push the changes to the target system. However, I'm trying to develop a method to be able to automatically...