🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #537

pow(3M) may have a bug or undocumented limitation

#537
From: Captain Neptune
Date: Sun, 17 May 1987 23:05
20 lines
1755 bytes
I am running an HP 9000/840 running HP-UX and I have a problem doing some math.
I am trying to use pow(3M) to raise a positive integer value to a negative
integer value.  For example, the 12th root of 2 --> 2 ^ (-12) --> pow(2,-12).

I keep getting "DOMAIN error" even though the manual page doesn't seem to
cite this case as an illegal one.  It would be illegal if, say, the first
argument was zero, for instance.  Pow(3M) is found on the manual page for
"exp(3M)".

Any ideas why this is happening?  Have I made some fundamental blunder?
Has pow(3M) made some fundamental blunder?
-- 
+----------------------------------------------------------------------------+
|     Mark Steven Jeghers: the terrorist smuggling CIA weapons to Libya      |
|                                                                            |
|     {ihnp4,cbosgd,lll-lcc,lll-crg}|{dual,ptsfa}!cogent!mark                |
|                                                                            |
|     Standard Disclaimer:  Contents may have settled during shipment.       |
+----------------------------------------------------------------------------+
Technical Details
Message-ID: <226@cogent.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!ames!ptsfa!cogent!mark

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!ames!ptsfa!cogent!mark
From: mark@cogent.UUCP (Captain Neptune)
Newsgroups: comp.bugs.sys5,comp.sys.hp
Subject: pow(3M) may have a bug or undocumented limitation
Message-ID: <226@cogent.UUCP>
Date: Sun, 17-May-87 19:05:52 EDT
Article-I.D.: cogent.226
Posted: Sun May 17 19:05:52 1987
Date-Received: Sun, 17-May-87 22:44:30 EDT
Reply-To: mark@cogent.UUCP (Mark Steven Jeghers)
Distribution: world
Organization: Cogent Software Solutions, Stockton, CA
Lines: 20
Keywords: x^y y<0 DOMAIN error