.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:42:57 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Aug 14 1995 by Arnt Gulbrandsen .\" Переведен на русский Fri 22 Sep 2000 11:26:59, Alexey V. Medvedev 2:5022/78.6 .TH EXP 3 "June 16, 1993" "GNU" "Linux Programmer's Manual" .SH ИМЯ exp, log, log10, pow \- вычисление экспоненты, логарифма и возведение в степень .SH СИНТАКСИС .nf .B #include .sp .BI "double exp(double " x ); .sp .BI "double log(double " x ); .sp .BI "double log10(double " x ); .sp .BI "double pow(double " x ", double " y ); .fi .SH ОПИСАНИЕ Функция \fBexp()\fP возвращает результат возведения числа e (основание натуральных логарифмов) в степень \fIx\fP. .PP Функция \fBlog()\fP возвращает натуральный логарифм аргумента \fIx\fP. .PP Функция \fBlog10()\fP возвращает логарифм по основанию 10 аргумента \fIx\fP. .PP Функция \fBpow()\fP возвращает результат возведения \fIx\fP в степень \fIy\fP. .SH "КОДЫ ОШИБОК" Функции \fBlog()\fP и \fBlog10()\fP могут возвращать следующие коды ошибок: .TP .B EDOM Аргумент \fIx\fP отрицателен. .TP .B ERANGE Аргумент \fIx\fP равен нулю. Логарифм нуля не определен. .PP Функция \fBpow()\fP может возвращать следующий код ошибки: .TP .B EDOM Аргумент \fIx\fP отрицателен и \fIy\fP не является целым числом. Результатом такой операции является комплексное число. .SH "СООТВЕТСТВИЕ СТАНДАРТАМ" SVID 3, POSIX, BSD 4.3, ISO 9899 .SH "СМОТРИ ТАКЖЕ" .BR sqrt "(3), " cbrt (3)