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.44 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 recently read in a Perl tutorial, that Perl can do anything that awk and/or sed can do and more. In fact it goes on to say that Perl was originally written by a systems admin who felt that he needed a new language to perform his administrative tasks easier and more efficiently.
Is this... (6 Replies)
I m writting code in c using another library(parapin) and making Makefile .but there is a error like
undefined reference to `sinf'
undefined reference to `ceilf'
although i have added math.h library in my code
. I tried to run simple programme using math.h
and it run.but in making Makefile it... (2 Replies)
Hi,
I refer to this treat. I got the same objective, to capture serial number.
when I type command sysinfo not found.
but my system have 'man -s 2 sysinfo'.
How to make sysinfo command work.
FYI i'm using Solaris 10 11/06. (1 Reply)
Hi ,
Please help me FTP an output file to mainframes using Mainframes.
I have no idea how to FTP to mainframes. :(
I need to deploy my code by next week. The code is ready but the client's requirement is that i need to ftp all the output file to the mainframes server. I created the dataset... (1 Reply)
Hi
I accidentally deleted all the files in the /usr when I should have deleted files in usr1. Ever since I haven't been able to satrt my server which runs on Solaris 9 and SPARC engine.
Can anyone help me to start the server and restore the rest of the services? (1 Reply)
Can someone help me in fixing this issue..
this is the result iam getting now..
----------------------------------------------
Index of /SysInfo
Parent Directory
hndspdb1.html
hndspdb2.html
hndspdb3.html
hndspdb4.html
hndssdb1.html
hndssdb2.html... (1 Reply)
Hi all,
I am new to shell scripting.
I have dbf file and I need to convert it into csv file.
OR, can i read the fields from a .dbf file and OR seprate the records in dbf file and put into .csv or txt.
Actually in the .dbf files I am getting , the numbers of fields may vary in very record and... (6 Replies)
I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks (2 Replies)
Hello,
sysinfo throws out below 3 CPU counts. Can anyone help me understand what each of these means?
CPU Count Socketed is 2
CPU Count Physical is 8
CPU Count Virtual is 16
First one seems obvious. However, I wonder how there can be 8 Physical CPUs, if... (2 Replies)
need to login 4 systems to check whether the systems are accessible or not using rlogin command,after each login i will exit.After issuing the command rlogin abc if it is not responding i will get a message of "connection timed out" . So i want to automate this task .so i tried like below :
EX:... (1 Reply)
need to login 4 systems to check whether the systems are accessible or not using rlogin command,after each login i will exit.After issuing the command rlogin abc if it is not responding i will get a message of "connection timed out" . So i want to automate this task .so i tried like below:
EX:
... (3 Replies)
Hi folks,
I have created a sysinfo script to capture the system information on daily basis which run in cron jobs.
Whereas, the output saved in the file are getting disapperared after some times..
Mainly for eg: the lvm commands like pvs,lvs, vgs, lvdisplay, pvdisplay..
... (2 Replies)