exp.3 (53036) | exp.3 (57686) |
---|---|
1.\" Copyright (c) 1985, 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 | 1.\" Copyright (c) 1985, 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 |
33.\" $FreeBSD: head/lib/msun/man/exp.3 53036 1999-11-09 00:18:22Z phantom $ | 33.\" $FreeBSD: head/lib/msun/man/exp.3 57686 2000-03-02 09:14:21Z sheldonh $ |
34.\" 35.Dd July 31, 1991 36.Dt EXP 3 37.Os BSD 4 38.Sh NAME 39.Nm exp , 40.Nm expf , 41.Nm exp2 , --- 217 unchanged lines hidden (view full) --- 259operand on a 260.Tn VAX ) . Previous implementations of pow may 261have defined x**0 to be undefined in some or all of these 262cases. Here are reasons for returning x**0 = 1 always: 263.Bl -enum -width indent 264.It 265Any program that already tests whether x is zero (or 266infinite or \*(Na) before computing x**0 cannot care | 34.\" 35.Dd July 31, 1991 36.Dt EXP 3 37.Os BSD 4 38.Sh NAME 39.Nm exp , 40.Nm expf , 41.Nm exp2 , --- 217 unchanged lines hidden (view full) --- 259operand on a 260.Tn VAX ) . Previous implementations of pow may 261have defined x**0 to be undefined in some or all of these 262cases. Here are reasons for returning x**0 = 1 always: 263.Bl -enum -width indent 264.It 265Any program that already tests whether x is zero (or 266infinite or \*(Na) before computing x**0 cannot care |
267whether 0**0 = 1 or not. Any program that depends | 267whether 0**0 = 1 or not. 268Any program that depends |
268upon 0**0 to be invalid is dubious anyway since that 269expression's meaning and, if invalid, its consequences 270vary from one computer system to another. 271.It 272Some Algebra texts (e.g. Sigler's) define x**0 = 1 for 273all x, including x = 0. 274This is compatible with the convention that accepts a[0] 275as the value of polynomial --- 48 unchanged lines hidden --- | 269upon 0**0 to be invalid is dubious anyway since that 270expression's meaning and, if invalid, its consequences 271vary from one computer system to another. 272.It 273Some Algebra texts (e.g. Sigler's) define x**0 = 1 for 274all x, including x = 0. 275This is compatible with the convention that accepts a[0] 276as the value of polynomial --- 48 unchanged lines hidden --- |