xref: /illumos-gate/usr/src/man/man3m/sincos.3m (revision 25c28e83beb90e7c80452a7c818c5e6f73a07dc8)
te
Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
sincos 3M "12 Jul 2006" "SunOS 5.11" "Mathematical Library Functions"
NAME
sincos, sincosf, sincosl - combined sine and cosine function
SYNOPSIS

c99 [ flag... ] file... -lm [ library... ]
#include <math.h>

void sincos(double x, double *s, double *c);

void sincosf(float x, float *s, float *c);

void sincosl(long double x, long double *s, long double *c);
DESCRIPTION

These functions compute the sine and cosine of the first argument x, measured in radians.

RETURN VALUES

Upon successful completion, these functions return the sine of x in *s and cosine of x in *c.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStable
MT-LevelMT-Safe
SEE ALSO

cos(3M), sin(3M), math.h(3HEAD), attributes(5)