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 "Jul 12, 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 TYPE ATTRIBUTE VALUE
Interface Stability Stable
MT-Level MT-Safe
SEE ALSO

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