]> granicus.if.org Git - php/commitdiff
good grief, positive powers of 0 are well-defined. (code fix coming.)
authorjim winstead <jimw@php.net>
Sat, 5 Jan 2002 02:16:16 +0000 (02:16 +0000)
committerjim winstead <jimw@php.net>
Sat, 5 Jan 2002 02:16:16 +0000 (02:16 +0000)
ext/standard/tests/math/pow.phpt

index 80401e7e565b5131c61c7536af3965b63442f202..cbe5efea99862258aa6250c45b504f741a4feeb5 100644 (file)
@@ -48,9 +48,9 @@ FALSE ===@pow(-1, 1.0)
 FALSE ===@pow(-1, 2.0)
 FALSE ===@pow( 0,-2.0)
 FALSE ===@pow( 0,-1.0)
-FALSE ===@pow( 0, 0.0)
-FALSE ===@pow( 0, 1.0)
-FALSE ===@pow( 0, 2.0)
+ 1.0  === pow( 0, 0.0)
+ 0.0  === pow( 0, 1.0)
+ 0.0  === pow( 0, 2.0)
  1.0  === pow( 1,-2.0)
  1.0  === pow( 1,-1.0)
  1.0  === pow( 1, 0.0)
@@ -80,9 +80,9 @@ FALSE ===@pow(-1.0, 1.0)
 FALSE ===@pow(-1.0, 2.0)
 FALSE ===@pow( 0.0,-2.0)
 FALSE ===@pow( 0.0,-1.0)
-FALSE ===@pow( 0.0, 0.0)
-FALSE ===@pow( 0.0, 1.0)
-FALSE ===@pow( 0.0, 2.0)
+ 1.0  === pow( 0.0, 0.0)
+ 0.0  === pow( 0.0, 1.0)
+ 0.0  === pow( 0.0, 2.0)
  1.0  === pow( 1.0,-2.0)
  1.0  === pow( 1.0,-1.0)
  1.0  === pow( 1.0, 0.0)