TAN(3) BSD Library Functions Manual TAN(3)NAME
tan, tanf -- tangent function
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
tan(double x);
float
tanf(float x);
DESCRIPTION
The tan() and tanf() functions compute the tangent of x (measured in radians). A large magnitude argument may yield a result with little or
no significance. For a discussion of error due to roundoff, see math(3).
RETURN VALUES
The tan() function returns the tangent value.
SEE ALSO acos(3), asin(3), atan(3), atan2(3), cos(3), cosh(3), math(3), sin(3), sinh(3), tanh(3)STANDARDS
The tan() function conforms to ANSI X3.159-1989 (``ANSI C89'').
BSD May 2, 1991 BSD
Check Out this Related 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);
SEE ALSO 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
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... (20 Replies)
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... (18 Replies)
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
... (16 Replies)
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... (21 Replies)
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... (16 Replies)
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... (18 Replies)
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... (23 Replies)
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Ž$ (25 Replies)
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. (24 Replies)
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... (17 Replies)
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=$((... (27 Replies)
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!) :);) (17 Replies)
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... (30 Replies)
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 #... (17 Replies)