Linux and UNIX Man Pages

Test Your Knowledge in Computers #1010
Difficulty: Easy
The number 200 in base 8 equals 128 in base 10.
True or False?
Linux & Unix Commands - Search Man Pages

tan(3) [freebsd man page]

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

NAME
tan, tanf, tanl -- tangent functions LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> double tan(double x); float tanf(float x); long double tanl(long double x); DESCRIPTION
The tan(), tanf(), and tanl() 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(), tanf(), and tanl() functions return the tangent value. SEE ALSO
acos(3), asin(3), atan(3), atan2(3), cos(3), cosh(3), ctan(3), math(3), sin(3), sinh(3), tanh(3) STANDARDS
These functions conform to ISO/IEC 9899:1999 (``ISO C99''). BSD
January 24, 2008 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

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

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... (20 Replies)
Discussion started by: peter.herlihy
20 Replies

2. Shell Programming and Scripting

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... (18 Replies)
Discussion started by: cg_dude
18 Replies

3. Shell Programming and Scripting

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 ... (16 Replies)
Discussion started by: taiL
16 Replies

4. Shell Programming and Scripting

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... (21 Replies)
Discussion started by: jzacsh
21 Replies

5. Shell Programming and Scripting

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... (16 Replies)
Discussion started by: EXT3FSCK
16 Replies

6. Shell Programming and Scripting

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... (18 Replies)
Discussion started by: vivek_damodaran
18 Replies

7. UNIX for Dummies Questions & Answers

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... (23 Replies)
Discussion started by: ambarginni
23 Replies

8. Shell Programming and Scripting

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$ (25 Replies)
Discussion started by: scriptor
25 Replies

9. Shell Programming and Scripting

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. (24 Replies)
Discussion started by: ghosh_tanmoy
24 Replies

10. Shell Programming and Scripting

[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... (17 Replies)
Discussion started by: sea
17 Replies

11. Shell Programming and Scripting

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=$((... (27 Replies)
Discussion started by: hasn318
27 Replies

12. UNIX for Advanced & Expert Users

[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!) :);) (17 Replies)
Discussion started by: MichaelFelt
17 Replies

13. Shell Programming and Scripting

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... (30 Replies)
Discussion started by: dsid
30 Replies

14. UNIX for Beginners Questions & Answers

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 #... (17 Replies)
Discussion started by: jvoot
17 Replies

Featured Tech Videos