# tan(3) [osx man page]

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

NAME
tan -- tangent function

SYNOPSIS
#include <math.h>

double
tan(double x);

long double
tanl(long double x);

float
tanf(float x);

DESCRIPTION
The tan() function computes the tangent of x (measured in radians).

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

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

VECTOR OPERATIONS
If you need to apply the tan() 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 vtanf(vFloat x);
void vvtanf(float *y, const float *x, const int *n);
void vvtan(double *y, const double *x, const int *n);

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

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

BSD								 December 11, 2006							       BSD```

## Check Out this Related Man Page

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

NAME
cos -- cosine function

SYNOPSIS
#include <math.h>

double
cos(double x);

long double
cosl(long double x);

float
cosf(float x);

DESCRIPTION
The cos() function computes the cosine of x (measured in radians).

SPECIAL VALUES
cos(+-0) returns 1.

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

VECTOR OPERATIONS
If you need to apply the cos() 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 vcosf(vFloat x);
vFloat vsincosf(vFloat x, vFloat *c);
void vvcosf(float *y, const float *x, const int *n);
void vvcos(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);

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

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

BSD								 December 11, 2006							       BSD```
Man Page

## finding first instance

I have a file with 3 columns. Often the first two will hold the same values and the third may differ. I only want one row for each. i.e. aaa,bbb,1 aaa,bbb,2 aaa,bbb,3 xxx,yyy,1 xxx,yyy,2 zzz,rrr,5 Should be aaa,bbb,1 xxx,yyy,1 zzz,rrr,5 I just want the first instance of...

## How do you convert scientific time to standard

Hi All, I'm new to this forum, and appreciate any assistance with my issue. I have a shell script that logs into an oracle DB and runs a sqlplus query. Everything works great except for the time I get. I'm new to shell so bare with me. What would be the code and where do I place it? My...

## need help understanding mv

I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks. echo "Enter Name of the first file:" read file1 #echo \$file1 if ; then echo "Sorry, file does not exist." exit 1 ...

## lack of understanding > annoying error

I'm working on a script I wrote called backup.sh when I run it like this: . ./backup.sh I get this error: ksh: ./backup.sh: no closing quote when I run it this way: backup.shI get this error: backup.sh: 28: Syntax error: end of file unexpected (expecting "fi")I looked through the code over...

## Can sed replace every 2 instances it finds in a file? Pattern.

My goal is to make a script to find/replace the variable "PORT" with a unique number. Like the following <VirtualHost 174.120.36.236:PORT> ServerName architect.com.ph ServerAlias www.architect.com.ph DocumentRoot /home/architec/public_html ServerAdmin...

## Checking the existance of multiple files

I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result. if then <do some work> else <no files> fi Since there are more than one...

## AWK - Hard to understand for me

Hi All, I have googled and spent few hours to understand about AWK usage... But still not very much clear.... Upto my understanding 'AWK' deals with files... It reads the file takes it as a input process it and gives output or writes the output to an another file... >> Please correct me...

## Problem in understanding export uses

i am beginner in shell scripting. not able to understand what below line will do. PS1=\${HOST:=Žuname -nŽ}"\$ " ; export PS1 HOST below is the script #!/bin/hash PS1=\${HOST:=Žuname -nŽ}"\$ " ; export PS1 HOST ; echo \$PS1 and i getting the below output Žuname -nŽ\$

## Shell script help [was Tanmoy]

Below is the line GMDCOM.27936 : Process Request <36812974> i want to display : Process Request <36812974> in a new file using shell script. Please help me.

## [BASH] Script to manage background scripts (running, finished, exit code)

Heyas, Since this question (similar) occur every now and then, and given the fact i was thinking about it just recently (1-2 weeks) anyway, i started to write something :p The last point for motivation was...

## Help understanding the script

Could someone please help me in understanding the code below: #!/usr/bin/ksh Month=`date|cut -c5-7` Day=`date|cut -c9-10` Year=`date|cut -c27-28` Rom2Jul() { case \$Month in Feb) Day=\$(( \$Day+31 ));; Mar) Day=\$((...

## [Discussion] POSIX, the Love of Backticks and All That Jazz

But I love my back-ticks - I know exactly how to escape them (after too many years) - I always seem to end unbalanced with (). However, I shall take the hint. (One more trick for this dog... aka - not too old yet!) :);)

## Grepping a timestamp range and assigning it to a constant

Hi, I couldn't find any thing on google about it and have been trying to figure this out but am not getting anywhere. I want to know if its possible through a script. I have a file with columns start time and end time separated by a comma, basically there are some other columns which I need to...

## awk Associative Array and/or Referring to Field by String (Nonconstant String Value)

I will start with an example of what I'm trying to do and then describe how I am approaching the issue. File PS028,005 Lexeme HRS # M # PhraseType 1(1:1) 7(7) PhraseLab 501 503 ClauseType ZYq0 PS028,005 Lexeme W # L> # BNH # M #...