Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

TRIG(3M)

��������
trig: sin, cos, tan, asin, acos, atan, atan2 - ������������������ �������

���������

	#include <math.h>
	
	double sin (x)
	double x;
	
	double cos (x)
	double x;
	
	double tan (x)
	double x;
	
	double asin (x)
	double x;
	
	double acos (x)
	double x;
	
	double atan (x)
	double x;
	
	double atan2 (y, x)
	double x, y;

��������
������� sin, cos � tan ����������, ��������������, �����, ������� � ������� ������ ���������, ��������� � ��������.

������� asin ���������� �������� arcsin (x) � ��������� �� - �/2 �� �/2.

������� acos ���������� �������� arccos (x) � ��������� �� 0 �� �.

������� atan ���������� �������� arctg (x) � ��������� �� - �/2 �� �/2.

������� atan2 ���������� �������� arctg (y/x) � ��������� �� - � �� �, ��������� ����� ����� ���������� ��� ����������� ���������, �������� ������ ������������ ������������ ��������.

��. �����
matherr(3M).

�����������
��� ���������� �������� ������� sin, cos � tan ��� �������� ���������, ������� �� ����, ���������� ������ ��������. ��� ���������� ������� ��������� ���������, ����� ���������� ������ ������ ����������, ��� ������� ���������� ������� ��������; ��� ���� � ����������� �������� ����� ������ ��������������� ���������. � �� ����� ������� ������, ����� ���������� ���� ��������� ������ ����������, ��������� �� ������ �� ��������. � ����� ������� ���������� errno ������������� �������� ERANGE.

���� ���������� �������� ��������� ������� asin ��� acos ��������� 1, ���� ��� ��������� ������� atan2 ����� ����, �� ����� ���������� ������� ��������, � ���������� errno ��������� �������� EDOM. ����� ����, � ����������� �������� ����� ������ ��������� � ������ �� ������� ������� �����������.

���������� ��������� ��������� ������ ����� ���� �������� ����������� ������� matherr(3M).
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT