SIN(3) Linux Programmer's Manual SIN(3)NAME
sin, sinf, sinl - sine function
SYNOPSIS
#include <math.h>
double sin(double x);
float sinf(float x);
long double sinl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sinf(), sinl():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
or cc -std=c99
DESCRIPTION
The sin() function returns the sine of x, where x is given in radians.
RETURN VALUE
On success, these functions return the sine of x.
If x is a NaN, a NaN is returned.
If x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned.
ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions.
The following errors can occur:
Domain error: x is an infinity
errno is set to EDOM (but see BUGS). An invalid floating-point exception (FE_INVALID) is raised.
CONFORMING TO
C99, POSIX.1-2001. The variant returning double also conforms to SVr4, 4.3BSD, C89.
BUGS
Before version 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred.
SEE ALSO acos(3), asin(3), atan(3), atan2(3), cos(3), csin(3), sincos(3), tan(3)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2010-09-11 SIN(3)
Check Out this Related Man Page
COS(3) Linux Programmer's Manual COS(3)NAME
cos, cosf, cosl - cosine function
SYNOPSIS
#include <math.h>
double cos(double x);
float cosf(float x);
long double cosl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
cosf(), cosl():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
These functions return the cosine of x, where x is given in radians.
RETURN VALUE
On success, these functions return the cosine of x.
If x is a NaN, a NaN is returned.
If x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned.
ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions.
The following errors can occur:
Domain error: x is an infinity
errno is set to EDOM (but see BUGS). An invalid floating-point exception (FE_INVALID) is raised.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+----------------------+---------------+---------+
|Interface | Attribute | Value |
+----------------------+---------------+---------+
|cos(), cosf(), cosl() | Thread safety | MT-Safe |
+----------------------+---------------+---------+
CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
The variant returning double also conforms to SVr4, 4.3BSD.
BUGS
Before version 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred.
SEE ALSO acos(3), asin(3), atan(3), atan2(3), ccos(3), sin(3), sincos(3), tan(3)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
2017-09-15 COS(3)
I have a file "sample.txt" with the content as below:
Hi
This is a Sample Text.
I need a single command using cat which serve the following purpose.
1.display the contents of sample.txt
2.append some text to it
3. and then exit
But, all should be served by a sinle... (1 Reply)
Hi everybody!
I need to delete several vertical lines in a huge text file.
It should work like the example below. Delete the vertical lines 2 and 8.
123456789
masldfjla
afsajfwel
sajfljsaf
safsarfrl
sajfeljwq
1345679
msldfja
asajfwl
sjfljsf
sfsarfl
sjfeljq
Is there a... (11 Replies)
Hi to everybody.
I have a script in AWK with a revursive function, when I make the recursive call I'm loosing values in the local variables. So I'm trying to do the script in Perl, but I don't know Perl.
I want to load several hashes with the data in a pipe separated file. In AWK it looks... (0 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
normally, i hate asking someone to do my homework for me but am getting desperate right now.
i have a project... (1 Reply)
So I have a bunch of files that look like this
>gi|33332323
MMKCRGVIMVVEKVMKRDGRIVPFDESRIRWAVQ---
>gi|45235353
MMKCR----VEKMRDVFFDESIRWAVQ
They go on...sequences are much longer but all in two line (fasta) format.
I want to remove duplicate pairs of ID(GI) number and sequence. I tried... (12 Replies)
Hello,
From the URL
https://www.unix.com/shell-programming-scripting/121303-remove-path-path-environment-variable-2.html
I got a function to remove the directories from a path. but looks like this isnt quite working.. i am also not able to post the comments in the thread as it is closed.
... (6 Replies)
Hi,
I have taken all active user list and passing it to below code
for i in $(cat sample.out)
do
finger ${usr}> report.txt
done
I got below O/P
Login Name TTY Idle When Where
de4s1 john console 111d Fri 03:00
efr56 ... (21 Replies)
Hi,
I have a requirement where in I need to insert delimiters before the last column of the total delimiters is less than a specified number.
Say if the delimiters is less than 139, I need to insert 2 columns ( with blanks) before the last field
awk -F 'Ç' '{ if (NF-1 < 139)} END { "Insert 2... (5 Replies)
Hello
I need to install a new application on my linux server but needs to have a new directory e.g /opt/InCharge as this is the directory that the application would ask for during installation .This directory needs to be mounted
if df -h it should appear as mounted (9 Replies)
Greetings Experts,
I am in AIX; I have a file generated through awk after processing the input files. Now I need to replace or remove the new-line characters on all lines that doesn't have a ; which is the last character on the line. I tried to use sed 's/\n/ /g' After checking through the... (6 Replies)
I am reworking a Marathi-English dictionary to be out on open-source. My dictionary has the Headword in Marathi, followed by its Part of Speech and subsequently by its English glosses as in the examples below;
अकरसणें v i To contract, shrink.
अकरा a Eleven.
अकराळ a Frightful, terrible.
विकराळ... (2 Replies)
Well, Google throws the web a curve ball again:
I thought I was going to get a break from coding; but no.....
https://www.unix.com/members/1-albums215-picture1240.png (15 Replies)