From patchwork Fri May 6 07:54:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rical Jasan X-Patchwork-Id: 619217 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r1Q4h45lZz9t41 for ; Fri, 6 May 2016 18:32:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=YXajnvdj; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=ED3pQ Wf+AshgnxnjQpUQ6J6ONZZOdi3fQzvdB4kXbMd9LPWUTu+sWV+BTZ/5iRb2G1DPh dke7DIVEKJO3bf/+8oxkyQD8Lo8TG2o2EymTsIAOB2/qG7xO8BM6h+WMjQUc/aXQ Wz/d9AznSkzAT46kDJQUPgHRawiSlDKVuLz+40= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=rGIePh1OGSy c4YMbj8DxBrZ4Zow=; b=YXajnvdjlNNHhAA0ByL2pgRFhW/Pk9qUsw+htz/GFGj s7JKrER/D+tsDOjB2l5+Ap8DgmcQHd6nu7RGd6ixTdQcr5EX5sR6zJEouMXw9nFV sX+EVLw/STbDOWjiBwaOFbwx0Ur3zkZzdY1TdWHmHvPPu1z3Z2yiyg7xPABUH8L0 = Received: (qmail 121653 invoked by alias); 6 May 2016 08:32:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 120163 invoked by uid 89); 6 May 2016 08:32:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=reflects, signs, Mathematics, mathematics X-HELO: mail.pacific.net From: ricaljasan@pacific.net To: libc-alpha@sourceware.org Subject: [PATCH 17/37] Manual typos: Mathematics Date: Fri, 6 May 2016 00:54:45 -0700 Message-Id: <1462521305-19409-18-git-send-email-ricaljasan@pacific.net> In-Reply-To: <1462521305-19409-1-git-send-email-ricaljasan@pacific.net> References: <1462521305-19409-1-git-send-email-ricaljasan@pacific.net> MIME-Version: 1.0 X-Null-Tag: 6eaa85267b39dc0343c085908e677d6d 2016-05-06 Rical Jasan * manual/math.texi: Fix typos in the manual. --- manual/math.texi | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/manual/math.texi b/manual/math.texi index 5c9f7b9..0d9b09b 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -210,7 +210,7 @@ function to do that. @deftypefunx void sincosl (long double @var{x}, long double *@var{sinx}, long double *@var{cosx}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} These functions return the sine of @var{x} in @code{*@var{sinx}} and the -cosine of @var{x} in @code{*@var{cos}}, where @var{x} is given in +cosine of @var{x} in @code{*@var{cosx}}, where @var{x} is given in radians. Both values, @code{*@var{sinx}} and @code{*@var{cosx}}, are in the range of @code{-1} to @code{1}. @@ -303,7 +303,7 @@ pole. @section Inverse Trigonometric Functions @cindex inverse trigonometric functions -These are the usual arc sine, arc cosine and arc tangent functions, +These are the usual arcsine, arccosine and arctangent functions, which are the inverses of the sine, cosine and tangent functions respectively. @@ -317,12 +317,12 @@ respectively. @comment ISO @deftypefunx {long double} asinl (long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the arc sine of @var{x}---that is, the value whose +These functions compute the arcsine of @var{x}---that is, the value whose sine is @var{x}. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between @code{-pi/2} and @code{pi/2} (inclusive). -The arc sine function is defined mathematically only +The arcsine function is defined mathematically only over the domain @code{-1} to @code{1}. If @var{x} is outside the domain, @code{asin} signals a domain error. @end deftypefun @@ -337,12 +337,12 @@ domain, @code{asin} signals a domain error. @comment ISO @deftypefunx {long double} acosl (long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the arc cosine of @var{x}---that is, the value +These functions compute the arccosine of @var{x}---that is, the value whose cosine is @var{x}. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between @code{0} and @code{pi} (inclusive). -The arc cosine function is defined mathematically only +The arccosine function is defined mathematically only over the domain @code{-1} to @code{1}. If @var{x} is outside the domain, @code{acos} signals a domain error. @end deftypefun @@ -357,7 +357,7 @@ domain, @code{acos} signals a domain error. @comment ISO @deftypefunx {long double} atanl (long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the arc tangent of @var{x}---that is, the value +These functions compute the arctangent of @var{x}---that is, the value whose tangent is @var{x}. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between @code{-pi/2} and @code{pi/2} (inclusive). @@ -373,7 +373,7 @@ returned is the one between @code{-pi/2} and @code{pi/2} (inclusive). @comment ISO @deftypefunx {long double} atan2l (long double @var{y}, long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -This function computes the arc tangent of @var{y}/@var{x}, but the signs +This function computes the arctangent of @var{y}/@var{x}, but the signs of both arguments are used to determine the quadrant of the result, and @var{x} is permitted to be zero. The return value is given in radians and is in the range @code{-pi} to @code{pi}, inclusive. @@ -402,7 +402,7 @@ If both @var{x} and @var{y} are zero, @code{atan2} returns zero. @comment ISO @deftypefunx {complex long double} casinl (complex long double @var{z}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the complex arc sine of @var{z}---that is, the +These functions compute the complex arcsine of @var{z}---that is, the value whose sine is @var{z}. The value returned is in radians. Unlike the real-valued functions, @code{casin} is defined for all @@ -419,7 +419,7 @@ values of @var{z}. @comment ISO @deftypefunx {complex long double} cacosl (complex long double @var{z}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the complex arc cosine of @var{z}---that is, the +These functions compute the complex arccosine of @var{z}---that is, the value whose cosine is @var{z}. The value returned is in radians. Unlike the real-valued functions, @code{cacos} is defined for all @@ -437,7 +437,7 @@ values of @var{z}. @comment ISO @deftypefunx {complex long double} catanl (complex long double @var{z}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions compute the complex arc tangent of @var{z}---that is, +These functions compute the complex arctangent of @var{z}---that is, the value whose tangent is @var{z}. The value is in units of radians. @end deftypefun @@ -729,7 +729,7 @@ to subtraction of two numbers that are nearly equal. @comment ISO @deftypefunx {long double} log1pl (long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions returns a value equivalent to @w{@code{log (1 + @var{x})}}. +These functions return a value equivalent to @w{@code{log (1 + @var{x})}}. They are computed in a way that is accurate even if @var{x} is near zero. @end deftypefun @@ -872,7 +872,7 @@ may signal overflow if @var{x} is too large. @comment ISO @deftypefunx {long double} coshl (long double @var{x}) @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These function return the hyperbolic cosine of @var{x}, +These functions return the hyperbolic cosine of @var{x}, defined mathematically as @w{@code{(exp (@var{x}) + exp (-@var{x})) / 2}}. They may signal overflow if @var{x} is too large. @end deftypefun @@ -1145,7 +1145,7 @@ instead of in the @var{signgam} global. This means it is reentrant. @safety{@prelim{}@mtunsafe{@mtasurace{:signgam}}@asunsafe{}@acsafe{}} These functions exist for compatibility reasons. They are equivalent to @code{lgamma} etc. It is better to use @code{lgamma} since for one the -name reflects better the actual computation, moreover @code{lgamma} is +name reflects better the actual computation, and moreover @code{lgamma} is standardized in @w{ISO C99} while @code{gamma} is not. @end deftypefun @@ -1297,7 +1297,7 @@ for functions in the math library, and does not aim for correctness in whether ``inexact'' exceptions are raised. Instead, the goals for accuracy of functions without fully specified results are as follows; some functions have bugs meaning they do not meet these goals in all -cases. In future, @theglibc{} may provide some other correctly +cases. In the future, @theglibc{} may provide some other correctly rounding functions under the names such as @code{crsin} proposed for an extension to ISO C. @@ -1582,7 +1582,7 @@ pseudo-random number generator. @Theglibc{} contains four additional functions which contain the state as an explicit parameter and therefore make it possible to handle -thread-local PRNGs. Beside this there is no difference. In fact, the +thread-local PRNGs. Besides this there is no difference. In fact, the four functions already discussed are implemented internally using the following interfaces. @@ -1784,7 +1784,7 @@ the user has called the @code{lcong48} function (see below). The @code{seed48} function initializes all 48 bits of the state of the internal random number generator from the contents of the parameter @var{seed16v}. Here the lower 16 bits of the first element of -@var{see16v} initialize the least significant 16 bits of the internal +@var{seed16v} initialize the least significant 16 bits of the internal state, the lower 16 bits of @code{@var{seed16v}[1]} initialize the mid-order 16 bits of the state and the 16 lower bits of @code{@var{seed16v}[2]} initialize the most significant 16 bits of the state. @@ -2026,7 +2026,7 @@ This means that no calls to the library functions may be necessary, and can increase the speed of generated code significantly. The drawback is that code size will increase, and the increase is not always negligible. -There are two kind of inline functions: Those that give the same result +There are two kinds of inline functions: those that give the same result as the library functions and others that might not set @code{errno} and might have a reduced precision and/or argument range in comparison with the library functions. The latter inline functions are only available