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

EXP(3M)

��������
exp, log, log10, pow, sqrt - �������������, ���������������, ��������� ������� � ������� ���������� ����������� �����

���������

	#include <math.h>
	
	double exp (x)
	double x;
	
	double log (x)
	double x;
	
	double log10 (x)
	double x;
	
	double pow (x, y)
	double x, y;
	
	double sqrt (x)
	double x;

��������
������� exp ���������� e^x.

������� log ���������� ����������� �������� ��������� x. �������� x ������ ���� �������������.

������� log10 ���������� �������� �� ��������� 10 ��������� x. �������� x ������ ���� �������������.

������� pow ���������� x^y. ���� �������� x ����� 0, �� �������� y ������ ���� �������������. ���� �������� x ������������, �� �������� y ������ ���� �����.

������� sqrt ���������� ��������������� �������� ����������� ����� �� x. �������� x �� ����� ���� �������������.

��. �����
hypot(3M), matherr(3M), sinh(3M).

�����������
������� exp ���������� �������� HUGE [��. intro(3)], ���� ������������� ��������������� �������� �������� � ������������, � 0 - ���� � ������������ �������. � ����� ������� ���������� errno ������������� �������� ERANGE.

��� ��������������� ���������� ������� log � log10 ���������� �������� -HUGE � ���������� errno ������������� �������� EDOM. ����� ����, � ����������� �������� �������� ��������� � ������ �� ������� ������� ����������� ���, ��� x=0, � ��������� � ����� �������������.

������� pow ���������� ������� ��������, � ���������� errno ������������� �������� EDOM � �������:

  1. ���� x=0 � �������� y ��������������.
  2. ���� �������� x ������������ � y �� �������� �����.

� ����� ������� � ����������� �������� ����� ������ ��������� � ������ �� ������� ������� �����������. ���� ������������� ��������������� �������� ������� pow �������� � ������������ ��� � ������������ �������, �� pow ���������� �������������� +HUGE, -HUGE ��� 0. ���������� errno ������������� �������� ERANGE.

������� sqrt ���������� ������� ��������, � ���������� errno ������������� �������� EDOM � ������, ���� x ������������. � ����������� �������� ����� ������ ��������� � ������ �� ������� ������� �����������.

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