pure-lang-svn Mailing List for Pure (Page 12)
Status: Beta
Brought to you by:
agraef
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
(141) |
Jun
(184) |
Jul
(97) |
Aug
(232) |
Sep
(196) |
Oct
|
Nov
|
Dec
|
---|
From: <ag...@us...> - 2008-08-23 23:56:33
|
Revision: 595 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=595&view=rev Author: agraef Date: 2008-08-23 23:56:43 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Correct wrong branch cut of complex acos. Modified Paths: -------------- pure/trunk/lib/math.pure pure/trunk/test/test020.log Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 23:42:23 UTC (rev 594) +++ pure/trunk/lib/math.pure 2008-08-23 23:56:43 UTC (rev 595) @@ -213,7 +213,7 @@ asin z@(x+:y) | asin z@(r<:t) = -i*ln (i*z+sqrt (1-z*z)); acos z@(x+:y) | -acos z@(r<:t) = -i*ln (z+sqrt (z*z-1)); +acos z@(r<:t) = -i*ln (z+i*sqrt (1-z*z)); atan z@(x+:y) | atan z@(r<:t) = (ln (1+i*z)-ln (1-i*z))/(2*i); Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 23:42:23 UTC (rev 594) +++ pure/trunk/test/test020.log 2008-08-23 23:56:43 UTC (rev 595) @@ -461,17 +461,17 @@ acos,1L%3L,1.23 acos,(-1L)%4L,1.82 acos,1+:2,1.14+:-1.53 -acos,-1+:2,-2.00+:1.53 -acos,1+:-2,-1.14+:-1.53 -acos,-1.20+:4.30,-1.84+:2.20 -acos,1.20+:-4.30,-1.30+:-2.20 +acos,-1+:2,2.00+:-1.53 +acos,1+:-2,1.14+:1.53 +acos,-1.20+:4.30,1.84+:-2.20 +acos,1.20+:-4.30,1.30+:2.20 acos,1L%2L+:1,1.22+:-0.926 acos,1L%2L+:3L%4L,1.17+:-0.743 acos,3<:1,1.02+:-1.80 acos,3<:-2.14,2.12+:1.80 acos,3.00<:-3,2.99+:1.76 -acos,3.10<:2.50,-2.47+:1.82 -acos,2L%3L<:2,-1.81+:0.589 +acos,3.10<:2.50,2.47+:-1.82 +acos,2L%3L<:2,1.81+:-0.589 acos,1L%2L<:3L%4L,1.22+:-0.355 acos,-inf,nan acos,nan,nan This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 23:42:13
|
Revision: 594 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=594&view=rev Author: agraef Date: 2008-08-23 23:42:23 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Cosmetic changes. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 23:21:06 UTC (rev 593) +++ pure/trunk/test/test020.log 2008-08-23 23:42:23 UTC (rev 594) @@ -1,10 +1,10 @@ { - rule #0: f = [sqrt,sin,cos,tan,ln,log,exp,atan,asin,acos,sinh,cosh,tanh,asinh,acosh,atanh,abs,re,im,arg,conj,rect,polar,cis,ceil,floor,round,frac,complexp,realp,rationalp,numberp,exactp,inexactp,infp,nanp] + rule #0: f = [sqrt,ln,log,exp,sin,cos,tan,asin,acos,atan,sinh,cosh,tanh,asinh,acosh,atanh,abs,re,im,arg,conj,rect,polar,cis,ceil,floor,round,frac,complexp,realp,rationalp,numberp,exactp,inexactp,infp,nanp] state 0: #0 <var> state 1 state 1: #0 } -let f = [sqrt,sin,cos,tan,ln,log,exp,atan,asin,acos,sinh,cosh,tanh,asinh,acosh,atanh,abs,re,im,arg,conj,rect,polar,cis,ceil,floor,round,frac,complexp,realp,rationalp,numberp,exactp,inexactp,infp,nanp]; +let f = [sqrt,ln,log,exp,sin,cos,tan,asin,acos,atan,sinh,cosh,tanh,asinh,acosh,atanh,abs,re,im,arg,conj,rect,polar,cis,ceil,floor,round,frac,complexp,realp,rationalp,numberp,exactp,inexactp,infp,nanp]; { rule #0: x = [1,-1,0,0.0,1.2,-1.2,1%3,-1%4,1+:2,-1+:2,1+:-2,-1.2+:4.3,1.2+:-4.3,1%2+:1,1%2+:3%4,3<:1,-3<:1,3.0<:-3,3.1<:2.5,2%3<:2,1%2<:3%4,-1e+307*1e+307,1e+307*1e+307-1e+307*1e+307,x] state 0: #0 @@ -284,6 +284,78 @@ sqrt,-inf,nan sqrt,nan,nan sqrt,x,__failed__ +ln,1,0.00 +ln,-1,nan +ln,0,-inf +ln,0.00,-inf +ln,1.20,0.182 +ln,-1.20,nan +ln,1L%3L,-1.10 +ln,(-1L)%4L,nan +ln,1+:2,0.805+:1.11 +ln,-1+:2,0.805+:2.03 +ln,1+:-2,0.805+:-1.11 +ln,-1.20+:4.30,1.50+:1.84 +ln,1.20+:-4.30,1.50+:-1.30 +ln,1L%2L+:1,0.112+:1.11 +ln,1L%2L+:3L%4L,-0.104+:0.983 +ln,3<:1,1.49<:0.738 +ln,3<:-2.14,2.41<:-1.10 +ln,3.00<:-3,3.19<:-1.22 +ln,3.10<:2.50,2.74<:1.15 +ln,2L%3L<:2,2.04<:1.77 +ln,1L%2L<:3L%4L,1.02<:2.32 +ln,-inf,nan +ln,nan,nan +ln,x,__failed__ +log,1,0.00 +log,-1,nan +log,0,-inf +log,0.00,-inf +log,1.20,0.0792 +log,-1.20,nan +log,1L%3L,-0.477 +log,(-1L)%4L,nan +log,1+:2,0.349+:0.481 +log,-1+:2,0.349+:0.884 +log,1+:-2,0.349+:-0.481 +log,-1.20+:4.30,0.650+:0.800 +log,1.20+:-4.30,0.650+:-0.564 +log,1L%2L+:1,0.0485+:0.481 +log,1L%2L+:3L%4L,-0.0451+:0.427 +log,3<:1,0.645<:0.738 +log,3<:-2.14,1.05<:-1.10 +log,3.00<:-3,1.39<:-1.22 +log,3.10<:2.50,1.19<:1.15 +log,2L%3L<:2,0.886<:1.77 +log,1L%2L<:3L%4L,0.444<:2.32 +log,-inf,nan +log,nan,nan +log,x,__failed__ +exp,1,2.72 +exp,-1,0.368 +exp,0,1.00 +exp,0.00,1.00 +exp,1.20,3.32 +exp,-1.20,0.301 +exp,1L%3L,1.40 +exp,(-1L)%4L,0.779 +exp,1+:2,-1.13+:2.47 +exp,-1+:2,-0.153+:0.335 +exp,1+:-2,-1.13+:-2.47 +exp,-1.20+:4.30,-0.121+:-0.276 +exp,1.20+:-4.30,-1.33+:3.04 +exp,1L%2L+:1,0.891+:1.39 +exp,1L%2L+:3L%4L,1.21+:1.12 +exp,3<:1,5.06<:2.52 +exp,3<:-2.14,0.198<:-2.52 +exp,3.00<:-3,0.0513<:-0.423 +exp,3.10<:2.50,0.0834<:1.86 +exp,2L%3L<:2,0.758<:0.606 +exp,1L%2L<:3L%4L,1.44<:0.341 +exp,-inf,0.00 +exp,nan,nan +exp,x,__failed__ sin,1,0.841 sin,-1,-0.841 sin,0,0.00 @@ -356,102 +428,6 @@ tan,-inf,nan tan,nan,nan tan,x,__failed__ -ln,1,0.00 -ln,-1,nan -ln,0,-inf -ln,0.00,-inf -ln,1.20,0.182 -ln,-1.20,nan -ln,1L%3L,-1.10 -ln,(-1L)%4L,nan -ln,1+:2,0.805+:1.11 -ln,-1+:2,0.805+:2.03 -ln,1+:-2,0.805+:-1.11 -ln,-1.20+:4.30,1.50+:1.84 -ln,1.20+:-4.30,1.50+:-1.30 -ln,1L%2L+:1,0.112+:1.11 -ln,1L%2L+:3L%4L,-0.104+:0.983 -ln,3<:1,1.49<:0.738 -ln,3<:-2.14,2.41<:-1.10 -ln,3.00<:-3,3.19<:-1.22 -ln,3.10<:2.50,2.74<:1.15 -ln,2L%3L<:2,2.04<:1.77 -ln,1L%2L<:3L%4L,1.02<:2.32 -ln,-inf,nan -ln,nan,nan -ln,x,__failed__ -log,1,0.00 -log,-1,nan -log,0,-inf -log,0.00,-inf -log,1.20,0.0792 -log,-1.20,nan -log,1L%3L,-0.477 -log,(-1L)%4L,nan -log,1+:2,0.349+:0.481 -log,-1+:2,0.349+:0.884 -log,1+:-2,0.349+:-0.481 -log,-1.20+:4.30,0.650+:0.800 -log,1.20+:-4.30,0.650+:-0.564 -log,1L%2L+:1,0.0485+:0.481 -log,1L%2L+:3L%4L,-0.0451+:0.427 -log,3<:1,0.645<:0.738 -log,3<:-2.14,1.05<:-1.10 -log,3.00<:-3,1.39<:-1.22 -log,3.10<:2.50,1.19<:1.15 -log,2L%3L<:2,0.886<:1.77 -log,1L%2L<:3L%4L,0.444<:2.32 -log,-inf,nan -log,nan,nan -log,x,__failed__ -exp,1,2.72 -exp,-1,0.368 -exp,0,1.00 -exp,0.00,1.00 -exp,1.20,3.32 -exp,-1.20,0.301 -exp,1L%3L,1.40 -exp,(-1L)%4L,0.779 -exp,1+:2,-1.13+:2.47 -exp,-1+:2,-0.153+:0.335 -exp,1+:-2,-1.13+:-2.47 -exp,-1.20+:4.30,-0.121+:-0.276 -exp,1.20+:-4.30,-1.33+:3.04 -exp,1L%2L+:1,0.891+:1.39 -exp,1L%2L+:3L%4L,1.21+:1.12 -exp,3<:1,5.06<:2.52 -exp,3<:-2.14,0.198<:-2.52 -exp,3.00<:-3,0.0513<:-0.423 -exp,3.10<:2.50,0.0834<:1.86 -exp,2L%3L<:2,0.758<:0.606 -exp,1L%2L<:3L%4L,1.44<:0.341 -exp,-inf,0.00 -exp,nan,nan -exp,x,__failed__ -atan,1,0.785 -atan,-1,-0.785 -atan,0,0.00 -atan,0.00,0.00 -atan,1.20,0.876 -atan,-1.20,-0.876 -atan,1L%3L,0.322 -atan,(-1L)%4L,-0.245 -atan,1+:2,1.34+:0.402 -atan,-1+:2,-1.34+:0.402 -atan,1+:-2,1.34+:-0.402 -atan,-1.20+:4.30,-1.51+:0.218 -atan,1.20+:-4.30,1.51+:-0.218 -atan,1L%2L+:1,0.908+:0.708 -atan,1L%2L+:3L%4L,0.693+:0.590 -atan,3<:1,1.38+:0.278 -atan,3<:-2.14,-1.38+:-0.278 -atan,3.00<:-3,-1.25+:-0.0424 -atan,3.10<:2.50,-1.31+:0.183 -atan,2L%3L<:2,-0.392+:0.609 -atan,1L%2L<:3L%4L,0.387+:0.306 -atan,-inf,-1.57 -atan,nan,nan -atan,x,__failed__ asin,1,1.57 asin,-1,-1.57 asin,0,0.00 @@ -500,6 +476,30 @@ acos,-inf,nan acos,nan,nan acos,x,__failed__ +atan,1,0.785 +atan,-1,-0.785 +atan,0,0.00 +atan,0.00,0.00 +atan,1.20,0.876 +atan,-1.20,-0.876 +atan,1L%3L,0.322 +atan,(-1L)%4L,-0.245 +atan,1+:2,1.34+:0.402 +atan,-1+:2,-1.34+:0.402 +atan,1+:-2,1.34+:-0.402 +atan,-1.20+:4.30,-1.51+:0.218 +atan,1.20+:-4.30,1.51+:-0.218 +atan,1L%2L+:1,0.908+:0.708 +atan,1L%2L+:3L%4L,0.693+:0.590 +atan,3<:1,1.38+:0.278 +atan,3<:-2.14,-1.38+:-0.278 +atan,3.00<:-3,-1.25+:-0.0424 +atan,3.10<:2.50,-1.31+:0.183 +atan,2L%3L<:2,-0.392+:0.609 +atan,1L%2L<:3L%4L,0.387+:0.306 +atan,-inf,-1.57 +atan,nan,nan +atan,x,__failed__ sinh,1,1.18 sinh,-1,-1.18 sinh,0,0.00 Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 23:21:06 UTC (rev 593) +++ pure/trunk/test/test020.pure 2008-08-23 23:42:23 UTC (rev 594) @@ -4,7 +4,7 @@ // unary operations -let f = [sqrt, sin, cos, tan, ln, log, exp, atan, asin, acos, sinh, cosh, tanh, +let f = [sqrt, ln, log, exp, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, abs, re, im, arg, conj, rect, polar, cis, ceil, floor, round, frac, complexp, realp, rationalp, numberp, exactp, inexactp, infp, nanp]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 23:20:56
|
Revision: 593 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=593&view=rev Author: agraef Date: 2008-08-23 23:21:06 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Final touches (0.5 release). Modified Paths: -------------- pure/trunk/NEWS Modified: pure/trunk/NEWS =================================================================== --- pure/trunk/NEWS 2008-08-23 23:20:21 UTC (rev 592) +++ pure/trunk/NEWS 2008-08-23 23:21:06 UTC (rev 593) @@ -1,5 +1,5 @@ -** Pure 0.5 2008-08-22 +** Pure 0.5 2008-08-24 This release sports LLVM 2.3 support and a bunch of bug fixes and improvements in the language, the standard library and the code generator. As usual, please This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 23:20:11
|
Revision: 592 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=592&view=rev Author: agraef Date: 2008-08-23 23:20:21 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Updated ChangeLog. Modified Paths: -------------- pure/trunk/ChangeLog Modified: pure/trunk/ChangeLog =================================================================== --- pure/trunk/ChangeLog 2008-08-23 22:39:15 UTC (rev 591) +++ pure/trunk/ChangeLog 2008-08-23 23:20:21 UTC (rev 592) @@ -1,7 +1,37 @@ -2008-08-22 Albert Graef <Dr....@t-...> +2008-08-24 Albert Graef <Dr....@t-...> * 0.5 release. + * test/test020.pure, test/test021.pure: Cosmetic changes, added + math.pure tests for checking exact/inexact/symbolic results. + + NOTE: test020.log is fairly big and thus still needs to be + reviewed more thoroughly. If you can provide a helping hand there + by checking at least some of the tested operations and post + suspicious results to the mailing list, it will be much + appreciated. :-) + + * lib/math.pure: Fixed the broken definition of the complex sqrt, + and did some cosmetic surgery on some operations, to make them + more compatible with established standards (IEEE 754, POSIX). This + probably isn't perfect yet, so please report any suspicious + results or glitches in branch cuts and the like. + + I also checked some of the complex trig and hyperbolic operations + manually against my HP-50G calculator (whose numeric algorithms + are based on earlier HP calculator software designed by William + Kahan, the architect of IEEE 754), and they seem to provide the + proper branch cuts now, so that results are identical with the + calculator up to rounding discrepancies. + + Note that operations will now return complex results only if + invoked with complex (or mixed complex/real) arguments, as + suggested by Eddie Rucker. I also added the necessary type guards + to ensure that operations are irreducible when invoked with + non-numeric arguments. + +2008-08-22 Albert Graef <Dr....@t-...> + * test/test020.pure: Added math.pure tests by Eddie Rucker. * runtime.cc (same): Bugfix in comparison of global functions. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:39:05
|
Revision: 591 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=591&view=rev Author: agraef Date: 2008-08-23 22:39:15 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Improved __failed__ test. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure pure/trunk/test/test021.log pure/trunk/test/test021.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 22:36:04 UTC (rev 590) +++ pure/trunk/test/test020.log 2008-08-23 22:39:15 UTC (rev 591) @@ -40,8 +40,8 @@ test (f/*0:101*/,x/*0:1101*/,y/*0:111*/) = puts$format (f/*0:101*/,x/*0:1101*/,y/*0:111*/,check (f/*0:101*/,x/*0:1101*/,y/*0:111*/) (catch __error__ (f/*1:101*/ x/*1:1101*/ y/*1:111*/))); test (f/*0:101*/,x/*0:11*/) = puts$format (f/*0:101*/,x/*0:11*/,check (f/*0:101*/,x/*0:11*/) (catch __error__ (f/*1:101*/ x/*1:11*/))); check _/*0:01*/ z/*0:1*/ = z/*0:1*/ if numberp z/*0:1*/; -check (f/*0:0101*/,_/*0:011*/) (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/; -check (f/*0:0101*/,_/*0:011*/) (g@_/*0:10*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/; +check (f/*0:0101*/,x/*0:01101*/,y/*0:0111*/) (g@_/*0:100*/ u/*0:101*/ v/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/&&x/*0:01101*/===u/*0:101*/&&y/*0:0111*/===v/*0:11*/; +check (f/*0:0101*/,x/*0:011*/) (g@_/*0:10*/ u/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/&&x/*0:011*/===u/*0:11*/; check _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; @@ -51,8 +51,8 @@ show x/*0:1*/ = str x/*0:1*/; { rule #0: check _ z = z if numberp z - rule #1: check (f,_) (g@_ _ _) = __failed__ if f===g - rule #2: check (f,_) (g@_ _) = __failed__ if f===g + rule #1: check (f,x,y) (g@_ u v) = __failed__ if f===g&&x===u&&y===v + rule #2: check (f,x) (g@_ u) = __failed__ if f===g&&x===u rule #3: check _ z = z state 0: #0 #1 #2 #3 <var> state 1 @@ -82,23 +82,67 @@ <var> state 13 state 13: #0 #1 #2 #3 <var> state 14 - state 14: #0 #1 #2 #3 + <app> state 19 + state 14: #0 #2 #3 <var> state 15 <app> state 16 state 15: #0 #3 - state 16: #0 #1 #2 #3 + state 16: #0 #2 #3 <var> state 17 - <app> state 19 state 17: #0 #2 #3 <var> state 18 state 18: #0 #2 #3 state 19: #0 #1 #2 #3 <var> state 20 - state 20: #0 #1 #2 #3 + <app> state 26 + state 20: #0 #2 #3 <var> state 21 - state 21: #0 #1 #2 #3 + state 21: #0 #2 #3 <var> state 22 - state 22: #0 #1 #2 #3 + <app> state 23 + state 22: #0 #3 + state 23: #0 #2 #3 + <var> state 24 + state 24: #0 #2 #3 + <var> state 25 + state 25: #0 #2 #3 + state 26: #0 #1 #2 #3 + <var> state 27 + , state 34 + state 27: #0 #2 #3 + <var> state 28 + state 28: #0 #2 #3 + <var> state 29 + state 29: #0 #2 #3 + <var> state 30 + <app> state 31 + state 30: #0 #3 + state 31: #0 #2 #3 + <var> state 32 + state 32: #0 #2 #3 + <var> state 33 + state 33: #0 #2 #3 + state 34: #0 #1 #2 #3 + <var> state 35 + state 35: #0 #1 #2 #3 + <var> state 36 + state 36: #0 #1 #2 #3 + <var> state 37 + <app> state 38 + state 37: #0 #3 + state 38: #0 #1 #2 #3 + <var> state 39 + <app> state 41 + state 39: #0 #2 #3 + <var> state 40 + state 40: #0 #2 #3 + state 41: #0 #1 #2 #3 + <var> state 42 + state 42: #0 #1 #2 #3 + <var> state 43 + state 43: #0 #1 #2 #3 + <var> state 44 + state 44: #0 #1 #2 #3 } { rule #0: format (f,x,y,z) = str f+","+show x+","+show y+","+show z Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 22:36:04 UTC (rev 590) +++ pure/trunk/test/test020.pure 2008-08-23 22:39:15 UTC (rev 591) @@ -35,8 +35,8 @@ test (f,x) = puts $ format (f,x,check (f,x) (catch __error__ (f x))); check _ z = z if numberp z; -check (f,_) (g@_ _ _) | -check (f,_) (g@_ _) = __failed__ if f===g; +check (f,x,y) (g@_ u v) = __failed__ if f===g && x===u && y===v; +check (f,x) (g@_ u) = __failed__ if f===g && x===u; check _ z = z otherwise; format (f,x,y,z) = str f+","+show x+","+show y+","+show z; Modified: pure/trunk/test/test021.log =================================================================== --- pure/trunk/test/test021.log 2008-08-23 22:36:04 UTC (rev 590) +++ pure/trunk/test/test021.log 2008-08-23 22:39:15 UTC (rev 591) @@ -2,8 +2,8 @@ test (f/*0:101*/,x/*0:1101*/,y/*0:111*/) = puts$format (f/*0:101*/,x/*0:1101*/,y/*0:111*/,check (f/*0:101*/,x/*0:1101*/,y/*0:111*/) (catch __error__ (f/*1:101*/ x/*1:1101*/ y/*1:111*/))); test (f/*0:101*/,x/*0:11*/) = puts$format (f/*0:101*/,x/*0:11*/,check (f/*0:101*/,x/*0:11*/) (catch __error__ (f/*1:101*/ x/*1:11*/))); check _/*0:01*/ z/*0:1*/ = z/*0:1*/ if numberp z/*0:1*/; -check (f/*0:0101*/,_/*0:011*/) (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/; -check (f/*0:0101*/,_/*0:011*/) (g@_/*0:10*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/; +check (f/*0:0101*/,x/*0:01101*/,y/*0:0111*/) (g@_/*0:100*/ u/*0:101*/ v/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/&&x/*0:01101*/===u/*0:101*/&&y/*0:0111*/===v/*0:11*/; +check (f/*0:0101*/,x/*0:011*/) (g@_/*0:10*/ u/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/&&x/*0:011*/===u/*0:11*/; check _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; @@ -13,8 +13,8 @@ show x/*0:1*/ = str x/*0:1*/; { rule #0: check _ z = z if numberp z - rule #1: check (f,_) (g@_ _ _) = __failed__ if f===g - rule #2: check (f,_) (g@_ _) = __failed__ if f===g + rule #1: check (f,x,y) (g@_ u v) = __failed__ if f===g&&x===u&&y===v + rule #2: check (f,x) (g@_ u) = __failed__ if f===g&&x===u rule #3: check _ z = z state 0: #0 #1 #2 #3 <var> state 1 @@ -44,23 +44,67 @@ <var> state 13 state 13: #0 #1 #2 #3 <var> state 14 - state 14: #0 #1 #2 #3 + <app> state 19 + state 14: #0 #2 #3 <var> state 15 <app> state 16 state 15: #0 #3 - state 16: #0 #1 #2 #3 + state 16: #0 #2 #3 <var> state 17 - <app> state 19 state 17: #0 #2 #3 <var> state 18 state 18: #0 #2 #3 state 19: #0 #1 #2 #3 <var> state 20 - state 20: #0 #1 #2 #3 + <app> state 26 + state 20: #0 #2 #3 <var> state 21 - state 21: #0 #1 #2 #3 + state 21: #0 #2 #3 <var> state 22 - state 22: #0 #1 #2 #3 + <app> state 23 + state 22: #0 #3 + state 23: #0 #2 #3 + <var> state 24 + state 24: #0 #2 #3 + <var> state 25 + state 25: #0 #2 #3 + state 26: #0 #1 #2 #3 + <var> state 27 + , state 34 + state 27: #0 #2 #3 + <var> state 28 + state 28: #0 #2 #3 + <var> state 29 + state 29: #0 #2 #3 + <var> state 30 + <app> state 31 + state 30: #0 #3 + state 31: #0 #2 #3 + <var> state 32 + state 32: #0 #2 #3 + <var> state 33 + state 33: #0 #2 #3 + state 34: #0 #1 #2 #3 + <var> state 35 + state 35: #0 #1 #2 #3 + <var> state 36 + state 36: #0 #1 #2 #3 + <var> state 37 + <app> state 38 + state 37: #0 #3 + state 38: #0 #1 #2 #3 + <var> state 39 + <app> state 41 + state 39: #0 #2 #3 + <var> state 40 + state 40: #0 #2 #3 + state 41: #0 #1 #2 #3 + <var> state 42 + state 42: #0 #1 #2 #3 + <var> state 43 + state 43: #0 #1 #2 #3 + <var> state 44 + state 44: #0 #1 #2 #3 } { rule #0: format (f,x,y,z) = str f+","+show x+","+show y+","+show z Modified: pure/trunk/test/test021.pure =================================================================== --- pure/trunk/test/test021.pure 2008-08-23 22:36:04 UTC (rev 590) +++ pure/trunk/test/test021.pure 2008-08-23 22:39:15 UTC (rev 591) @@ -14,8 +14,8 @@ test (f,x) = puts $ format (f,x,check (f,x) (catch __error__ (f x))); check _ z = z if numberp z; -check (f,_) (g@_ _ _) | -check (f,_) (g@_ _) = __failed__ if f===g; +check (f,x,y) (g@_ u v) = __failed__ if f===g && x===u && y===v; +check (f,x) (g@_ u) = __failed__ if f===g && x===u; check _ z = z otherwise; format (f,x,y,z) = str f+","+show x+","+show y+","+show z; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:35:56
|
Revision: 590 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=590&view=rev Author: agraef Date: 2008-08-23 22:36:04 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Add missing type guard to atan2 function. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 22:24:50 UTC (rev 589) +++ pure/trunk/lib/math.pure 2008-08-23 22:36:04 UTC (rev 590) @@ -472,8 +472,8 @@ acos (x%y) = acos (x/y); atan (x%y) = atan (x/y); -atan2 (x%y) z = atan2 (x/y) z; -atan2 x (y%z) = atan2 x (y/z); +atan2 (x%y) z = atan2 (x/y) z if realp z; +atan2 x (y%z) = atan2 x (y/z) if realp x; sinh (x%y) = sinh (x/y); cosh (x%y) = cosh (x/y); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:24:41
|
Revision: 589 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=589&view=rev Author: agraef Date: 2008-08-23 22:24:50 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Comment changes. Modified Paths: -------------- pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 22:16:55 UTC (rev 588) +++ pure/trunk/test/test020.pure 2008-08-23 22:24:50 UTC (rev 589) @@ -8,6 +8,8 @@ asinh, acosh, atanh, abs, re, im, arg, conj, rect, polar, cis, ceil, floor, round, frac, complexp, realp, rationalp, numberp, exactp, inexactp, infp, nanp]; +// Note: the symbolic constant 'x' at the end of the list is for testing +// operations with symbolic arguments (these should all yield '__failed__'). let x = [1, -1, 0, 0.0, 1.2, -1.2, 1%3, -1%4, 1+:2, -1+:2, 1+:-2, -1.2+:4.3, 1.2+:-4.3, 1%2+:1, 1%2+:3%4, 3<:1, -3<:1, 3.0<:-3, 3.1<:2.5, (2%3)<:2, (1%2)<:(3%4), -inf, nan, x]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:16:47
|
Revision: 588 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=588&view=rev Author: agraef Date: 2008-08-23 22:16:55 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Add test for symbolic values. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 22:10:16 UTC (rev 587) +++ pure/trunk/test/test020.log 2008-08-23 22:16:55 UTC (rev 588) @@ -6,12 +6,12 @@ } let f = [sqrt,sin,cos,tan,ln,log,exp,atan,asin,acos,sinh,cosh,tanh,asinh,acosh,atanh,abs,re,im,arg,conj,rect,polar,cis,ceil,floor,round,frac,complexp,realp,rationalp,numberp,exactp,inexactp,infp,nanp]; { - rule #0: x = [1,-1,0,0.0,1.2,-1.2,1%3,-1%4,1+:2,-1+:2,1+:-2,-1.2+:4.3,1.2+:-4.3,1%2+:1,1%2+:3%4,3<:1,-3<:1,3.0<:-3,3.1<:2.5,2%3<:2,1%2<:3%4,-1e+307*1e+307,1e+307*1e+307-1e+307*1e+307] + rule #0: x = [1,-1,0,0.0,1.2,-1.2,1%3,-1%4,1+:2,-1+:2,1+:-2,-1.2+:4.3,1.2+:-4.3,1%2+:1,1%2+:3%4,3<:1,-3<:1,3.0<:-3,3.1<:2.5,2%3<:2,1%2<:3%4,-1e+307*1e+307,1e+307*1e+307-1e+307*1e+307,x] state 0: #0 <var> state 1 state 1: #0 } -let x = [1,-1,0,0.0,1.2,-1.2,1%3,-1%4,1+:2,-1+:2,1+:-2,-1.2+:4.3,1.2+:-4.3,1%2+:1,1%2+:3%4,3<:1,-3<:1,3.0<:-3,3.1<:2.5,2%3<:2,1%2<:3%4,-1e+307*1e+307,1e+307*1e+307-1e+307*1e+307]; +let x = [1,-1,0,0.0,1.2,-1.2,1%3,-1%4,1+:2,-1+:2,1+:-2,-1.2+:4.3,1.2+:-4.3,1%2+:1,1%2+:3%4,3<:1,-3<:1,3.0<:-3,3.1<:2.5,2%3<:2,1%2<:3%4,-1e+307*1e+307,1e+307*1e+307-1e+307*1e+307,x]; { rule #0: f2 = [(+),(-),(*),(/),(^),atan2,pow] state 0: #0 @@ -239,6 +239,7 @@ sqrt,1L%2L<:3L%4L,0.707<:0.375 sqrt,-inf,nan sqrt,nan,nan +sqrt,x,__failed__ sin,1,0.841 sin,-1,-0.841 sin,0,0.00 @@ -262,6 +263,7 @@ sin,1L%2L<:3L%4L,0.499<:0.708 sin,-inf,nan sin,nan,nan +sin,x,__failed__ cos,1,0.540 cos,-1,0.540 cos,0,1.00 @@ -285,6 +287,7 @@ cos,1L%2L<:3L%4L,0.996<:-0.125 cos,-inf,nan cos,nan,nan +cos,x,__failed__ tan,1,1.56 tan,-1,-1.56 tan,0,0.00 @@ -308,6 +311,7 @@ tan,1L%2L<:3L%4L,0.501<:0.833 tan,-inf,nan tan,nan,nan +tan,x,__failed__ ln,1,0.00 ln,-1,nan ln,0,-inf @@ -331,6 +335,7 @@ ln,1L%2L<:3L%4L,1.02<:2.32 ln,-inf,nan ln,nan,nan +ln,x,__failed__ log,1,0.00 log,-1,nan log,0,-inf @@ -354,6 +359,7 @@ log,1L%2L<:3L%4L,0.444<:2.32 log,-inf,nan log,nan,nan +log,x,__failed__ exp,1,2.72 exp,-1,0.368 exp,0,1.00 @@ -377,6 +383,7 @@ exp,1L%2L<:3L%4L,1.44<:0.341 exp,-inf,0.00 exp,nan,nan +exp,x,__failed__ atan,1,0.785 atan,-1,-0.785 atan,0,0.00 @@ -400,6 +407,7 @@ atan,1L%2L<:3L%4L,0.387+:0.306 atan,-inf,-1.57 atan,nan,nan +atan,x,__failed__ asin,1,1.57 asin,-1,-1.57 asin,0,0.00 @@ -423,6 +431,7 @@ asin,1L%2L<:3L%4L,0.351+:0.355 asin,-inf,nan asin,nan,nan +asin,x,__failed__ acos,1,0.00 acos,-1,3.14 acos,0,1.57 @@ -446,6 +455,7 @@ acos,1L%2L<:3L%4L,1.22+:-0.355 acos,-inf,nan acos,nan,nan +acos,x,__failed__ sinh,1,1.18 sinh,-1,-1.18 sinh,0,0.00 @@ -469,6 +479,7 @@ sinh,1L%2L<:3L%4L,0.502<:0.792 sinh,-inf,-inf sinh,nan,nan +sinh,x,__failed__ cosh,1,1.54 cosh,-1,1.54 cosh,0,1.00 @@ -492,6 +503,7 @@ cosh,1L%2L<:3L%4L,1.01<:0.124 cosh,-inf,inf cosh,nan,nan +cosh,x,__failed__ tanh,1,0.762 tanh,-1,-0.762 tanh,0,0.00 @@ -515,6 +527,7 @@ tanh,1L%2L<:3L%4L,0.495<:0.668 tanh,-inf,-1.00 tanh,nan,nan +tanh,x,__failed__ asinh,1,0.881 asinh,-1,-0.881 asinh,0,0.00 @@ -538,6 +551,7 @@ asinh,1L%2L<:3L%4L,0.377+:0.324 asinh,-inf,-inf asinh,nan,nan +asinh,x,__failed__ acosh,1,0.00 acosh,-1,nan acosh,0,nan @@ -561,6 +575,7 @@ acosh,1L%2L<:3L%4L,0.355+:1.22 acosh,-inf,nan acosh,nan,nan +acosh,x,__failed__ atanh,1,inf atanh,-1,-inf atanh,0,0.00 @@ -584,6 +599,7 @@ atanh,1L%2L<:3L%4L,0.335+:0.369 atanh,-inf,nan atanh,nan,nan +atanh,x,__failed__ abs,1,1 abs,-1,1 abs,0,0 @@ -607,6 +623,7 @@ abs,1L%2L<:3L%4L,1L%2L abs,-inf,inf abs,nan,nan +abs,x,__failed__ re,1,1 re,-1,-1 re,0,0 @@ -630,6 +647,7 @@ re,1L%2L<:3L%4L,0.341 re,-inf,-inf re,nan,nan +re,x,__failed__ im,1,0 im,-1,0 im,0,0 @@ -653,6 +671,7 @@ im,1L%2L<:3L%4L,0.366 im,-inf,0.00 im,nan,0.00 +im,x,__failed__ arg,1,0.00 arg,-1,3.14 arg,0,0.00 @@ -676,6 +695,7 @@ arg,1L%2L<:3L%4L,3L%4L arg,-inf,3.14 arg,nan,nan +arg,x,__failed__ conj,1,1 conj,-1,-1 conj,0,0 @@ -699,6 +719,7 @@ conj,1L%2L<:3L%4L,1L%2L<:(-3L)%4L conj,-inf,-inf conj,nan,nan +conj,x,__failed__ rect,1,1+:0 rect,-1,-1+:0 rect,0,0+:0 @@ -722,6 +743,7 @@ rect,1L%2L<:3L%4L,0.366+:0.341 rect,-inf,-inf+:0.00 rect,nan,nan+:0.00 +rect,x,__failed__ polar,1,1<:0 polar,-1,1<:3.14 polar,0,0<:0 @@ -745,6 +767,7 @@ polar,1L%2L<:3L%4L,1L%2L<:3L%4L polar,-inf,inf<:3.14 polar,nan,nan<:0.00 +polar,x,__failed__ cis,1,0.540+:0.841 cis,-1,0.540+:-0.841 cis,0,1.00+:0.00 @@ -768,6 +791,7 @@ cis,1L%2L<:3L%4L,__failed__ cis,-inf,nan+:nan cis,nan,nan+:nan +cis,x,__failed__ ceil,1,1 ceil,-1,-1 ceil,0,0 @@ -791,6 +815,7 @@ ceil,1L%2L<:3L%4L,__failed__ ceil,-inf,-inf ceil,nan,nan +ceil,x,__failed__ floor,1,1 floor,-1,-1 floor,0,0 @@ -814,6 +839,7 @@ floor,1L%2L<:3L%4L,__failed__ floor,-inf,-inf floor,nan,nan +floor,x,__failed__ round,1,1 round,-1,-1 round,0,0 @@ -837,6 +863,7 @@ round,1L%2L<:3L%4L,__failed__ round,-inf,-inf round,nan,nan +round,x,__failed__ frac,1,0 frac,-1,0 frac,0,0 @@ -860,6 +887,7 @@ frac,1L%2L<:3L%4L,__failed__ frac,-inf,nan frac,nan,nan +frac,x,__failed__ complexp,1,0 complexp,-1,0 complexp,0,0 @@ -883,6 +911,7 @@ complexp,1L%2L<:3L%4L,1 complexp,-inf,0 complexp,nan,0 +complexp,x,0 realp,1,1 realp,-1,1 realp,0,1 @@ -906,6 +935,7 @@ realp,1L%2L<:3L%4L,0 realp,-inf,1 realp,nan,1 +realp,x,0 rationalp,1,0 rationalp,-1,0 rationalp,0,0 @@ -929,6 +959,7 @@ rationalp,1L%2L<:3L%4L,0 rationalp,-inf,0 rationalp,nan,0 +rationalp,x,0 numberp,1,1 numberp,-1,1 numberp,0,1 @@ -952,6 +983,7 @@ numberp,1L%2L<:3L%4L,1 numberp,-inf,1 numberp,nan,1 +numberp,x,0 exactp,1,1 exactp,-1,1 exactp,0,1 @@ -975,6 +1007,7 @@ exactp,1L%2L<:3L%4L,0 exactp,-inf,0 exactp,nan,0 +exactp,x,0 inexactp,1,0 inexactp,-1,0 inexactp,0,0 @@ -998,6 +1031,7 @@ inexactp,1L%2L<:3L%4L,1 inexactp,-inf,1 inexactp,nan,1 +inexactp,x,0 infp,1,0 infp,-1,0 infp,0,0 @@ -1021,6 +1055,7 @@ infp,1L%2L<:3L%4L,0 infp,-inf,1 infp,nan,0 +infp,x,0 nanp,1,0 nanp,-1,0 nanp,0,0 @@ -1044,6 +1079,7 @@ nanp,1L%2L<:3L%4L,0 nanp,-inf,0 nanp,nan,1 +nanp,x,0 *** BINARY *** (+),1,1,2 (+),1,-1,0 @@ -1068,6 +1104,7 @@ (+),1,1L%2L<:3L%4L,1.37+:0.341 (+),1,-inf,-inf (+),1,nan,nan +(+),1,x,__failed__ (+),-1,1,0 (+),-1,-1,-2 (+),-1,0,-1 @@ -1091,6 +1128,7 @@ (+),-1,1L%2L<:3L%4L,-0.634+:0.341 (+),-1,-inf,-inf (+),-1,nan,nan +(+),-1,x,__failed__ (+),0,1,1 (+),0,-1,-1 (+),0,0,0 @@ -1114,6 +1152,7 @@ (+),0,1L%2L<:3L%4L,0.366+:0.341 (+),0,-inf,-inf (+),0,nan,nan +(+),0,x,__failed__ (+),0.00,1,1.00 (+),0.00,-1,-1.00 (+),0.00,0,0.00 @@ -1137,6 +1176,7 @@ (+),0.00,1L%2L<:3L%4L,0.366+:0.341 (+),0.00,-inf,-inf (+),0.00,nan,nan +(+),0.00,x,__failed__ (+),1.20,1,2.20 (+),1.20,-1,0.200 (+),1.20,0,1.20 @@ -1160,6 +1200,7 @@ (+),1.20,1L%2L<:3L%4L,1.57+:0.341 (+),1.20,-inf,-inf (+),1.20,nan,nan +(+),1.20,x,__failed__ (+),-1.20,1,-0.200 (+),-1.20,-1,-2.20 (+),-1.20,0,-1.20 @@ -1183,6 +1224,7 @@ (+),-1.20,1L%2L<:3L%4L,-0.834+:0.341 (+),-1.20,-inf,-inf (+),-1.20,nan,nan +(+),-1.20,x,__failed__ (+),1L%3L,1,4L%3L (+),1L%3L,-1,(-2L)%3L (+),1L%3L,0,1L%3L @@ -1206,6 +1248,7 @@ (+),1L%3L,1L%2L<:3L%4L,0.699+:0.341 (+),1L%3L,-inf,-inf (+),1L%3L,nan,nan +(+),1L%3L,x,__failed__ (+),(-1L)%4L,1,3L%4L (+),(-1L)%4L,-1,(-5L)%4L (+),(-1L)%4L,0,(-1L)%4L @@ -1229,6 +1272,7 @@ (+),(-1L)%4L,1L%2L<:3L%4L,0.116+:0.341 (+),(-1L)%4L,-inf,-inf (+),(-1L)%4L,nan,nan +(+),(-1L)%4L,x,__failed__ (+),1+:2,1,2+:2 (+),1+:2,-1,0+:2 (+),1+:2,0,1+:2 @@ -1252,6 +1296,7 @@ (+),1+:2,1L%2L<:3L%4L,1.37+:2.34 (+),1+:2,-inf,-inf+:2 (+),1+:2,nan,nan+:2 +(+),1+:2,x,__failed__ (+),-1+:2,1,0+:2 (+),-1+:2,-1,-2+:2 (+),-1+:2,0,-1+:2 @@ -1275,6 +1320,7 @@ (+),-1+:2,1L%2L<:3L%4L,-0.634+:2.34 (+),-1+:2,-inf,-inf+:2 (+),-1+:2,nan,nan+:2 +(+),-1+:2,x,__failed__ (+),1+:-2,1,2+:-2 (+),1+:-2,-1,0+:-2 (+),1+:-2,0,1+:-2 @@ -1298,6 +1344,7 @@ (+),1+:-2,1L%2L<:3L%4L,1.37+:-1.66 (+),1+:-2,-inf,-inf+:-2 (+),1+:-2,nan,nan+:-2 +(+),1+:-2,x,__failed__ (+),-1.20+:4.30,1,-0.200+:4.30 (+),-1.20+:4.30,-1,-2.20+:4.30 (+),-1.20+:4.30,0,-1.20+:4.30 @@ -1321,6 +1368,7 @@ (+),-1.20+:4.30,1L%2L<:3L%4L,-0.834+:4.64 (+),-1.20+:4.30,-inf,-inf+:4.30 (+),-1.20+:4.30,nan,nan+:4.30 +(+),-1.20+:4.30,x,__failed__ (+),1.20+:-4.30,1,2.20+:-4.30 (+),1.20+:-4.30,-1,0.200+:-4.30 (+),1.20+:-4.30,0,1.20+:-4.30 @@ -1344,6 +1392,7 @@ (+),1.20+:-4.30,1L%2L<:3L%4L,1.57+:-3.96 (+),1.20+:-4.30,-inf,-inf+:-4.30 (+),1.20+:-4.30,nan,nan+:-4.30 +(+),1.20+:-4.30,x,__failed__ (+),1L%2L+:1,1,3L%2L+:1 (+),1L%2L+:1,-1,(-1L)%2L+:1 (+),1L%2L+:1,0,1L%2L+:1 @@ -1367,6 +1416,7 @@ (+),1L%2L+:1,1L%2L<:3L%4L,0.866+:1.34 (+),1L%2L+:1,-inf,-inf+:1 (+),1L%2L+:1,nan,nan+:1 +(+),1L%2L+:1,x,__failed__ (+),1L%2L+:3L%4L,1,3L%2L+:3L%4L (+),1L%2L+:3L%4L,-1,(-1L)%2L+:3L%4L (+),1L%2L+:3L%4L,0,1L%2L+:3L%4L @@ -1390,6 +1440,7 @@ (+),1L%2L+:3L%4L,1L%2L<:3L%4L,0.866+:1.09 (+),1L%2L+:3L%4L,-inf,-inf+:3L%4L (+),1L%2L+:3L%4L,nan,nan+:3L%4L +(+),1L%2L+:3L%4L,x,__failed__ (+),3<:1,1,2.62+:2.52 (+),3<:1,-1,0.621+:2.52 (+),3<:1,0,1.62+:2.52 @@ -1413,6 +1464,7 @@ (+),3<:1,1L%2L<:3L%4L,3.49<:0.965 (+),3<:1,-inf,-inf+:2.52 (+),3<:1,nan,nan+:2.52 +(+),3<:1,x,__failed__ (+),3<:-2.14,1,-0.621+:-2.52 (+),3<:-2.14,-1,-2.62+:-2.52 (+),3<:-2.14,0,-1.62+:-2.52 @@ -1436,6 +1488,7 @@ (+),3<:-2.14,1L%2L<:3L%4L,2.52<:-2.09 (+),3<:-2.14,-inf,-inf+:-2.52 (+),3<:-2.14,nan,nan+:-2.52 +(+),3<:-2.14,x,__failed__ (+),3.00<:-3,1,-1.97+:-0.423 (+),3.00<:-3,-1,-3.97+:-0.423 (+),3.00<:-3,0,-2.97+:-0.423 @@ -1459,6 +1512,7 @@ (+),3.00<:-3,1L%2L<:3L%4L,2.61<:-3.11 (+),3.00<:-3,-inf,-inf+:-0.423 (+),3.00<:-3,nan,nan+:-0.423 +(+),3.00<:-3,x,__failed__ (+),3.10<:2.50,1,-1.48+:1.86 (+),3.10<:2.50,-1,-3.48+:1.86 (+),3.10<:2.50,0,-2.48+:1.86 @@ -1482,6 +1536,7 @@ (+),3.10<:2.50,1L%2L<:3L%4L,3.05<:2.34 (+),3.10<:2.50,-inf,-inf+:1.86 (+),3.10<:2.50,nan,nan+:1.86 +(+),3.10<:2.50,x,__failed__ (+),2L%3L<:2,1,0.723+:0.606 (+),2L%3L<:2,-1,-1.28+:0.606 (+),2L%3L<:2,0,-0.277+:0.606 @@ -1505,6 +1560,7 @@ (+),2L%3L<:2,1L%2L<:3L%4L,0.951<:1.48 (+),2L%3L<:2,-inf,-inf+:0.606 (+),2L%3L<:2,nan,nan+:0.606 +(+),2L%3L<:2,x,__failed__ (+),1L%2L<:3L%4L,1,1.37+:0.341 (+),1L%2L<:3L%4L,-1,-0.634+:0.341 (+),1L%2L<:3L%4L,0,0.366+:0.341 @@ -1528,6 +1584,7 @@ (+),1L%2L<:3L%4L,1L%2L<:3L%4L,1.00<:0.750 (+),1L%2L<:3L%4L,-inf,-inf+:0.341 (+),1L%2L<:3L%4L,nan,nan+:0.341 +(+),1L%2L<:3L%4L,x,__failed__ (+),-inf,1,-inf (+),-inf,-1,-inf (+),-inf,0,-inf @@ -1551,6 +1608,7 @@ (+),-inf,1L%2L<:3L%4L,-inf+:0.341 (+),-inf,-inf,-inf (+),-inf,nan,nan +(+),-inf,x,__failed__ (+),nan,1,nan (+),nan,-1,nan (+),nan,0,nan @@ -1574,6 +1632,31 @@ (+),nan,1L%2L<:3L%4L,nan+:0.341 (+),nan,-inf,nan (+),nan,nan,nan +(+),nan,x,__failed__ +(+),x,1,__failed__ +(+),x,-1,__failed__ +(+),x,0,__failed__ +(+),x,0.00,__failed__ +(+),x,1.20,__failed__ +(+),x,-1.20,__failed__ +(+),x,1L%3L,__failed__ +(+),x,(-1L)%4L,__failed__ +(+),x,1+:2,__failed__ +(+),x,-1+:2,__failed__ +(+),x,1+:-2,__failed__ +(+),x,-1.20+:4.30,__failed__ +(+),x,1.20+:-4.30,__failed__ +(+),x,1L%2L+:1,__failed__ +(+),x,1L%2L+:3L%4L,__failed__ +(+),x,3<:1,__failed__ +(+),x,3<:-2.14,__failed__ +(+),x,3.00<:-3,__failed__ +(+),x,3.10<:2.50,__failed__ +(+),x,2L%3L<:2,__failed__ +(+),x,1L%2L<:3L%4L,__failed__ +(+),x,-inf,__failed__ +(+),x,nan,__failed__ +(+),x,x,__failed__ (-),1,1,0 (-),1,-1,2 (-),1,0,1 @@ -1597,6 +1680,7 @@ (-),1,1L%2L<:3L%4L,0.634+:-0.341 (-),1,-inf,inf (-),1,nan,nan +(-),1,x,__failed__ (-),-1,1,-2 (-),-1,-1,0 (-),-1,0,-1 @@ -1620,6 +1704,7 @@ (-),-1,1L%2L<:3L%4L,-1.37+:-0.341 (-),-1,-inf,inf (-),-1,nan,nan +(-),-1,x,__failed__ (-),0,1,-1 (-),0,-1,1 (-),0,0,0 @@ -1643,6 +1728,7 @@ (-),0,1L%2L<:3L%4L,-0.366+:-0.341 (-),0,-inf,inf (-),0,nan,nan +(-),0,x,__failed__ (-),0.00,1,-1.00 (-),0.00,-1,1.00 (-),0.00,0,0.00 @@ -1666,6 +1752,7 @@ (-),0.00,1L%2L<:3L%4L,-0.366+:-0.341 (-),0.00,-inf,inf (-),0.00,nan,nan +(-),0.00,x,__failed__ (-),1.20,1,0.200 (-),1.20,-1,2.20 (-),1.20,0,1.20 @@ -1689,6 +1776,7 @@ (-),1.20,1L%2L<:3L%4L,0.834+:-0.341 (-),1.20,-inf,inf (-),1.20,nan,nan +(-),1.20,x,__failed__ (-),-1.20,1,-2.20 (-),-1.20,-1,-0.200 (-),-1.20,0,-1.20 @@ -1712,6 +1800,7 @@ (-),-1.20,1L%2L<:3L%4L,-1.57+:-0.341 (-),-1.20,-inf,inf (-),-1.20,nan,nan +(-),-1.20,x,__failed__ (-),1L%3L,1,(-2L)%3L (-),1L%3L,-1,4L%3L (-),1L%3L,0,1L%3L @@ -1735,6 +1824,7 @@ (-),1L%3L,1L%2L<:3L%4L,-0.0325+:-0.341 (-),1L%3L,-inf,inf (-),1L%3L,nan,nan +(-),1L%3L,x,__failed__ (-),(-1L)%4L,1,(-5L)%4L (-),(-1L)%4L,-1,3L%4L (-),(-1L)%4L,0,(-1L)%4L @@ -1758,6 +1848,7 @@ (-),(-1L)%4L,1L%2L<:3L%4L,-0.616+:-0.341 (-),(-1L)%4L,-inf,inf (-),(-1L)%4L,nan,nan +(-),(-1L)%4L,x,__failed__ (-),1+:2,1,0+:2 (-),1+:2,-1,2+:2 (-),1+:2,0,1+:2 @@ -1781,6 +1872,7 @@ (-),1+:2,1L%2L<:3L%4L,0.634+:1.66 (-),1+:2,-inf,inf+:2 (-),1+:2,nan,nan+:2 +(-),1+:2,x,__failed__ (-),-1+:2,1,-2+:2 (-),-1+:2,-1,0+:2 (-),-1+:2,0,-1+:2 @@ -1804,6 +1896,7 @@ (-),-1+:2,1L%2L<:3L%4L,-1.37+:1.66 (-),-1+:2,-inf,inf+:2 (-),-1+:2,nan,nan+:2 +(-),-1+:2,x,__failed__ (-),1+:-2,1,0+:-2 (-),1+:-2,-1,2+:-2 (-),1+:-2,0,1+:-2 @@ -1827,6 +1920,7 @@ (-),1+:-2,1L%2L<:3L%4L,0.634+:-2.34 (-),1+:-2,-inf,inf+:-2 (-),1+:-2,nan,nan+:-2 +(-),1+:-2,x,__failed__ (-),-1.20+:4.30,1,-2.20+:4.30 (-),-1.20+:4.30,-1,-0.200+:4.30 (-),-1.20+:4.30,0,-1.20+:4.30 @@ -1850,6 +1944,7 @@ (-),-1.20+:4.30,1L%2L<:3L%4L,-1.57+:3.96 (-),-1.20+:4.30,-inf,inf+:4.30 (-),-1.20+:4.30,nan,nan+:4.30 +(-),-1.20+:4.30,x,__failed__ (-),1.20+:-4.30,1,0.200+:-4.30 (-),1.20+:-4.30,-1,2.20+:-4.30 (-),1.20+:-4.30,0,1.20+:-4.30 @@ -1873,6 +1968,7 @@ (-),1.20+:-4.30,1L%2L<:3L%4L,0.834+:-4.64 (-),1.20+:-4.30,-inf,inf+:-4.30 (-),1.20+:-4.30,nan,nan+:-4.30 +(-),1.20+:-4.30,x,__failed__ (-),1L%2L+:1,1,(-1L)%2L+:1 (-),1L%2L+:1,-1,3L%2L+:1 (-),1L%2L+:1,0,1L%2L+:1 @@ -1896,6 +1992,7 @@ (-),1L%2L+:1,1L%2L<:3L%4L,0.134+:0.659 (-),1L%2L+:1,-inf,inf+:1 (-),1L%2L+:1,nan,nan+:1 +(-),1L%2L+:1,x,__failed__ (-),1L%2L+:3L%4L,1,(-1L)%2L+:3L%4L (-),1L%2L+:3L%4L,-1,3L%2L+:3L%4L (-),1L%2L+:3L%4L,0,1L%2L+:3L%4L @@ -1919,6 +2016,7 @@ (-),1L%2L+:3L%4L,1L%2L<:3L%4L,0.134+:0.409 (-),1L%2L+:3L%4L,-inf,inf+:3L%4L (-),1L%2L+:3L%4L,nan,nan+:3L%4L +(-),1L%2L+:3L%4L,x,__failed__ (-),3<:1,1,0.621+:2.52 (-),3<:1,-1,2.62+:2.52 (-),3<:1,0,1.62+:2.52 @@ -1942,6 +2040,7 @@ (-),3<:1,1L%2L<:3L%4L,2.52<:1.05 (-),3<:1,-inf,inf+:2.52 (-),3<:1,nan,nan+:2.52 +(-),3<:1,x,__failed__ (-),3<:-2.14,1,-2.62+:-2.52 (-),3<:-2.14,-1,-0.621+:-2.52 (-),3<:-2.14,0,-1.62+:-2.52 @@ -1965,6 +2064,7 @@ (-),3<:-2.14,1L%2L<:3L%4L,3.49<:-2.18 (-),3<:-2.14,-inf,inf+:-2.52 (-),3<:-2.14,nan,nan+:-2.52 +(-),3<:-2.14,x,__failed__ (-),3.00<:-3,1,-3.97+:-0.423 (-),3.00<:-3,-1,-1.97+:-0.423 (-),3.00<:-3,0,-2.97+:-0.423 @@ -1988,6 +2088,7 @@ (-),3.00<:-3,1L%2L<:3L%4L,3.42<:-2.92 (-),3.00<:-3,-inf,inf+:-0.423 (-),3.00<:-3,nan,nan+:-0.423 +(-),3.00<:-3,x,__failed__ (-),3.10<:2.50,1,-3.48+:1.86 (-),3.10<:2.50,-1,-1.48+:1.86 (-),3.10<:2.50,0,-2.48+:1.86 @@ -2011,6 +2112,7 @@ (-),3.10<:2.50,1L%2L<:3L%4L,3.23<:2.65 (-),3.10<:2.50,-inf,inf+:1.86 (-),3.10<:2.50,nan,nan+:1.86 +(-),3.10<:2.50,x,__failed__ (-),2L%3L<:2,1,-1.28+:0.606 (-),2L%3L<:2,-1,0.723+:0.606 (-),2L%3L<:2,0,-0.277+:0.606 @@ -2034,6 +2136,7 @@ (-),2L%3L<:2,1L%2L<:3L%4L,0.696<:2.75 (-),2L%3L<:2,-inf,inf+:0.606 (-),2L%3L<:2,nan,nan+:0.606 +(-),2L%3L<:2,x,__failed__ (-),1L%2L<:3L%4L,1,-0.634+:0.341 (-),1L%2L<:3L%4L,-1,1.37+:0.341 (-),1L%2L<:3L%4L,0,0.366+:0.341 @@ -2057,6 +2160,7 @@ (-),1L%2L<:3L%4L,1L%2L<:3L%4L,0.00<:0.00 (-),1L%2L<:3L%4L,-inf,inf+:0.341 (-),1L%2L<:3L%4L,nan,nan+:0.341 +(-),1L%2L<:3L%4L,x,__failed__ (-),-inf,1,-inf (-),-inf,-1,-inf (-),-inf,0,-inf @@ -2080,6 +2184,7 @@ (-),-inf,1L%2L<:3L%4L,-inf+:-0.341 (-),-inf,-inf,nan (-),-inf,nan,nan +(-),-inf,x,__failed__ (-),nan,1,nan (-),nan,-1,nan (-),nan,0,nan @@ -2103,6 +2208,31 @@ (-),nan,1L%2L<:3L%4L,nan+:-0.341 (-),nan,-inf,nan (-),nan,nan,nan +(-),nan,x,__failed__ +(-),x,1,__failed__ +(-),x,-1,__failed__ +(-),x,0,__failed__ +(-),x,0.00,__failed__ +(-),x,1.20,__failed__ +(-),x,-1.20,__failed__ +(-),x,1L%3L,__failed__ +(-),x,(-1L)%4L,__failed__ +(-),x,1+:2,__failed__ +(-),x,-1+:2,__failed__ +(-),x,1+:-2,__failed__ +(-),x,-1.20+:4.30,__failed__ +(-),x,1.20+:-4.30,__failed__ +(-),x,1L%2L+:1,__failed__ +(-),x,1L%2L+:3L%4L,__failed__ +(-),x,3<:1,__failed__ +(-),x,3<:-2.14,__failed__ +(-),x,3.00<:-3,__failed__ +(-),x,3.10<:2.50,__failed__ +(-),x,2L%3L<:2,__failed__ +(-),x,1L%2L<:3L%4L,__failed__ +(-),x,-inf,__failed__ +(-),x,nan,__failed__ +(-),x,x,__failed__ (*),1,1,1 (*),1,-1,-1 (*),1,0,0 @@ -2126,6 +2256,7 @@ (*),1,1L%2L<:3L%4L,1L%2L<:3L%4L (*),1,-inf,-inf (*),1,nan,nan +(*),1,x,__failed__ (*),-1,1,-1 (*),-1,-1,1 (*),-1,0,0 @@ -2149,6 +2280,7 @@ (*),-1,1L%2L<:3L%4L,1L%2L<:-2.39 (*),-1,-inf,inf (*),-1,nan,nan +(*),-1,x,__failed__ (*),0,1,0 (*),0,-1,0 (*),0,0,0 @@ -2172,6 +2304,7 @@ (*),0,1L%2L<:3L%4L,0L%1L<:3L%4L (*),0,-inf,nan (*),0,nan,nan +(*),0,x,__failed__ (*),0.00,1,0.00 (*),0.00,-1,-0.00 (*),0.00,0,0.00 @@ -2195,6 +2328,7 @@ (*),0.00,1L%2L<:3L%4L,0.00<:3L%4L (*),0.00,-inf,nan (*),0.00,nan,nan +(*),0.00,x,__failed__ (*),1.20,1,1.20 (*),1.20,-1,-1.20 (*),1.20,0,0.00 @@ -2218,6 +2352,7 @@ (*),1.20,1L%2L<:3L%4L,0.600<:3L%4L (*),1.20,-inf,-inf (*),1.20,nan,nan +(*),1.20,x,__failed__ (*),-1.20,1,-1.20 (*),-1.20,-1,1.20 (*),-1.20,0,-0.00 @@ -2241,6 +2376,7 @@ (*),-1.20,1L%2L<:3L%4L,0.600<:-2.39 (*),-1.20,-inf,inf (*),-1.20,nan,nan +(*),-1.20,x,__failed__ (*),1L%3L,1,1L%3L (*),1L%3L,-1,(-1L)%3L (*),1L%3L,0,0L%1L @@ -2264,6 +2400,7 @@ (*),1L%3L,1L%2L<:3L%4L,1L%6L<:3L%4L (*),1L%3L,-inf,-inf (*),1L%3L,nan,nan +(*),1L%3L,x,__failed__ (*),(-1L)%4L,1,(-1L)%4L (*),(-1L)%4L,-1,1L%4L (*),(-1L)%4L,0,0L%1L @@ -2287,6 +2424,7 @@ (*),(-1L)%4L,1L%2L<:3L%4L,1L%8L<:-2.39 (*),(-1L)%4L,-inf,inf (*),(-1L)%4L,nan,nan +(*),(-1L)%4L,x,__failed__ (*),1+:2,1,1+:2 (*),1+:2,-1,-1+:-2 (*),1+:2,0,0+:0 @@ -2310,6 +2448,7 @@ (*),1+:2,1L%2L<:3L%4L,-0.316+:1.07 (*),1+:2,-inf,-inf+:-inf (*),1+:2,nan,nan+:nan +(*),1+:2,x,__failed__ (*),-1+:2,1,-1+:2 (*),-1+:2,-1,1+:-2 (*),-1+:2,0,0+:0 @@ -2333,6 +2472,7 @@ (*),-1+:2,1L%2L<:3L%4L,-1.05+:0.391 (*),-1+:2,-inf,inf+:-inf (*),-1+:2,nan,nan+:nan +(*),-1+:2,x,__failed__ (*),1+:-2,1,1+:-2 (*),1+:-2,-1,-1+:2 (*),1+:-2,0,0+:0 @@ -2356,6 +2496,7 @@ (*),1+:-2,1L%2L<:3L%4L,1.05+:-0.391 (*),1+:-2,-inf,-inf+:inf (*),1+:-2,nan,nan+:nan +(*),1+:-2,x,__failed__ (*),-1.20+:4.30,1,-1.20+:4.30 (*),-1.20+:4.30,-1,1.20+:-4.30 (*),-1.20+:4.30,0,-0.00+:0.00 @@ -2379,6 +2520,7 @@ (*),-1.20+:4.30,1L%2L<:3L%4L,-1.90+:1.16 (*),-1.20+:4.30,-inf,inf+:-inf (*),-1.20+:4.30,nan,nan+:nan +(*),-1.20+:4.30,x,__failed__ (*),1.20+:-4.30,1,1.20+:-4.30 (*),1.20+:-4.30,-1,-1.20+:4.30 (*),1.20+:-4.30,0,0.00+:-0.00 @@ -2402,6 +2544,7 @@ (*),1.20+:-4.30,1L%2L<:3L%4L,1.90+:-1.16 (*),1.20+:-4.30,-inf,-inf+:inf (*),1.20+:-4.30,nan,nan+:nan +(*),1.20+:-4.30,x,__failed__ (*),1L%2L+:1,1,1L%2L+:1 (*),1L%2L+:1,-1,(-1L)%2L+:-1 (*),1L%2L+:1,0,0L%1L+:0 @@ -2425,6 +2568,7 @@ (*),1L%2L+:1,1L%2L<:3L%4L,-0.158+:0.536 (*),1L%2L+:1,-inf,-inf+:-inf (*),1L%2L+:1,nan,nan+:nan +(*),1L%2L+:1,x,__failed__ (*),1L%2L+:3L%4L,1,1L%2L+:3L%4L (*),1L%2L+:3L%4L,-1,(-1L)%2L+:(-3L)%4L (*),1L%2L+:3L%4L,0,0L%1L+:0L%1L @@ -2448,6 +2592,7 @@ (*),1L%2L+:3L%4L,1L%2L<:3L%4L,-0.0727+:0.445 (*),1L%2L+:3L%4L,-inf,-inf+:-inf (*),1L%2L+:3L%4L,nan,nan+:nan +(*),1L%2L+:3L%4L,x,__failed__ (*),3<:1,1,3<:1 (*),3<:1,-1,3<:-2.14 (*),3<:1,0,0<:1 @@ -2471,6 +2616,7 @@ (*),3<:1,1L%2L<:3L%4L,3L%2L<:7L%4L (*),3<:1,-inf,inf<:-2.14 (*),3<:1,nan,nan<:1 +(*),3<:1,x,__failed__ (*),3<:-2.14,1,3<:-2.14 (*),3<:-2.14,-1,3<:1.00 (*),3<:-2.14,0,0<:-2.14 @@ -2494,6 +2640,7 @@ (*),3<:-2.14,1L%2L<:3L%4L,3L%2L<:-1.39 (*),3<:-2.14,-inf,inf<:1.00 (*),3<:-2.14,nan,nan<:-2.14 +(*),3<:-2.14,x,__failed__ (*),3.00<:-3,1,3.00<:-3 (*),3.00<:-3,-1,3.00<:0.142 (*),3.00<:-3,0,0.00<:-3 @@ -2517,6 +2664,7 @@ (*),3.00<:-3,1L%2L<:3L%4L,1.50<:(-9L)%4L (*),3.00<:-3,-inf,inf<:0.142 (*),3.00<:-3,nan,nan<:-3 +(*),3.00<:-3,x,__failed__ (*),3.10<:2.50,1,3.10<:2.50 (*),3.10<:2.50,-1,3.10<:-0.642 (*),3.10<:2.50,0,0.00<:2.50 @@ -2540,6 +2688,7 @@ (*),3.10<:2.50,1L%2L<:3L%4L,1.55<:-3.03 (*),3.10<:2.50,-inf,inf<:-0.642 (*),3.10<:2.50,nan,nan<:2.50 +(*),3.10<:2.50,x,__failed__ (*),2L%3L<:2,1,2L%3L<:2 (*),2L%3L<:2,-1,2L%3L<:-1.14 (*),2L%3L<:2,0,0L%1L<:2 @@ -2563,6 +2712,7 @@ (*),2L%3L<:2,1L%2L<:3L%4L,1L%3L<:11L%4L (*),2L%3L<:2,-inf,inf<:-1.14 (*),2L%3L<:2,nan,nan<:2 +(*),2L%3L<:2,x,__failed__ (*),1L%2L<:3L%4L,1,1L%2L<:3L%4L (*),1L%2L<:3L%4L,-1,1L%2L<:-2.39 (*),1L%2L<:3L%4L,0,0L%1L<:3L%4L @@ -2586,6 +2736,7 @@ (*),1L%2L<:3L%4L,1L%2L<:3L%4L,1L%4L<:3L%2L (*),1L%2L<:3L%4L,-inf,inf<:-2.39 (*),1L%2L<:3L%4L,nan,nan<:3L%4L +(*),1L%2L<:3L%4L,x,__failed__ (*),-inf,1,-inf (*),-inf,-1,inf (*),-inf,0,nan @@ -2609,6 +2760,7 @@ (*),-inf,1L%2L<:3L%4L,inf<:-2.39 (*),-inf,-inf,inf (*),-inf,nan,nan +(*),-inf,x,__failed__ (*),nan,1,nan (*),nan,-1,nan (*),nan,0,nan @@ -2632,6 +2784,31 @@ (*),nan,1L%2L<:3L%4L,nan<:3L%4L (*),nan,-inf,nan (*),nan,nan,nan +(*),nan,x,__failed__ +(*),x,1,__failed__ +(*),x,-1,__failed__ +(*),x,0,__failed__ +(*),x,0.00,__failed__ +(*),x,1.20,__failed__ +(*),x,-1.20,__failed__ +(*),x,1L%3L,__failed__ +(*),x,(-1L)%4L,__failed__ +(*),x,1+:2,__failed__ +(*),x,-1+:2,__failed__ +(*),x,1+:-2,__failed__ +(*),x,-1.20+:4.30,__failed__ +(*),x,1.20+:-4.30,__failed__ +(*),x,1L%2L+:1,__failed__ +(*),x,1L%2L+:3L%4L,__failed__ +(*),x,3<:1,__failed__ +(*),x,3<:-2.14,__failed__ +(*),x,3.00<:-3,__failed__ +(*),x,3.10<:2.50,__failed__ +(*),x,2L%3L<:2,__failed__ +(*),x,1L%2L<:3L%4L,__failed__ +(*),x,-inf,__failed__ +(*),x,nan,__failed__ +(*),x,x,__failed__ (/),1,1,1.00 (/),1,-1,-1.00 (/),1,0,inf @@ -2655,6 +2832,7 @@ (/),1,1L%2L<:3L%4L,2.00<:(-3L)%4L (/),1,-inf,-0.00 (/),1,nan,nan +(/),1,x,__failed__ (/),-1,1,-1.00 (/),-1,-1,1.00 (/),-1,0,-inf @@ -2678,6 +2856,7 @@ (/),-1,1L%2L<:3L%4L,2.00<:2.39 (/),-1,-inf,0.00 (/),-1,nan,nan +(/),-1,x,__failed__ (/),0,1,0.00 (/),0,-1,-0.00 (/),0,0,nan @@ -2701,6 +2880,7 @@ (/),0,1L%2L<:3L%4L,0.00<:(-3L)%4L (/),0,-inf,-0.00 (/),0,nan,nan +(/),0,x,__failed__ (/),0.00,1,0.00 (/),0.00,-1,-0.00 (/),0.00,0,nan @@ -2724,6 +2904,7 @@ (/),0.00,1L%2L<:3L%4L,0.00<:(-3L)%4L (/),0.00,-inf,-0.00 (/),0.00,nan,nan +(/),0.00,x,__failed__ (/),1.20,1,1.20 (/),1.20,-1,-1.20 (/),1.20,0,inf @@ -2747,6 +2928,7 @@ (/),1.20,1L%2L<:3L%4L,2.40<:(-3L)%4L (/),1.20,-inf,-0.00 (/),1.20,nan,nan +(/),1.20,x,__failed__ (/),-1.20,1,-1.20 (/),-1.20,-1,1.20 (/),-1.20,0,-inf @@ -2770,6 +2952,7 @@ (/),-1.20,1L%2L<:3L%4L,2.40<:2.39 (/),-1.20,-inf,0.00 (/),-1.20,nan,nan +(/),-1.20,x,__failed__ (/),1L%3L,1,0.333 (/),1L%3L,-1,-0.333 (/),1L%3L,0,inf @@ -2793,6 +2976,7 @@ (/),1L%3L,1L%2L<:3L%4L,0.667<:(-3L)%4L (/),1L%3L,-inf,-0.00 (/),1L%3L,nan,nan +(/),1L%3L,x,__failed__ (/),(-1L)%4L,1,-0.250 (/),(-1L)%4L,-1,0.250 (/),(-1L)%4L,0,-inf @@ -2816,6 +3000,7 @@ (/),(-1L)%4L,1L%2L<:3L%4L,0.500<:2.39 (/),(-1L)%4L,-inf,0.00 (/),(-1L)%4L,nan,nan +(/),(-1L)%4L,x,__failed__ (/),1+:2,1,1.00+:2.00 (/),1+:2,-1,-1.00+:-2.00 (/),1+:2,0,inf+:inf @@ -2839,6 +3024,7 @@ (/),1+:2,1L%2L<:3L%4L,4.19+:1.56 (/),1+:2,-inf,-0.00+:-0.00 (/),1+:2,nan,nan+:nan +(/),1+:2,x,__failed__ (/),-1+:2,1,-1.00+:2.00 (/),-1+:2,-1,1.00+:-2.00 (/),-1+:2,0,-inf+:inf @@ -2862,6 +3048,7 @@ (/),-1+:2,1L%2L<:3L%4L,1.26+:4.29 (/),-1+:2,-inf,0.00+:-0.00 (/),-1+:2,nan,nan+:nan +(/),-1+:2,x,__failed__ (/),1+:-2,1,1.00+:-2.00 (/),1+:-2,-1,-1.00+:2.00 (/),1+:-2,0,inf+:-inf @@ -2885,6 +3072,7 @@ (/),1+:-2,1L%2L<:3L%4L,-1.26+:-4.29 (/),1+:-2,-inf,-0.00+:0.00 (/),1+:-2,nan,nan+:nan +(/),1+:-2,x,__failed__ (/),-1.20+:4.30,1,-1.20+:4.30 (/),-1.20+:4.30,-1,1.20+:-4.30 (/),-1.20+:4.30,0,-inf+:inf @@ -2908,6 +3096,7 @@ (/),-1.20+:4.30,1L%2L<:3L%4L,4.11+:7.93 (/),-1.20+:4.30,-inf,0.00+:-0.00 (/),-1.20+:4.30,nan,nan+:nan +(/),-1.20+:4.30,x,__failed__ (/),1.20+:-4.30,1,1.20+:-4.30 (/),1.20+:-4.30,-1,-1.20+:4.30 (/),1.20+:-4.30,0,inf+:-inf @@ -2931,6 +3120,7 @@ (/),1.20+:-4.30,1L%2L<:3L%4L,-4.11+:-7.93 (/),1.20+:-4.30,-inf,-0.00+:0.00 (/),1.20+:-4.30,nan,nan+:nan +(/),1.20+:-4.30,x,__failed__ (/),1L%2L+:1,1,0.500+:1.00 (/),1L%2L+:1,-1,-0.500+:-1.00 (/),1L%2L+:1,0,inf+:inf @@ -2954,6 +3144,7 @@ (/),1L%2L+:1,1L%2L<:3L%4L,2.09+:0.782 (/),1L%2L+:1,-inf,-0.00+:-0.00 (/),1L%2L+:1,nan,nan+:nan +(/),1L%2L+:1,x,__failed__ (/),1L%2L+:3L%4L,1,0.500+:0.750 (/),1L%2L+:3L%4L,-1,-0.500+:-0.750 (/),1L%2L+:3L%4L,0,inf+:inf @@ -2977,6 +3168,7 @@ (/),1L%2L+:3L%4L,1L%2L<:3L%4L,1.75+:0.416 (/),1L%2L+:3L%4L,-inf,-0.00+:-0.00 (/),1L%2L+:3L%4L,nan,nan+:nan +(/),1L%2L+:3L%4L,x,__failed__ (/),3<:1,1,3.00<:1 (/),3<:1,-1,3.00<:-2.14 (/),3<:1,0,inf<:1 @@ -3000,6 +3192,7 @@ (/),3<:1,1L%2L<:3L%4L,6.00<:1L%4L (/),3<:1,-inf,-0.00<:1 (/),3<:1,nan,nan<:1 +(/),3<:1,x,__failed__ (/),3<:-2.14,1,3.00<:-2.14 (/),3<:-2.14,-1,3.00<:1.00 (/),3<:-2.14,0,inf<:-2.14 @@ -3023,6 +3216,7 @@ (/),3<:-2.14,1L%2L<:3L%4L,6.00<:-2.89 (/),3<:-2.14,-inf,-0.00<:-2.14 (/),3<:-2.14,nan,nan<:-2.14 +(/),3<:-2.14,x,__failed__ (/),3.00<:-3,1,3.00<:-3 (/),3.00<:-3,-1,3.00<:0.142 (/),3.00<:-3,0,inf<:-3 @@ -3046,6 +3240,7 @@ (/),3.00<:-3,1L%2L<:3L%4L,6.00<:2.53 (/),3.00<:-3,-inf,-0.00<:-3 (/),3.00<:-3,nan,nan<:-3 +(/),3.00<:-3,x,__failed__ (/),3.10<:2.50,1,3.10<:2.50 (/),3.10<:2.50,-1,3.10<:-0.642 (/),3.10<:2.50,0,inf<:2.50 @@ -3069,6 +3264,7 @@ (/),3.10<:2.50,1L%2L<:3L%4L,6.20<:1.75 (/),3.10<:2.50,-inf,-0.00<:2.50 (/),3.10<:2.50,nan,nan<:2.50 +(/),3.10<:2.50,x,__failed__ (/),2L%3L<:2,1,0.667<:2 (/),2L%3L<:2,-1,0.667<:-1.14 (/),2L%3L<:2,0,inf<:2 @@ -3092,6 +3288,7 @@ (/),2L%3L<:2,1L%2L<:3L%4L,1.33<:5L%4L (/),2L%3L<:2,-inf,-0.00<:2 (/),2L%3L<:2,nan,nan<:2 +(/),2L%3L<:2,x,__failed__ (/),1L%2L<:3L%4L,1,0.500<:3L%4L (/),1L%2L<:3L%4L,-1,0.500<:-2.39 (/),1L%2L<:3L%4L,0,inf<:3L%4L @@ -3115,6 +3312,7 @@ (/),1L%2L<:3L%4L,1L%2L<:3L%4L,1.00<:0L%1L (/),1L%2L<:3L%4L,-inf,-0.00<:3L%4L (/),1L%2L<:3L%4L,nan,nan<:3L%4L +(/),1L%2L<:3L%4L,x,__failed__ (/),-inf,1,-inf (/),-inf,-1,inf (/),-inf,0,-inf @@ -3138,6 +3336,7 @@ (/),-inf,1L%2L<:3L%4L,inf<:2.39 (/),-inf,-inf,nan (/),-inf,nan,nan +(/),-inf,x,__failed__ (/),nan,1,nan (/),nan,-1,nan (/),nan,0,nan @@ -3161,6 +3360,31 @@ (/),nan,1L%2L<:3L%4L,nan<:(-3L)%4L (/),nan,-inf,nan (/),nan,nan,nan +(/),nan,x,__failed__ +(/),x,1,__failed__ +(/),x,-1,__failed__ +(/),x,0,__failed__ +(/),x,0.00,__failed__ +(/),x,1.20,__failed__ +(/),x,-1.20,__failed__ +(/),x,1L%3L,__failed__ +(/),x,(-1L)%4L,__failed__ +(/),x,1+:2,__failed__ +(/),x,-1+:2,__failed__ +(/),x,1+:-2,__failed__ +(/),x,-1.20+:4.30,__failed__ +(/),x,1.20+:-4.30,__failed__ +(/),x,1L%2L+:1,__failed__ +(/),x,1L%2L+:3L%4L,__failed__ +(/),x,3<:1,__failed__ +(/),x,3<:-2.14,__failed__ +(/),x,3.00<:-3,__failed__ +(/),x,3.10<:2.50,__failed__ +(/),x,2L%3L<:2,__failed__ +(/),x,1L%2L<:3L%4L,__failed__ +(/),x,-inf,__failed__ +(/),x,nan,__failed__ +(/),x,x,__failed__ (^),1,1,1.00 (^),1,-1,1.00 (^),1,0,1.00 @@ -3184,6 +3408,7 @@ (^),1,1L%2L<:3L%4L,1.00<:0.00 (^),1,-inf,1.00 (^),1,nan,1.00 +(^),1,x,__failed__ (^),-1,1,-1.00 (^),-1,-1,-1.00 (^),-1,0,1.00 @@ -3207,6 +3432,7 @@ (^),-1,1L%2L<:3L%4L,0.343<:1.15 (^),-1,-inf,1.00 (^),-1,nan,nan +(^),-1,x,__failed__ (^),0,1,0.00 (^),0,-1,inf (^),0,0,1.00 @@ -3230,6 +3456,7 @@ (^),0,1L%2L<:3L%4L,0.00<:nan (^),0,-inf,inf (^),0,nan,nan +(^),0,x,__failed__ (^),0.00,1,0.00 (^),0.00,-1,inf (^),0.00,0,1.00 @@ -3253,6 +3480,7 @@ (^),0.00,1L%2L<:3L%4L,0.00<:nan (^),0.00,-inf,inf (^),0.00,nan,nan +(^),0.00,x,__failed__ (^),1.20,1,1.20 (^),1.20,-1,0.833 (^),1.20,0,1.00 @@ -3276,6 +3504,7 @@ (^),1.20,1L%2L<:3L%4L,1.07<:0.0621 (^),1.20,-inf,0.00 (^),1.20,nan,nan +(^),1.20,x,__failed__ (^),-1.20,1,-1.20 (^),-1.20,-1,-0.833 (^),-1.20,0,1.00 @@ -3299,6 +3528,7 @@ (^),-1.20,1L%2L<:3L%4L,0.366<:1.21 (^),-1.20,-inf,0.00 (^),-1.20,nan,nan +(^),-1.20,x,__failed__ (^),1L%3L,1,0.333 (^),1L%3L,-1,3.00 (^),1L%3L,0,1.00 @@ -3322,6 +3552,7 @@ (^),1L%3L,1L%2L<:3L%4L,0.669<:-0.374 (^),1L%3L,-inf,inf (^),1L%3L,nan,nan +(^),1L%3L,x,__failed__ (^),(-1L)%4L,1,-0.250 (^),(-1L)%4L,-1,-4.00 (^),(-1L)%4L,0,1.00 @@ -3345,6 +3576,7 @@ (^),(-1L)%4L,1L%2L<:3L%4L,0.206<:0.677 (^),(-1L)%4L,-inf,inf (^),(-1L)%4L,nan,nan +(^),(-1L)%4L,x,__failed__ (^),1+:2,1,1.00+:2.00 (^),1+:2,-1,0.200+:-0.400 (^),1+:2,0,1.00+:0.00 @@ -3368,6 +3600,7 @@ (^),1+:2,1L%2L<:3L%4L,0.716+:0.578 (^),1+:2,-inf,nan+:nan (^),1+:2,nan,nan+:nan +(^),1+:2,x,__failed__ (^),-1+:2,1,-1.00+:2.00 (^),-1+:2,-1,-0.200+:-0.400 (^),-1+:2,0,1.00+:0.00 @@ -3391,6 +3624,7 @@ (^),-1+:2,1L%2L<:3L%4L,0.352+:0.571 (^),-1+:2,-inf,nan+:nan (^),-1+:2,nan,nan+:nan +(^),-1+:2,x,__failed__ (^),1+:-2,1,1.00+:-2.00 (^),1+:-2,-1,0.200+:0.400 (^),1+:-2,0,1.00+:-0.00 @@ -3414,6 +3648,7 @@ (^),1+:-2,1L%2L<:3L%4L,1.94+:-0.255 (^),1+:-2,-inf,nan+:nan (^),1+:-2,nan,nan+:nan +(^),1+:-2,x,__failed__ (^),-1.20+:4.30,1,-1.20+:4.30 (^),-1.20+:4.30,-1,-0.0602+:-0.216 (^),-1.20+:4.30,0,1.00+:0.00 @@ -3437,6 +3672,7 @@ (^),-1.20+:4.30,1L%2L<:3L%4L,0.348+:0.854 (^),-1.20+:4.30,-inf,nan+:nan (^),-1.20+:4.30,nan,nan+:nan +(^),-1.20+:4.30,x,__failed__ (^),1.20+:-4.30,1,1.20+:-4.30 (^),1.20+:-4.30,-1,0.0602+:0.216 (^),1.20+:-4.30,0,1.00+:-0.00 @@ -3460,6 +3696,7 @@ (^),1.20+:-4.30,1L%2L<:3L%4L,2.69+:0.0936 (^),1.20+:-4.30,-inf,nan+:nan (^),1.20+:-4.30,nan,nan+:nan +(^),1.20+:-4.30,x,__failed__ (^),1L%2L+:1,1,0.500+:1.00 (^),1L%2L+:1,-1,0.400+:-0.800 (^),1L%2L+:1,0,1.00+:0.00 @@ -3483,6 +3720,7 @@ (^),1L%2L+:1,1L%2L<:3L%4L,0.645+:0.306 (^),1L%2L+:1,-inf,nan+:nan (^),1L%2L+:1,nan,nan+:nan +(^),1L%2L+:1,x,__failed__ (^),1L%2L+:3L%4L,1,0.500+:0.750 (^),1L%2L+:3L%4L,-1,0.615+:-0.923 (^),1L%2L+:3L%4L,0,1.00+:0.00 @@ -3506,6 +3744,7 @@ (^),1L%2L+:3L%4L,1L%2L<:3L%4L,0.653+:0.219 (^),1L%2L+:3L%4L,-inf,nan+:nan (^),1L%2L+:3L%4L,nan,nan+:nan +(^),1L%2L+:3L%4L,x,__failed__ (^),3<:1,1,3.00<:1.00 (^),3<:1,-1,0.333<:-1.00 (^),3<:1,0,1.00<:0.00 @@ -3529,6 +3768,7 @@ (^),3<:1,1L%2L<:3L%4L,1.06<:0.740 (^),3<:1,-inf,0.00<:nan (^),3<:1,nan,nan<:nan +(^),3<:1,x,__failed__ (^),3<:-2.14,1,3.00<:-2.14 (^),3<:-2.14,-1,0.333<:2.14 (^),3<:-2.14,0,1.00<:-0.00 @@ -3552,6 +3792,7 @@ (^),3<:-2.14,1L%2L<:3L%4L,3.10<:-0.409 (^),3<:-2.14,-inf,0.00<:nan (^),3<:-2.14,nan,nan<:nan +(^),3<:-2.14,x,__failed__ (^),3.00<:-3,1,3.00<:-3.00 (^),3.00<:-3,-1,0.333<:3.00 (^),3.00<:-3,0,1.00<:-0.00 @@ -3575,6 +3816,7 @@ (^),3.00<:-3,1L%2L<:3L%4L,4.16<:-0.723 (^),3.00<:-3,-inf,0.00<:nan (^),3.00<:-3,nan,nan<:nan +(^),3.00<:-3,x,__failed__ (^),3.10<:2.50,1,3.10<:2.50 (^),3.10<:2.50,-1,0.323<:-2.50 (^),3.10<:2.50,0,1.00<:0.00 @@ -3598,6 +3840,7 @@ (^),3.10<:2.50,1L%2L<:3L%4L,0.645<:1.30 (^),3.10<:2.50,-inf,0.00<:nan (^),3.10<:2.50,nan,nan<:nan +(^),3.10<:2.50,x,__failed__ (^),2L%3L<:2,1,0.667<:2.00 (^),2L%3L<:2,-1,1.50<:-2.00 (^),2L%3L<:2,0,1.00<:0.00 @@ -3621,6 +3864,7 @@ (^),2L%3L<:2,1L%2L<:3L%4L,0.436<:0.593 (^),2L%3L<:2,-inf,inf<:nan (^),2L%3L<:2,nan,nan<:nan +(^),2L%3L<:2,x,__failed__ (^),1L%2L<:3L%4L,1,0.500<:0.750 (^),1L%2L<:3L%4L,-1,2.00<:-0.750 (^),1L%2L<:3L%4L,0,1.00<:0.00 @@ -3644,6 +3888,7 @@ (^),1L%2L<:3L%4L,1L%2L<:3L%4L,0.601<:0.0381 (^),1L%2L<:3L%4L,-inf,inf<:nan (^),1L%2L<:3L%4L,nan,nan<:nan +(^),1L%2L<:3L%4L,x,__failed__ (^),-inf,1,-inf (^),-inf,-1,-0.00 (^),-inf,0,1.00 @@ -3667,6 +3912,7 @@ (^),-inf,1L%2L<:3L%4L,inf<:nan (^),-inf,-inf,0.00 (^),-inf,nan,nan +(^),-inf,x,__failed__ (^),nan,1,nan (^),nan,-1,nan (^),nan,0,1.00 @@ -3690,6 +3936,31 @@ (^),nan,1L%2L<:3L%4L,nan<:nan (^),nan,-inf,nan (^),nan,nan,nan +(^),nan,x,__failed__ +(^),x,1,__failed__ +(^),x,-1,__failed__ +(^),x,0,__failed__ +(^),x,0.00,__failed__ +(^),x,1.20,__failed__ +(^),x,-1.20,__failed__ +(^),x,1L%3L,__failed__ +(^),x,(-1L)%4L,__failed__ +(^),x,1+:2,__failed__ +(^),x,-1+:2,__failed__ +(^),x,1+:-2,__failed__ +(^),x,-1.20+:4.30,__failed__ +(^),x,1.20+:-4.30,__failed__ +(^),x,1L%2L+:1,__failed__ +(^),x,1L%2L+:3L%4L,__failed__ +(^),x,3<:1,__failed__ +(^),x,3<:-2.14,__failed__ +(^),x,3.00<:-3,__failed__ +(^),x,3.10<:2.50,__failed__ +(^),x,2L%3L<:2,__failed__ +(^),x,1L%2L<:3L%4L,__failed__ +(^),x,-inf,__failed__ +(^),x,nan,__failed__ +(^),x,x,__failed__ atan2,1,1,0.785 atan2,1,-1,2.36 atan2,1,0,1.57 @@ -3713,6 +3984,7 @@ atan2,1,1L%2L<:3L%4L,__failed__ atan2,1,-inf,3.14 atan2,1,nan,nan +atan2,1,x,__failed__ atan2,-1,1,-0.785 atan2,-1,-1,-2.36 atan2,-1,0,-1.57 @@ -3736,6 +4008,7 @@ atan2,-1,1L%2L<:3L%4L,__failed__ atan2,-1,-inf,-3.14 atan2,-1,nan,nan +atan2,-1,x,__failed__ atan2,0,1,0.00 atan2,0,-1,3.14 atan2,0,0,0.00 @@ -3759,6 +4032,7 @@ atan2,0,1L%2L<:3L%4L,__failed__ atan2,0,-inf,3.14 atan2,0,nan,nan +atan2,0,x,__failed__ atan2,0.00,1,0.00 atan2,0.00,-1,3.14 atan2,0.00,0,0.00 @@ -3782,6 +4056,7 @@ atan2,0.00,1L%2L<:3L%4L,__failed__ atan2,0.00,-inf,3.14 atan2,0.00,nan,nan +atan2,0.00,x,__failed__ atan2,1.20,1,0.876 atan2,1.20,-1,2.27 atan2,1.20,0,1.57 @@ -3805,6 +4080,7 @@ atan2,1.20,1L%2L<:3L%4L,__failed__ atan2,1.20,-inf,3.14 atan2,1.20,nan,nan +atan2,1.20,x,__failed__ atan2,-1.20,1,-0.876 atan2,-1.20,-1,-2.27 atan2,-1.20,0,-1.57 @@ -3828,6 +4104,7 @@ atan2,-1.20,1L%2L<:3L%4L,__failed__ atan2,-1.20,-inf,-3.14 atan2,-1.20,nan,nan +atan2,-1.20,x,__failed__ atan2,1L%3L,1,0.322 atan2,1L%3L,-1,2.82 atan2,1L%3L,0,1.57 @@ -3851,6 +4128,7 @@ atan2,1L%3L,1L%2L<:3L%4L,__failed__ atan2,1L%3L,-inf,3.14 atan2,1L%3L,nan,nan +atan2,1L%3L,x,__failed__ atan2,(-1L)%4L,1,-0.245 atan2,(-1L)%4L,-1,-2.90 atan2,(-1L)%4L,0,-1.57 @@ -3874,6 +4152,7 @@ atan2,(-1L)%4L,1L%2L<:3L%4L,__failed__ atan2,(-1L)%4L,-inf,-3.14 atan2,(-1L)%4L,nan,nan +atan2,(-1L)%4L,x,__failed__ atan2,1+:2,1,__failed__ atan2,1+:2,-1,__failed__ atan2,1+:2,0,__failed__ @@ -3897,6 +4176,7 @@ atan2,1+:2,1L%2L<:3L%4L,__failed__ atan2,1+:2,-inf,__failed__ atan2,1+:2,nan,__failed__ +atan2,1+:2,x,__failed__ atan2,-1+:2,1,__failed__ atan2,-1+:2,-1,__failed__ atan2,-1+:2,0,__failed__ @@ -3920,6 +4200,7 @@ atan2,-1+:2,1L%2L<:3L%4L,__failed__ atan2,-1+:2,-inf,__failed__ atan2,-1+:2,nan,__failed__ +atan2,-1+:2,x,__failed__ atan2,1+:-2,1,__failed__ atan2,1+:-2,-1,__failed__ atan2,1+:-2,0,__failed__ @@ -3943,6 +4224,7 @@ atan2,1+:-2,1L%2L<:3L%4L,__failed__ atan2,1+:-2,-inf,__failed__ atan2,1+:-2,nan,__failed__ +atan2,1+:-2,x,__failed__ atan2,-1.20+:4.30,1,__failed__ atan2,-1.20+:4.30,-1,__failed__ atan2,-1.20+:4.30,0,__failed__ @@ -3966,6 +4248,7 @@ atan2,-1.20+:4.30,1L%2L<:3L%4L,__failed__ atan2,-1.20+:4.30,-inf,__failed__ atan2,-1.20+:4.30,nan,__failed__ +atan2,-1.20+:4.30,x,__failed__ atan2,1.20+:-4.30,1,__failed__ atan2,1.20+:-4.30,-1,__failed__ atan2,1.20+:-4.30,0,__failed__ @@ -3989,6 +4272,7 @@ atan2,1.20+:-4.30,1L%2L<:3L%4L,__failed__ atan2,1.20+:-4.30,-inf,__failed__ atan2,1.20+:-4.30,nan,__failed__ +atan2,1.20+:-4.30,x,__failed__ atan2,1L%2L+:1,1,__failed__ atan2,1L%2L+:1,-1,__failed__ atan2,1L%2L+:1,0,__failed__ @@ -4012,6 +4296,7 @@ atan2,1L%2L+:1,1L%2L<:3L%4L,__failed__ atan2,1L%2L+:1,-inf,__failed__ atan2,1L%2L+:1,nan,__failed__ +atan2,1L%2L+:1,x,__failed__ atan2,1L%2L+:3L%4L,1,__failed__ atan2,1L%2L+:3L%4L,-1,__failed__ atan2,1L%2L+:3L%4L,0,__failed__ @@ -4035,6 +4320,7 @@ atan2,1L%2L+:3L%4L,1L%2L<:3L%4L,__failed__ atan2,1L%2L+:3L%4L,-inf,__failed__ atan2,1L%2L+:3L%4L,nan,__failed__ +atan2,1L%2L+:3L%4L,x,__failed__ atan2,3<:1,1,__failed__ atan2,3<:1,-1,__failed__ atan2,3<:1,0,__failed__ @@ -4058,6 +4344,7 @@ atan2,3<:1,1L%2L<:3L%4L,__failed__ atan2,3<:1,-inf,__failed__ atan2,3<:1,nan,__failed__ +atan2,3<:1,x,__failed__ atan2,3<:-2.14,1,__failed__ atan2,3<:-2.14,-1,__failed__ atan2,3<:-2.14,0,__failed__ @@ -4081,6 +4368,7 @@ atan2,3<:-2.14,1L%2L<:3L%4L,__failed__ atan2,3<:-2.14,-inf,__failed__ atan2,3<:-2.14,nan,__failed__ +atan2,3<:-2.14,x,__failed__ atan2,3.00<:-3,1,__failed__ atan2,3.00<:-3,-1,__failed__ atan2,3.00<:-3,0,__failed__ @@ -4104,6 +4392,7 @@ atan2,3.00<:-3,1L%2L<:3L%4L,__failed__ atan2,3.00<:-3,-inf,__failed__ atan2,3.00<:-3,nan,__failed__ +atan2,3.00<:-3,x,__failed__ atan2,3.10<:2.50,1,__failed__ atan2,3.10<:2.50,-1,__failed__ atan2,3.10<:2.50,0,__failed__ @@ -4127,6 +4416,7 @@ atan2,3.10<:2.50,1L%2L<:3L%4L,__failed__ atan2,3.10<:2.50,-inf,__failed__ atan2,3.10<:2.50,nan,__failed__ +atan2,3.10<:2.50,x,__failed__ atan2,2L%3L<:2,1,__failed__ atan2,2L%3L<:2,-1,__failed__ atan2,2L%3L<:2,0,__failed__ @@ -4150,6 +4440,7 @@ atan2,2L%3L<:2,1L%2L<:3L%4L,__failed__ atan2,2L%3L<:2,-inf,__failed__ atan2,2L%3L<:2,nan,__failed__ +atan2,2L%3L<:2,x,__failed__ atan2,1L%2L<:3L%4L,1,__failed__ atan2,1L%2L<:3L%4L,-1,__failed__ atan2,1L%2L<:3L%4L,0,__failed__ @@ -4173,6 +4464,7 @@ atan2,1L%2L<:3L%4L,1L%2L<:3L%4L,__failed__ atan2,1L%2L<:3L%4L,-inf,__failed__ atan2,1L%2L<:3L%4L,nan,__failed__ +atan2,1L%2L<:3L%4L,x,__failed__ atan2,-inf,1,-1.57 atan2,-inf,-1,-1.57 atan2,-inf,0,-1.57 @@ -4196,6 +4488,7 @@ atan2,-inf,1L%2L<:3L%4L,__failed__ atan2,-inf,-inf,-2.36 atan2,-inf,nan,nan +atan2,-inf,x,__failed__ atan2,nan,1,nan atan2,nan,-1,nan atan2,nan,0,nan @@ -4219,6 +4512,31 @@ atan2,nan,1L%2L<:3L%4L,__failed__ atan2,nan,-inf,nan atan2,nan,nan,nan +atan2,nan,x,__failed__ +atan2,x,1,__failed__ +atan2,x,-1,__failed__ +atan2,x,0,__failed__ +atan2,x,0.00,__failed__ +atan2,x,1.20,__failed__ +atan2,x,-1.20,__failed__ +atan2,x,1L%3L,__failed__ +atan2,x,(-1L)%4L,__failed__ +atan2,x,1+:2,__failed__ +atan2,x,-1+:2,__failed__ +atan2,x,1+:-2,__failed__ +atan2,x,-1.20+:4.30,__failed__ +atan2,x,1.20+:-4.30,__failed__ +atan2,x,1L%2L+:1,__failed__ +atan2,x,1L%2L+:3L%4L,__failed__ +atan2,x,3<:1,__failed__ +atan2,x,3<:-2.14,__failed__ +atan2,x,3.00<:-3,__failed__ +atan2,x,3.10<:2.50,__failed__ +atan2,x,2L%3L<:2,__failed__ +atan2,x,1L%2L<:3L%4L,__failed__ +atan2,x,-inf,__failed__ +atan2,x,nan,__failed__ +atan2,x,x,__failed__ pow,1,1,1L pow,1,-1,1L%1L pow,1,0,1L @@ -4242,6 +4560,7 @@ pow,1,1L%2L<:3L%4L,__failed__ pow,1,-inf,__failed__ pow,1,nan,__failed__ +pow,1,x,__failed__ pow,-1,1,-1L pow,-1,-1,(-1L)%1L pow,-1,0,1L @@ -4265,6 +4584,7 @@ pow,-1,1L%2L<:3L%4L,__failed__ pow,-1,-inf,__failed__ pow,-1,nan,__failed__ +pow,-1,x,__failed__ pow,0,1,0L pow,0,-1,__error__ (signal 8) pow,0,0,1L @@ -4288,6 +4608,7 @@ pow,0,1L%2L<:3L%4L,__failed__ pow,0,-inf,__failed__ pow,0,nan,__failed__ +pow,0,x,__failed__ pow,0.00,1,__failed__ pow,0.00,-1,__failed__ pow,0.00,0,__failed__ @@ -4311,6 +4632,7 @@ pow,0.00,1L%2L<:3L%4L,__failed__ pow,0.00,-inf,__failed__ pow,0.00,nan,__failed__ +pow,0.00,x,__failed__ pow,1.20,1,__failed__ pow,1.20,-1,__failed__ pow,1.20,0,__failed__ @@ -4334,6 +4656,7 @@ pow,1.20,1L%2L<:3L%4L,__failed__ pow,1.20,-inf,__failed__ pow,1.20,nan,__failed__ +pow,1.20,x,__failed__ pow,-1.20,1,__failed__ pow,-1.20,-1,__failed__ pow,-1.20,0,__failed__ @@ -4357,6 +4680,7 @@ pow,-1.20,1L%2L<:3L%4L,__failed__ pow,-1.20,-inf,__failed__ pow,-1.20,nan,__failed__ +pow,-1.20,x,__failed__ pow,1L%3L,1,1L%3L pow,1L%3L,-1,3L%1L pow,1L%3L,0,1L%1L @@ -4380,6 +4704,7 @@ pow,1L%3L,1L%2L<:3L%4L,__failed__ pow,1L%3L,-inf,__failed__ pow,1L%3L,nan,__failed__ +pow,1L%3L,x,__failed__ pow,(-1L)%4L,1,(-1L)%4L pow,(-1L)%4L,-1,(-4L)%1L pow,(-1L)%4L,0,1L%1L @@ -4403,6 +4728,7 @@ pow,(-1L)%4L,1L%2L<:3L%4L,__failed__ pow,(-1L)%4L,-inf,__failed__ pow,(-1L)%4L,nan,__failed__ +pow,(-1L)%4L,x,__failed__ pow,1+:2,1,__failed__ pow,1+:2,-1,__failed__ pow,1+:2,0,__failed__ @@ -4426,6 +4752,7 @@ pow,1+:2,1L%2L<:3L%4L,__failed__ pow,1+:2,-inf,__failed__ pow,1+:2,nan,__failed__ +pow,1+:2,x,__failed__ pow,-1+:2,1,__failed__ pow,-1+:2,-1,__failed__ pow,-1+:2,0,__failed__ @@ -4449,6 +4776,7 @@ pow,-1+:2,1L%2L<:3L%4L,__failed__ pow,-1+:2,-inf,__failed__ pow,-1+:2,nan,__failed__ +pow,-1+:2,x,__failed__ pow,1+:-2,1,__failed__ pow,1+:-2,-1,__failed__ pow,1+:-2,0,__failed__ @@ -4472,6 +4800,7 @@ pow,1+:-2,1L%2L<:3L%4L,__failed__ pow,1+:-2,-inf,__failed__ pow,1+:-2,nan,__failed__ +pow,1+:-2,x,__failed__ pow,-1.20+:4.30,1,__failed__ pow,-1.20+:4.30,-1,__failed__ pow,-1.20+:4.30,0,__failed__ @@ -4495,6 +4824,7 @@ pow,-1.20+:4.30,1L%2L<:3L%4L,__failed__ pow,-1.20+:4.30,-inf,__failed__ pow,-1.20+:4.30,nan,__failed__ +pow,-1.20+:4.30,x,__failed__ pow,1.20+:-4.30,1,__failed__ pow,1.20+:-4.30,-1,__failed__ pow,1.20+:-4.30,0,__failed__ @@ -4518,6 +4848,7 @@ pow,1.20+:-4.30,1L%2L<:3L%4L,__failed__ pow,1.20+:-4.30,-inf,__failed__ pow,1.20+:-4.30,nan,__failed__ +pow,1.20+:-4.30,x,__failed__ pow,1L%2L+:1,1,__failed__ pow,1L%2L+:1,-1,__failed__ pow,1L%2L+:1,0,__failed__ @@ -4541,6 +4872,7 @@ pow,1L%2L+:1,1L%2L<:3L%4L,__failed__ pow,1L%2L+:1,-inf,__failed__ pow,1L%2L+:1,nan,__failed__ +pow,1L%2L+:1,x,__failed__ pow,1L%2L+:3L%4L,1,__failed__ pow,1L%2L+:3L%4L,-1,__failed__ pow,1L%2L+:3L%4L,0,__failed__ @@ -4564,6 +4896,7 @@ pow,1L%2L+:3L%4L,1L%2L<:3L%4L,__failed__ pow,1L%2L+:3L%4L,-inf,__failed__ pow,1L%2L+:3L%4L,nan,__failed__ +pow,1L%2L+:3L%4L,x,__failed__ pow,3<:1,1,__failed__ pow,3<:1,-1,__failed__ pow,3<:1,0,__failed__ @@ -4587,6 +4920,7 @@ pow,3<:1,1L%2L<:3L%4L,__failed__ pow,3<:1,-inf,__failed__ pow,3<:1,nan,__failed__ +pow,3<:1,x,__failed__ pow,3<:-2.14,1,__failed__ pow,3<:-2.14,-1,__failed__ pow,3<:-2.14,0,__failed__ @@ -4610,6 +4944,7 @@ pow,3<:-2.14,1L%2L<:3L%4L,__failed__ pow,3<:-2.14,-inf,__failed__ pow,3<:-2.14,nan,__failed__ +pow,3<:-2.14,x,__failed__ pow,3.00<:-3,1,__failed__ pow,3.00<:-3,-1,__failed__ pow,3.00<:-3,0,__failed__ @@ -4633,6 +4968,7 @@ pow,3.00<:-3,1L%2L<:3L%4L,__failed__ pow,3.00<:-3,-inf,__failed__ pow,3.00<:-3,nan,__failed__ +pow,3.00<:-3,x,__failed__ pow,3.10<:2.50,1,__failed__ pow,3.10<:2.50,-1,__failed__ pow,3.10<:2.50,0,__failed__ @@ -4656,6 +4992,7 @@ pow,3.10<:2.50,1L%2L<:3L%4L,__failed__ pow,3.10<:2.50,-inf,__failed__ pow,3.10<:2.50,nan,__failed__ +pow,3.10<:2.50,x,__failed__ pow,2L%3L<:2,1,__failed__ pow,2L%3L<:2,-1,__failed__ pow,2L%3L<:2,0,__failed__ @@ -4679,6 +5016,7 @@ pow,2L%3L<:2,1L%2L<:3L%4L,__failed__ pow,2L%3L<:2,-inf,__failed__ pow,2L%3L<:2,nan,__failed__ +pow,2L%3L<:2,x,__failed__ pow,1L%2L<:3L%4L,1,__failed__ pow,1L%2L<:3L%4L,-1,__failed__ pow,1L%2L<:3L%4L,0,__failed__ @@ -4702,6 +5040,7 @@ pow,1L%2L<:3L%4L,1L%2L<:3L%4L,__failed__ pow,1L%2L<:3L%4L,-inf,__failed__ pow,1L%2L<:3L%4L,nan,__failed__ +pow,1L%2L<:3L%4L,x,__failed__ pow,-inf,1,__failed__ pow,-inf,-1,__failed__ pow,-inf,0,__failed__ @@ -4725,6 +5064,7 @@ pow,-inf,1L%2L<:3L%4L,__failed__ pow,-inf,-inf,__failed__ pow,-inf,nan,__failed__ +pow,-inf,x,__failed__ pow,nan,1,__failed__ pow,nan,-1,__failed__ pow,nan,0,__failed__ @@ -4748,6 +5088,31 @@ pow,nan,1L%2L<:3L%4L,__failed__ pow,nan,-inf,__failed__ pow,nan,nan,__failed__ +pow,nan,x,__failed__ +pow,x,1,__failed__ +pow,x,-1,__failed__ +pow,x,0,__failed__ +pow,x,0.00,__failed__ +pow,x,1.20,__failed__ +pow,x,-1.20,__failed__ +pow,x,1L%3L,__failed__ +pow,x,(-1L)%4L,__failed__ +pow,x,1+:2,__failed__ +pow,x,-1+:2,__failed__ +pow,x,1+:-2,__failed__ +pow,x,-1.20+:4.30,__failed__ +pow,x,1.20+:-4.30,__failed__ +pow,x,1L%2L+:1,__failed__ +pow,x,1L%2L+:3L%4L,__failed__ +pow,x,3<:1,__failed__ +pow,x,3<:-2.14,__failed__ +pow,x,3.00<:-3,__failed__ +pow,x,3.10<:2.50,__failed__ +pow,x,2L%3L<:2,__failed__ +pow,x,1L%2L<:3L%4L,__failed__ +pow,x,-inf,__failed__ +pow,x,nan,__failed__ +pow,x,x,__failed__ puts "*** UNARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test (f/*1:*/,x/*0:*/)] { rule #0: x = [test (f,x)] state 0: #0 Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 22:10:16 UTC (rev 587) +++ pure/trunk/test/test020.pure 2008-08-23 22:16:55 UTC (rev 588) @@ -10,7 +10,7 @@ inexactp, infp, nanp]; let x = [1, -1, 0, 0.0, 1.2, -1.2, 1%3, -1%4, 1+:2, -1+:2, 1+:-2, -1.2+:4.3, 1.2+:-4.3, 1%2+:1, 1%2+:3%4, 3<:1, -3<:1, 3.0<:-3, 3.1<:2.5, (2%3)<:2, - (1%2)<:(3%4), -inf, nan]; + (1%2)<:(3%4), -inf, nan, x]; // binary operations This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:10:06
|
Revision: 587 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=587&view=rev Author: agraef Date: 2008-08-23 22:10:16 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Add math.pure exact/inexact/symbolic tests. Added Paths: ----------- pure/trunk/test/test021.log pure/trunk/test/test021.pure Added: pure/trunk/test/test021.log =================================================================== --- pure/trunk/test/test021.log (rev 0) +++ pure/trunk/test/test021.log 2008-08-23 22:10:16 UTC (rev 587) @@ -0,0 +1,295 @@ +let double_format = "%#0.3g"; +test (f/*0:101*/,x/*0:1101*/,y/*0:111*/) = puts$format (f/*0:101*/,x/*0:1101*/,y/*0:111*/,check (f/*0:101*/,x/*0:1101*/,y/*0:111*/) (catch __error__ (f/*1:101*/ x/*1:1101*/ y/*1:111*/))); +test (f/*0:101*/,x/*0:11*/) = puts$format (f/*0:101*/,x/*0:11*/,check (f/*0:101*/,x/*0:11*/) (catch __error__ (f/*1:101*/ x/*1:11*/))); +check _/*0:01*/ z/*0:1*/ = z/*0:1*/ if numberp z/*0:1*/; +check (f/*0:0101*/,_/*0:011*/) (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/; +check (f/*0:0101*/,_/*0:011*/) (g@_/*0:10*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/; +check _/*0:01*/ z/*0:1*/ = z/*0:1*/; +format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; +format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; +show x/*0:1*/::double = sprintf double_format x/*0:1*/; +show (x/*0:101*/+:y/*0:11*/) = show x/*0:101*/+"+:"+show y/*0:11*/; +show (x/*0:101*/<:y/*0:11*/) = show x/*0:101*/+"<:"+show y/*0:11*/; +show x/*0:1*/ = str x/*0:1*/; +{ + rule #0: check _ z = z if numberp z + rule #1: check (f,_) (g@_ _ _) = __failed__ if f===g + rule #2: check (f,_) (g@_ _) = __failed__ if f===g + rule #3: check _ z = z + state 0: #0 #1 #2 #3 + <var> state 1 + <app> state 3 + state 1: #0 #3 + <var> state 2 + state 2: #0 #3 + state 3: #0 #1 #2 #3 + <var> state 4 + <app> state 7 + state 4: #0 #3 + <var> state 5 + state 5: #0 #3 + <var> state 6 + state 6: #0 #3 + state 7: #0 #1 #2 #3 + <var> state 8 + , state 12 + state 8: #0 #3 + <var> state 9 + state 9: #0 #3 + <var> state 10 + state 10: #0 #3 + <var> state 11 + state 11: #0 #3 + state 12: #0 #1 #2 #3 + <var> state 13 + state 13: #0 #1 #2 #3 + <var> state 14 + state 14: #0 #1 #2 #3 + <var> state 15 + <app> state 16 + state 15: #0 #3 + state 16: #0 #1 #2 #3 + <var> state 17 + <app> state 19 + state 17: #0 #2 #3 + <var> state 18 + state 18: #0 #2 #3 + state 19: #0 #1 #2 #3 + <var> state 20 + state 20: #0 #1 #2 #3 + <var> state 21 + state 21: #0 #1 #2 #3 + <var> state 22 + state 22: #0 #1 #2 #3 +} +{ + rule #0: format (f,x,y,z) = str f+","+show x+","+show y+","+show z + rule #1: format (f,x,z) = str f+","+show x+","+show z + state 0: #0 #1 + <app> state 1 + state 1: #0 #1 + <app> state 2 + state 2: #0 #1 + , state 3 + state 3: #0 #1 + <var> state 4 + state 4: #0 #1 + <app> state 5 + state 5: #0 #1 + <app> state 6 + state 6: #0 #1 + , state 7 + state 7: #0 #1 + <var> state 8 + state 8: #0 #1 + <var> state 9 + <app> state 10 + state 9: #1 + state 10: #0 #1 + <var> state 11 + <app> state 13 + state 11: #1 + <var> state 12 + state 12: #1 + state 13: #0 #1 + <var> state 14 + , state 17 + state 14: #1 + <var> state 15 + state 15: #1 + <var> state 16 + state 16: #1 + state 17: #0 #1 + <var> state 18 + state 18: #0 #1 + <var> state 19 + state 19: #0 #1 +} +{ + rule #0: test (f,x,y) = puts$format (f,x,y,check (f,x,y) (catch __error__ (f x y))) + rule #1: test (f,x) = puts$format (f,x,check (f,x) (catch __error__ (f x))) + state 0: #0 #1 + <app> state 1 + state 1: #0 #1 + <app> state 2 + state 2: #0 #1 + , state 3 + state 3: #0 #1 + <var> state 4 + state 4: #0 #1 + <var> state 5 + <app> state 6 + state 5: #1 + state 6: #0 #1 + <var> state 7 + <app> state 9 + state 7: #1 + <var> state 8 + state 8: #1 + state 9: #0 #1 + <var> state 10 + , state 13 + state 10: #1 + <var> state 11 + state 11: #1 + <var> state 12 + state 12: #1 + state 13: #0 #1 + <var> state 14 + state 14: #0 #1 + <var> state 15 + state 15: #0 #1 +} +{ + rule #0: show x::double = sprintf double_format x + rule #1: show (x+:y) = show x+"+:"+show y + rule #2: show (x<:y) = show x+"<:"+show y + rule #3: show x = str x + state 0: #0 #1 #2 #3 + <var> state 1 + <var>::double state 2 + <app> state 3 + state 1: #3 + state 2: #0 #3 + state 3: #1 #2 #3 + <var> state 4 + <app> state 6 + state 4: #3 + <var> state 5 + state 5: #3 + state 6: #1 #2 #3 + <var> state 7 + +: state 10 + <: state 13 + state 7: #3 + <var> state 8 + state 8: #3 + <var> state 9 + state 9: #3 + state 10: #1 #3 + <var> state 11 + state 11: #1 #3 + <var> state 12 + state 12: #1 #3 + state 13: #2 #3 + <var> state 14 + state 14: #2 #3 + <var> state 15 + state 15: #2 #3 +} +*** EXACT/INEXACT *** +(+),2,2+:3,4+:3 +(+),2,2<:3,0.0200+:0.282 +(+),2,2L%3L,8L%3L +(-),2,2+:3,0+:-3 +(-),2,2<:3,3.98+:-0.282 +(-),2,2L%3L,4L%3L +(*),2,2+:3,4+:6 +(*),2,2<:3,4<:3 +(*),2,2L%3L,4L%3L +(%),2,2+:3,4L%13L+:(-6L)%13L +(%),2,2<:3,1L%1L<:-3 +(%),2,2L%3L,3L%1L +(/),2,2+:3,0.308+:-0.462 +(/),2,2<:3,1.00<:-3 +(/),2,2L%3L,3.00 +(^),2,2+:3,-1.95+:3.49 +(^),2,2<:3,0.253<:0.196 +(^),2,2L%3L,1.59 +(+),2+:3,2,4+:3 +(+),2<:3,2,0.0200+:0.282 +(+),2L%3L,2,8L%3L +(-),2+:3,2,0+:3 +(-),2<:3,2,-3.98+:0.282 +(-),2L%3L,2,(-4L)%3L +(*),2+:3,2,4+:6 +(*),2<:3,2,4<:3 +(*),2L%3L,2,4L%3L +(%),2+:3,2,1L%1L+:3L%2L +(%),2<:3,2,1L%1L<:3 +(%),2L%3L,2,1L%3L +(/),2+:3,2,1.00+:1.50 +(/),2<:3,2,1.00<:3 +(/),2L%3L,2,0.333 +(^),2+:3,2,-5.00+:12.0 +(^),2<:3,2,4.00<:-0.283 +(^),2L%3L,2,0.444 +*** SYMBOLIC *** +(+),x,2+:3,__failed__ +(+),x,2<:3,__failed__ +(+),x,2L%3L,__failed__ +(-),x,2+:3,__failed__ +(-),x,2<:3,__failed__ +(-),x,2L%3L,__failed__ +(*),x,2+:3,__failed__ +(*),x,2<:3,__failed__ +(*),x,2L%3L,__failed__ +(%),x,2+:3,__failed__ +(%),x,2<:3,__failed__ +(%),x,2L%3L,__failed__ +(/),x,2+:3,__failed__ +(/),x,2<:3,__failed__ +(/),x,2L%3L,__failed__ +(^),x,2+:3,__failed__ +(^),x,2<:3,__failed__ +(^),x,2L%3L,__failed__ +(+),2+:3,x,__failed__ +(+),2<:3,x,__failed__ +(+),2L%3L,x,__failed__ +(-),2+:3,x,__failed__ +(-),2<:3,x,__failed__ +(-),2L%3L,x,__failed__ +(*),2+:3,x,__failed__ +(*),2<:3,x,__failed__ +(*),2L%3L,x,__failed__ +(%),2+:3,x,__failed__ +(%),2<:3,x,__failed__ +(%),2L%3L,x,__failed__ +(/),2+:3,x,__failed__ +(/),2<:3,x,__failed__ +(/),2L%3L,x,__failed__ +(^),2+:3,x,__failed__ +(^),2<:3,x,__failed__ +(^),2L%3L,x,__failed__ +puts "*** EXACT/INEXACT ***"$$do test (catmap (\op/*0:*/ -> catmap (\a/*0:*/ -> [(op/*1:*/,2,a/*0:*/)] { + rule #0: a = [(op,2,a)] + state 0: #0 + <var> state 1 + state 1: #0 +}) [2+:3,2<:3,2%3] { + rule #0: op = catmap (\a -> [(op,2,a)]) [2+:3,2<:3,2%3] + state 0: #0 + <var> state 1 + state 1: #0 +}) [(+),(-),(*),(%),(/),(^)])$$do test (catmap (\op/*0:*/ -> catmap (\a/*0:*/ -> [(op/*1:*/,a/*0:*/,2)] { + rule #0: a = [(op,a,2)] + state 0: #0 + <var> state 1 + state 1: #0 +}) [2+:3,2<:3,2%3] { + rule #0: op = catmap (\a -> [(op,a,2)]) [2+:3,2<:3,2%3] + state 0: #0 + <var> state 1 + state 1: #0 +}) [(+),(-),(*),(%),(/),(^)])$$puts "*** SYMBOLIC ***"$$do test (catmap (\op/*0:*/ -> catmap (\a/*0:*/ -> [(op/*1:*/,x,a/*0:*/)] { + rule #0: a = [(op,x,a)] + state 0: #0 + <var> state 1 + state 1: #0 +}) [2+:3,2<:3,2%3] { + rule #0: op = catmap (\a -> [(op,x,a)]) [2+:3,2<:3,2%3] + state 0: #0 + <var> state 1 + state 1: #0 +}) [(+),(-),(*),(%),(/),(^)])$$do test (catmap (\op/*0:*/ -> catmap (\a/*0:*/ -> [(op/*1:*/,a/*0:*/,x)] { + rule #0: a = [(op,a,x)] + state 0: #0 + <var> state 1 + state 1: #0 +}) [2+:3,2<:3,2%3] { + rule #0: op = catmap (\a -> [(op,a,x)]) [2+:3,2<:3,2%3] + state 0: #0 + <var> state 1 + state 1: #0 +}) [(+),(-),(*),(%),(/),(^)]); +() Added: pure/trunk/test/test021.pure =================================================================== --- pure/trunk/test/test021.pure (rev 0) +++ pure/trunk/test/test021.pure 2008-08-23 22:10:16 UTC (rev 587) @@ -0,0 +1,37 @@ +// math.pure tests for exact/inexact and symbolic results + +using math, system; + +/* This will print out each operation, arguments and result as a single + line. Exceptions are flagged with '__error__', evaluation failures with + '__failed__'. Floating point values are rounded in the output to 3 + significant digits by default, to prevent 'make check' from failing due to + rounding discrepancies. */ + +let double_format = "%#0.3g"; // modify as needed, to get more accuracy + +test (f,x,y) = puts $ format (f,x,y,check (f,x,y) (catch __error__ (f x y))); +test (f,x) = puts $ format (f,x,check (f,x) (catch __error__ (f x))); + +check _ z = z if numberp z; +check (f,_) (g@_ _ _) | +check (f,_) (g@_ _) = __failed__ if f===g; +check _ z = z otherwise; + +format (f,x,y,z) = str f+","+show x+","+show y+","+show z; +format (f,x,z) = str f+","+show x+","+show z; + +show x::double = sprintf double_format x; +show (x+:y) = show x+"+:"+show y; +show (x<:y) = show x+"<:"+show y; +show x = str x otherwise; + +puts "*** EXACT/INEXACT ***" $$ +// These should all return exact results, except +/- with polar operands, as +// well as / and ^ which always return inexact results. +do test [op,2,a;op=[(+),(-),(*),(%),(/),(^)];a=[2+:3,2<:3,2%3]] $$ +do test [op,a,2;op=[(+),(-),(*),(%),(/),(^)];a=[2+:3,2<:3,2%3]] $$ +puts "*** SYMBOLIC ***" $$ +// If everything is all right here, these should all print __failed__. +do test [op,x,a;op=[(+),(-),(*),(%),(/),(^)];a=[2+:3,2<:3,2%3]] $$ +do test [op,a,x;op=[(+),(-),(*),(%),(/),(^)];a=[2+:3,2<:3,2%3]]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 22:06:11
|
Revision: 586 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=586&view=rev Author: agraef Date: 2008-08-23 22:06:21 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Cosmetic changes. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 21:46:12 UTC (rev 585) +++ pure/trunk/test/test020.log 2008-08-23 22:06:21 UTC (rev 586) @@ -37,11 +37,12 @@ state 1: #0 }) x; let double_format = "%#0.3g"; -test f/*0:01*/ (x/*0:101*/,y/*0:11*/) = puts$format (f/*0:01*/,x/*0:101*/,y/*0:11*/,check f/*0:01*/ (x/*0:101*/,y/*0:11*/) (catch __error__ (f/*1:01*/ x/*1:101*/ y/*1:11*/))); -test f/*0:01*/ x/*0:1*/ = puts$format (f/*0:01*/,x/*0:1*/,check f/*0:01*/ x/*0:1*/ (catch __error__ (f/*1:01*/ x/*1:1*/))); -check f/*0:001*/ _/*0:01*/ (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:001*/===g/*0:100*/; -check f/*0:001*/ _/*0:01*/ (g@_/*0:10*/ _/*0:11*/) = __failed__ if f/*0:001*/===g/*0:10*/; -check _/*0:001*/ _/*0:01*/ z/*0:1*/ = z/*0:1*/; +test (f/*0:101*/,x/*0:1101*/,y/*0:111*/) = puts$format (f/*0:101*/,x/*0:1101*/,y/*0:111*/,check (f/*0:101*/,x/*0:1101*/,y/*0:111*/) (catch __error__ (f/*1:101*/ x/*1:1101*/ y/*1:111*/))); +test (f/*0:101*/,x/*0:11*/) = puts$format (f/*0:101*/,x/*0:11*/,check (f/*0:101*/,x/*0:11*/) (catch __error__ (f/*1:101*/ x/*1:11*/))); +check _/*0:01*/ z/*0:1*/ = z/*0:1*/ if numberp z/*0:1*/; +check (f/*0:0101*/,_/*0:011*/) (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:100*/; +check (f/*0:0101*/,_/*0:011*/) (g@_/*0:10*/ _/*0:11*/) = __failed__ if f/*0:0101*/===g/*0:10*/; +check _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; show x/*0:1*/::double = sprintf double_format x/*0:1*/; @@ -49,30 +50,55 @@ show (x/*0:101*/<:y/*0:11*/) = show x/*0:101*/+"<:"+show y/*0:11*/; show x/*0:1*/ = str x/*0:1*/; { - rule #0: check f _ (g@_ _ _) = __failed__ if f===g - rule #1: check f _ (g@_ _) = __failed__ if f===g - rule #2: check _ _ z = z - state 0: #0 #1 #2 + rule #0: check _ z = z if numberp z + rule #1: check (f,_) (g@_ _ _) = __failed__ if f===g + rule #2: check (f,_) (g@_ _) = __failed__ if f===g + rule #3: check _ z = z + state 0: #0 #1 #2 #3 <var> state 1 - state 1: #0 #1 #2 + <app> state 3 + state 1: #0 #3 <var> state 2 - state 2: #0 #1 #2 - <var> state 3 - <app> state 4 - state 3: #2 - state 4: #0 #1 #2 + state 2: #0 #3 + state 3: #0 #1 #2 #3 + <var> state 4 + <app> state 7 + state 4: #0 #3 <var> state 5 - <app> state 7 - state 5: #1 #2 + state 5: #0 #3 <var> state 6 - state 6: #1 #2 - state 7: #0 #1 #2 + state 6: #0 #3 + state 7: #0 #1 #2 #3 <var> state 8 - state 8: #0 #1 #2 + , state 12 + state 8: #0 #3 <var> state 9 - state 9: #0 #1 #2 + state 9: #0 #3 <var> state 10 - state 10: #0 #1 #2 + state 10: #0 #3 + <var> state 11 + state 11: #0 #3 + state 12: #0 #1 #2 #3 + <var> state 13 + state 13: #0 #1 #2 #3 + <var> state 14 + state 14: #0 #1 #2 #3 + <var> state 15 + <app> state 16 + state 15: #0 #3 + state 16: #0 #1 #2 #3 + <var> state 17 + <app> state 19 + state 17: #0 #2 #3 + <var> state 18 + state 18: #0 #2 #3 + state 19: #0 #1 #2 #3 + <var> state 20 + state 20: #0 #1 #2 #3 + <var> state 21 + state 21: #0 #1 #2 #3 + <var> state 22 + state 22: #0 #1 #2 #3 } { rule #0: format (f,x,y,z) = str f+","+show x+","+show y+","+show z @@ -118,33 +144,39 @@ state 19: #0 #1 } { - rule #0: test f (x,y) = puts$format (f,x,y,check f (x,y) (catch __error__ (f x y))) - rule #1: test f x = puts$format (f,x,check f x (catch __error__ (f x))) + rule #0: test (f,x,y) = puts$format (f,x,y,check (f,x,y) (catch __error__ (f x y))) + rule #1: test (f,x) = puts$format (f,x,check (f,x) (catch __error__ (f x))) state 0: #0 #1 - <var> state 1 + <app> state 1 state 1: #0 #1 - <var> state 2 - <app> state 3 - state 2: #1 + <app> state 2 + state 2: #0 #1 + , state 3 state 3: #0 #1 <var> state 4 + state 4: #0 #1 + <var> state 5 <app> state 6 - state 4: #1 - <var> state 5 state 5: #1 state 6: #0 #1 <var> state 7 - , state 10 + <app> state 9 state 7: #1 <var> state 8 state 8: #1 - <var> state 9 - state 9: #1 - state 10: #0 #1 + state 9: #0 #1 + <var> state 10 + , state 13 + state 10: #1 <var> state 11 - state 11: #0 #1 + state 11: #1 <var> state 12 - state 12: #0 #1 + state 12: #1 + state 13: #0 #1 + <var> state 14 + state 14: #0 #1 + <var> state 15 + state 15: #0 #1 } { rule #0: show x::double = sprintf double_format x @@ -4716,23 +4748,23 @@ pow,nan,1L%2L<:3L%4L,__failed__ pow,nan,-inf,__failed__ pow,nan,nan,__failed__ -puts "*** UNARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test f/*1:*/ x/*0:*/] { - rule #0: x = [test f x] +puts "*** UNARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test (f/*1:*/,x/*0:*/)] { + rule #0: x = [test (f,x)] state 0: #0 <var> state 1 state 1: #0 }) x { - rule #0: f = catmap (\x -> [test f x]) x + rule #0: f = catmap (\x -> [test (f,x)]) x state 0: #0 <var> state 1 state 1: #0 -}) f)$$puts "*** BINARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test f/*1:*/ x/*0:*/] { - rule #0: x = [test f x] +}) f)$$puts "*** BINARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test (f/*1:*/,x/*0:*/)] { + rule #0: x = [test (f,x)] state 0: #0 <var> state 1 state 1: #0 }) x2 { - rule #0: f = catmap (\x -> [test f x]) x2 + rule #0: f = catmap (\x -> [test (f,x)]) x2 state 0: #0 <var> state 1 state 1: #0 Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 21:46:12 UTC (rev 585) +++ pure/trunk/test/test020.pure 2008-08-23 22:06:21 UTC (rev 586) @@ -29,11 +29,13 @@ let double_format = "%#0.3g"; // modify as needed, to get more accuracy -test f (x,y) = puts $ format (f,x,y,check f (x,y) (catch __error__ (f x y))); -test f x = puts $ format (f,x,check f x (catch __error__ (f x))); +test (f,x,y) = puts $ format (f,x,y,check (f,x,y) (catch __error__ (f x y))); +test (f,x) = puts $ format (f,x,check (f,x) (catch __error__ (f x))); -check f _ (g@_ _ _) | check f _ (g@_ _) = __failed__ if f===g; -check _ _ z = z otherwise; +check _ z = z if numberp z; +check (f,_) (g@_ _ _) | +check (f,_) (g@_ _) = __failed__ if f===g; +check _ z = z otherwise; format (f,x,y,z) = str f+","+show x+","+show y+","+show z; format (f,x,z) = str f+","+show x+","+show z; @@ -43,5 +45,5 @@ show (x<:y) = show x+"<:"+show y; show x = str x otherwise; -puts "*** UNARY ***" $$ void [test f x; f=f; x=x] $$ -puts "*** BINARY ***" $$ void [test f x; f=f2; x=x2]; +puts "*** UNARY ***" $$ void [test (f,x); f=f; x=x] $$ +puts "*** BINARY ***" $$ void [test (f,x); f=f2; x=x2]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 21:46:02
|
Revision: 585 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=585&view=rev Author: agraef Date: 2008-08-23 21:46:12 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Add type guards to complex operations. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 20:58:35 UTC (rev 584) +++ pure/trunk/lib/math.pure 2008-08-23 21:46:12 UTC (rev 585) @@ -271,32 +271,32 @@ /* Mixed complex/real and real/complex forms yield a rect or polar result, depending on what the complex input was. */ -(x1+:y1)+x2 = x1+x2 +: y1; -x1+(x2+:y2) = x1+x2 +: y2; -z1@(r1<:t1)+x2 = rect z1 + x2; -x1+z2@(r2<:t2) = x1 + rect z2; +(x1+:y1)+x2 = x1+x2 +: y1 if realp x2; +x1+(x2+:y2) = x1+x2 +: y2 if realp x1; +z1@(r1<:t1)+x2 = rect z1 + x2 if realp x2; +x1+z2@(r2<:t2) = x1 + rect z2 if realp x1; -(x1+:y1)-x2 = x1-x2 +: y1; -x1-(x2+:y2) = x1-x2 +: -y2; -z1@(r1<:t1)-x2 = rect z1 - x2; -x1-z2@(r2<:t2) = x1 - rect z2; +(x1+:y1)-x2 = x1-x2 +: y1 if realp x2; +x1-(x2+:y2) = x1-x2 +: -y2 if realp x1; +z1@(r1<:t1)-x2 = rect z1 - x2 if realp x2; +x1-z2@(r2<:t2) = x1 - rect z2 if realp x1; -(x1+:y1)*x2 = x1*x2 +: y1*x2; -x1*(x2+:y2) = x1*x2 +: x1*y2; -(r1<:t1)*x2 = r1*x2 <: t1; -x1*(r2<:t2) = x1*r2 <: t2; +(x1+:y1)*x2 = x1*x2 +: y1*x2 if realp x2; +x1*(x2+:y2) = x1*x2 +: x1*y2 if realp x1; +(r1<:t1)*x2 = r1*x2 <: t1 if realp x2; +x1*(r2<:t2) = x1*r2 <: t2 if realp x1; -(x1+:y1)/x2 = x1/x2 +: y1/x2; -x1/z2@(x2+:y2) = (x1*x2 +: -x1*y2) / (x2*x2+y2*y2); -(r1<:t1)/x2 = r1/x2 <: t1; -x1/(r2<:t2) = x1/r2 <: -t2; +(x1+:y1)/x2 = x1/x2 +: y1/x2 if realp x2; +x1/z2@(x2+:y2) = (x1*x2 +: -x1*y2) / (x2*x2+y2*y2) if realp x1; +(r1<:t1)/x2 = r1/x2 <: t1 if realp x2; +x1/(r2<:t2) = x1/r2 <: -t2 if realp x1; /* Complex powers. */ z1@(_+:_)^x2 | -z1@(_<:_)^x2 = exp (ln z1*x2); -x1^z2@(_+:_) = exp (ln (rect x1)*z2); -x1^z2@(_<:_) = exp (ln (polar x1)*z2); +z1@(_<:_)^x2 = exp (ln z1*x2) if numberp x2; +x1^z2@(_+:_) = exp (ln (rect x1)*z2) if realp x1; +x1^z2@(_<:_) = exp (ln (polar x1)*z2) if realp x1; /* Equality. */ @@ -312,15 +312,15 @@ z1@(_+:_)!=z2@(_<:_) = z1 != rect z2; z1@(_<:_)!=z2@(_+:_) = rect z1 != z2; -(x1+:y1)==x2 = x1==x2 && y1==0; -x1==(x2+:y2) = x1==x2 && y2==0; -z1@(r1<:t1)==x2 = z1 == (x2<:0); -x1==z2@(r2<:t2) = (x1<:0) == z2; +(x1+:y1)==x2 = x1==x2 && y1==0 if realp x2; +x1==(x2+:y2) = x1==x2 && y2==0 if realp x1; +z1@(r1<:t1)==x2 = z1 == (x2<:0) if realp x2; +x1==z2@(r2<:t2) = (x1<:0) == z2 if realp x1; -(x1+:y1)!=x2 = x1!=x2 || y1!=0; -x1!=(x2+:y2) = x1!=x2 || y2!=0; -z1@(r1<:t1)!=x2 = z1 != (x2<:0); -x1!=z2@(r2<:t2) = (x1<:0) != z2; +(x1+:y1)!=x2 = x1!=x2 || y1!=0 if realp x2; +x1!=(x2+:y2) = x1!=x2 || y2!=0 if realp x1; +z1@(r1<:t1)!=x2 = z1 != (x2<:0) if realp x2; +x1!=z2@(r2<:t2) = (x1<:0) != z2 if realp x1; /* Rational numbers. These are constructed with the exact division operator '%' which has the same precedence and fixity as the other division This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 20:58:25
|
Revision: 584 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=584&view=rev Author: agraef Date: 2008-08-23 20:58:35 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Cosmetic changes. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 20:50:22 UTC (rev 583) +++ pure/trunk/test/test020.log 2008-08-23 20:58:35 UTC (rev 584) @@ -4716,23 +4716,23 @@ pow,nan,1L%2L<:3L%4L,__failed__ pow,nan,-inf,__failed__ pow,nan,nan,__failed__ -puts "*** UNARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [(f/*1:*/,x/*0:*/,test f/*1:*/ x/*0:*/)] { - rule #0: x = [(f,x,test f x)] +puts "*** UNARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test f/*1:*/ x/*0:*/] { + rule #0: x = [test f x] state 0: #0 <var> state 1 state 1: #0 }) x { - rule #0: f = catmap (\x -> [(f,x,test f x)]) x + rule #0: f = catmap (\x -> [test f x]) x state 0: #0 <var> state 1 state 1: #0 -}) f)$$puts "*** BINARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [(f/*1:*/,x/*0:*/,test f/*1:*/ x/*0:*/)] { - rule #0: x = [(f,x,test f x)] +}) f)$$puts "*** BINARY ***"$$void (catmap (\f/*0:*/ -> catmap (\x/*0:*/ -> [test f/*1:*/ x/*0:*/] { + rule #0: x = [test f x] state 0: #0 <var> state 1 state 1: #0 }) x2 { - rule #0: f = catmap (\x -> [(f,x,test f x)]) x2 + rule #0: f = catmap (\x -> [test f x]) x2 state 0: #0 <var> state 1 state 1: #0 Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 20:50:22 UTC (rev 583) +++ pure/trunk/test/test020.pure 2008-08-23 20:58:35 UTC (rev 584) @@ -43,5 +43,5 @@ show (x<:y) = show x+"<:"+show y; show x = str x otherwise; -puts "*** UNARY ***" $$ void [f,x,test f x; f=f; x=x] $$ -puts "*** BINARY ***" $$ void [f,x,test f x; f=f2; x=x2]; +puts "*** UNARY ***" $$ void [test f x; f=f; x=x] $$ +puts "*** BINARY ***" $$ void [test f x; f=f2; x=x2]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 20:50:12
|
Revision: 583 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=583&view=rev Author: agraef Date: 2008-08-23 20:50:22 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Add type guards to rational operations. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 12:56:48 UTC (rev 582) +++ pure/trunk/lib/math.pure 2008-08-23 20:50:22 UTC (rev 583) @@ -349,8 +349,10 @@ // rational operands (x1%y1)%(x2%y2) = (x1*y2)%(y1*x2); -(x1%y1)%x2 = x1%(y1*x2); -x1%(x2%y2) = (x1*y2)%x2; +(x1%y1)%x2::int | +(x1%y1)%x2::bigint = x1%(y1*x2); +x1::int%(x2%y2) | +x1::bigint%(x2%y2) = (x1*y2)%x2; // complex operands (these must both use the same representation, otherwise // the result won't be exact) @@ -358,15 +360,19 @@ z1@(_<:_)%z2@(_+:_) = z1/z2; (x1+:y1)%(x2+:y2) = (x1*x2+y1*y2)%d +: (y1*x2-x1*y2)%d when d = x2*x2+y2*y2 end; -(x1+:y1)%x2 = (x1*x2)%d +: (y1*x2)%d when d = x2*x2 end; -x1%(x2+:y2) = (x1*x2)%d +: (-x1*y2)%d when d = x2*x2+y2*y2 end; (r1<:t1)%(r2<:t2) = r1%r2 <: t1-t2; -(r1<:t1)%x2 = r1%x2 <: t1; -x1%(r2<:t2) = x1%r2 <: -t2; +// mixed complex/real cases +(x1+:y1)%x2 = (x1*x2)%d +: (y1*x2)%d + when d = x2*x2 end if realp x2; +x1%(x2+:y2) = (x1*x2)%d +: (-x1*y2)%d + when d = x2*x2+y2*y2 end if realp x1; +(r1<:t1)%x2 = r1%x2 <: t1 if realp x2; +x1%(r2<:t2) = x1%r2 <: -t2 if realp x1; + // fall back to ordinary inexact division in all other cases -x::double%y | -x%y::double = x/y; +x::double%y = x/y if numberp y; +x%y::double = x/y if numberp x; /* Conversions. */ @@ -484,24 +490,37 @@ (x1%y1)-(x2%y2) = (x1*y2-x2*y1) % (y1*y2); (x1%y1)*(x2%y2) = (x1*x2) % (y1*y2); -(x1%y1)+x2 = (x1+x2*y1) % y1; -(x1%y1)-x2 = (x1-x2*y1) % y1; -(x1%y1)*x2 = (x1*x2) % y1; +(x1%y1)+x2::int | +(x1%y1)+x2::bigint = (x1+x2*y1) % y1; +(x1%y1)-x2::int | +(x1%y1)-x2::bigint = (x1-x2*y1) % y1; +(x1%y1)*x2::int | +(x1%y1)*x2::bigint = (x1*x2) % y1; -x1+(x2%y2) = (x1*y2+x2) % y2; -x1-(x2%y2) = (x1*y2-x2) % y2; -x1*(x2%y2) = (x1*x2) % y2; +x1::int+(x2%y2) | +x1::bigint+(x2%y2) = (x1*y2+x2) % y2; +x1::int-(x2%y2) | +x1::bigint-(x2%y2) = (x1*y2-x2) % y2; +x1::int*(x2%y2) | +x1::bigint*(x2%y2) = (x1*x2) % y2; -/* / and ^ yield inexact results. */ +/* Fallback rules. */ -(x1%y1)/(x2%y2) = (x1*y2) / (y1*x2); +// / and ^ always yield inexact results. +(x1%y1)/(x2%y2) = (x1/y1) / (x2/y2); (x1%y1)^(x2%y2) = (x1/y1) ^ (x2/y2); -(x1%y1)/x2 = x1 / (y1*x2); -(x1%y1)^x2 = (x1/y1) ^ x2; +(x1%y1)+x2 = (x1/y1)+x2 if numberp x2; +(x1%y1)-x2 = (x1/y1)-x2 if numberp x2; +(x1%y1)*x2 = (x1/y1)*x2 if numberp x2; +(x1%y1)/x2 = (x1/y1)/x2 if numberp x2; +(x1%y1)^x2 = (x1/y1)^x2 if numberp x2; -x1/(x2%y2) = (x1*y2) / x2; -x1^(x2%y2) = x1 ^ (x2/y2); +x1+(x2%y2) = x1+(x2/y2) if numberp x1; +x1-(x2%y2) = x1-(x2/y2) if numberp x1; +x1*(x2%y2) = x1*(x2/y2) if numberp x1; +x1/(x2%y2) = x1/(x2/y2) if numberp x1; +x1^(x2%y2) = x1^(x2/y2) if numberp x1; /* Comparisons. */ @@ -512,19 +531,19 @@ x1%y1 > x2%y2 = x1*y2 > x2*y1; x1%y1 >= x2%y2 = x1*y2 >= x2*y1; -x1%y1 == x2 = x1 == x2*y1; -x1%y1 != x2 = x1 != x2*y1; -x1%y1 < x2 = x1 < x2*y1; -x1%y1 <= x2 = x1 <= x2*y1; -x1%y1 > x2 = x1 > x2*y1; -x1%y1 >= x2 = x1 >= x2*y1; +x1%y1 == x2 = x1 == x2*y1 if numberp x2; +x1%y1 != x2 = x1 != x2*y1 if numberp x2; +x1%y1 < x2 = x1 < x2*y1 if realp x2; +x1%y1 <= x2 = x1 <= x2*y1 if realp x2; +x1%y1 > x2 = x1 > x2*y1 if realp x2; +x1%y1 >= x2 = x1 >= x2*y1 if realp x2; -x1 == x2%y2 = x1*y2 == x2; -x1 != x2%y2 = x1*y2 != x2; -x1 < x2%y2 = x1*y2 < x2; -x1 <= x2%y2 = x1*y2 <= x2; -x1 > x2%y2 = x1*y2 > x2; -x1 >= x2%y2 = x1*y2 >= x2; +x1 == x2%y2 = x1*y2 == x2 if numberp x2; +x1 != x2%y2 = x1*y2 != x2 if numberp x2; +x1 < x2%y2 = x1*y2 < x2 if realp x2; +x1 <= x2%y2 = x1*y2 <= x2 if realp x2; +x1 > x2%y2 = x1*y2 > x2 if realp x2; +x1 >= x2%y2 = x1*y2 >= x2 if realp x2; /* Additional number predicates. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 12:56:38
|
Revision: 582 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=582&view=rev Author: agraef Date: 2008-08-23 12:56:48 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Define double format as a variable, so that it can be changed more easily. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 12:49:38 UTC (rev 581) +++ pure/trunk/test/test020.log 2008-08-23 12:56:48 UTC (rev 582) @@ -36,6 +36,7 @@ <var> state 1 state 1: #0 }) x; +let double_format = "%#0.3g"; test f/*0:01*/ (x/*0:101*/,y/*0:11*/) = puts$format (f/*0:01*/,x/*0:101*/,y/*0:11*/,check f/*0:01*/ (x/*0:101*/,y/*0:11*/) (catch __error__ (f/*1:01*/ x/*1:101*/ y/*1:11*/))); test f/*0:01*/ x/*0:1*/ = puts$format (f/*0:01*/,x/*0:1*/,check f/*0:01*/ x/*0:1*/ (catch __error__ (f/*1:01*/ x/*1:1*/))); check f/*0:001*/ _/*0:01*/ (g@_/*0:100*/ _/*0:101*/ _/*0:11*/) = __failed__ if f/*0:001*/===g/*0:100*/; @@ -43,7 +44,7 @@ check _/*0:001*/ _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; -show x/*0:1*/::double = sprintf "%#0.3g" x/*0:1*/; +show x/*0:1*/::double = sprintf double_format x/*0:1*/; show (x/*0:101*/+:y/*0:11*/) = show x/*0:101*/+"+:"+show y/*0:11*/; show (x/*0:101*/<:y/*0:11*/) = show x/*0:101*/+"<:"+show y/*0:11*/; show x/*0:1*/ = str x/*0:1*/; @@ -146,7 +147,7 @@ state 12: #0 #1 } { - rule #0: show x::double = sprintf "%#0.3g" x + rule #0: show x::double = sprintf double_format x rule #1: show (x+:y) = show x+"+:"+show y rule #2: show (x<:y) = show x+"<:"+show y rule #3: show x = str x Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-23 12:49:38 UTC (rev 581) +++ pure/trunk/test/test020.pure 2008-08-23 12:56:48 UTC (rev 582) @@ -24,9 +24,11 @@ /* This will print out each operation, arguments and result as a single line. Exceptions are flagged with '__error__', evaluation failures with '__failed__'. Floating point values are rounded in the output to 3 - significant digits, to prevent 'make check' from failing due to small + significant digits by default, to prevent 'make check' from failing due to rounding discrepancies. */ +let double_format = "%#0.3g"; // modify as needed, to get more accuracy + test f (x,y) = puts $ format (f,x,y,check f (x,y) (catch __error__ (f x y))); test f x = puts $ format (f,x,check f x (catch __error__ (f x))); @@ -36,7 +38,7 @@ format (f,x,y,z) = str f+","+show x+","+show y+","+show z; format (f,x,z) = str f+","+show x+","+show z; -show x::double = sprintf "%#0.3g" x; +show x::double = sprintf double_format x; show (x+:y) = show x+"+:"+show y; show (x<:y) = show x+"<:"+show y; show x = str x otherwise; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 12:49:28
|
Revision: 581 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=581&view=rev Author: agraef Date: 2008-08-23 12:49:38 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Better definition for complex acosh. Modified Paths: -------------- pure/trunk/lib/math.pure pure/trunk/test/test020.log Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 11:43:17 UTC (rev 580) +++ pure/trunk/lib/math.pure 2008-08-23 12:49:38 UTC (rev 581) @@ -230,8 +230,8 @@ asinh z@(x+:y) | asinh z@(r<:t) = ln (z+sqrt (z*z+1)); acosh z@(x+:y) | -acosh z@(r<:t) = ln (z+sqrt (z*z-1)); -// Alternative definition (Kahan). +acosh z@(r<:t) = ln (z+sqrt (z-1)*sqrt (z+1)); +// Alternative definition by Kahan. Any reason to prefer that one? // acosh z@(x+:y) | // acosh z@(r<:t) = 2*ln (sqrt ((z+1)/2)+sqrt ((z-1)/2)); atanh z@(x+:y) | Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 11:43:17 UTC (rev 580) +++ pure/trunk/test/test020.log 2008-08-23 12:49:38 UTC (rev 581) @@ -514,17 +514,17 @@ acosh,1L%3L,nan acosh,(-1L)%4L,nan acosh,1+:2,1.53+:1.14 -acosh,-1+:2,-1.53+:-2.00 +acosh,-1+:2,1.53+:2.00 acosh,1+:-2,1.53+:-1.14 -acosh,-1.20+:4.30,-2.20+:-1.84 +acosh,-1.20+:4.30,2.20+:1.84 acosh,1.20+:-4.30,2.20+:-1.30 acosh,1L%2L+:1,0.926+:1.22 acosh,1L%2L+:3L%4L,0.743+:1.17 acosh,3<:1,1.80+:1.02 -acosh,3<:-2.14,-1.80+:2.12 -acosh,3.00<:-3,-1.76+:2.99 -acosh,3.10<:2.50,-1.82+:-2.47 -acosh,2L%3L<:2,-0.589+:-1.81 +acosh,3<:-2.14,1.80+:-2.12 +acosh,3.00<:-3,1.76+:-2.99 +acosh,3.10<:2.50,1.82+:2.47 +acosh,2L%3L<:2,0.589+:1.81 acosh,1L%2L<:3L%4L,0.355+:1.22 acosh,-inf,nan acosh,nan,nan This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 11:43:07
|
Revision: 580 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=580&view=rev Author: agraef Date: 2008-08-23 11:43:17 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Fix result type of (^) operation in real/polar cases. Modified Paths: -------------- pure/trunk/lib/math.pure pure/trunk/test/test020.log Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 11:18:41 UTC (rev 579) +++ pure/trunk/lib/math.pure 2008-08-23 11:43:17 UTC (rev 580) @@ -295,8 +295,8 @@ z1@(_+:_)^x2 | z1@(_<:_)^x2 = exp (ln z1*x2); -x1^z2@(_+:_) | -x1^z2@(_<:_) = exp (ln (complex x1)*z2); +x1^z2@(_+:_) = exp (ln (rect x1)*z2); +x1^z2@(_<:_) = exp (ln (polar x1)*z2); /* Equality. */ Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 11:18:41 UTC (rev 579) +++ pure/trunk/test/test020.log 2008-08-23 11:43:17 UTC (rev 580) @@ -3143,12 +3143,12 @@ (^),1,1.20+:-4.30,1.00+:0.00 (^),1,1L%2L+:1,1.00+:0.00 (^),1,1L%2L+:3L%4L,1.00+:0.00 -(^),1,3<:1,1.00+:0.00 -(^),1,3<:-2.14,1.00+:-0.00 -(^),1,3.00<:-3,1.00+:-0.00 -(^),1,3.10<:2.50,1.00+:0.00 -(^),1,2L%3L<:2,1.00+:0.00 -(^),1,1L%2L<:3L%4L,1.00+:0.00 +(^),1,3<:1,1.00<:0.00 +(^),1,3<:-2.14,1.00<:-0.00 +(^),1,3.00<:-3,1.00<:-0.00 +(^),1,3.10<:2.50,1.00<:0.00 +(^),1,2L%3L<:2,1.00<:0.00 +(^),1,1L%2L<:3L%4L,1.00<:0.00 (^),1,-inf,1.00 (^),1,nan,1.00 (^),-1,1,-1.00 @@ -3166,12 +3166,12 @@ (^),-1,1.20+:-4.30,-5.95e+05+:-4.33e+05 (^),-1,1L%2L+:1,2.65e-18+:0.0432 (^),-1,1L%2L+:3L%4L,5.80e-18+:0.0948 -(^),-1,3<:1,0.000133+:-0.000334 -(^),-1,3<:-2.14,1.03e+03+:2.58e+03 -(^),-1,3.00<:-3,-3.76+:-0.356 -(^),-1,3.10<:2.50,0.000152+:-0.00294 -(^),-1,2L%3L<:2,0.0958+:-0.114 -(^),-1,1L%2L<:3L%4L,0.140+:0.313 +(^),-1,3<:1,0.000360<:-1.19 +(^),-1,3<:-2.14,2.78e+03<:1.19 +(^),-1,3.00<:-3,3.78<:-3.05 +(^),-1,3.10<:2.50,0.00294<:-1.52 +(^),-1,2L%3L<:2,0.149<:-0.872 +(^),-1,1L%2L<:3L%4L,0.343<:1.15 (^),-1,-inf,1.00 (^),-1,nan,nan (^),0,1,0.00 @@ -3189,12 +3189,12 @@ (^),0,1.20+:-4.30,nan+:nan (^),0,1L%2L+:1,nan+:nan (^),0,1L%2L+:3L%4L,nan+:nan -(^),0,3<:1,nan+:nan -(^),0,3<:-2.14,nan+:nan -(^),0,3.00<:-3,nan+:nan -(^),0,3.10<:2.50,nan+:nan -(^),0,2L%3L<:2,nan+:nan -(^),0,1L%2L<:3L%4L,nan+:nan +(^),0,3<:1,0.00<:nan +(^),0,3<:-2.14,inf<:nan +(^),0,3.00<:-3,inf<:nan +(^),0,3.10<:2.50,inf<:nan +(^),0,2L%3L<:2,inf<:nan +(^),0,1L%2L<:3L%4L,0.00<:nan (^),0,-inf,inf (^),0,nan,nan (^),0.00,1,0.00 @@ -3212,12 +3212,12 @@ (^),0.00,1.20+:-4.30,nan+:nan (^),0.00,1L%2L+:1,nan+:nan (^),0.00,1L%2L+:3L%4L,nan+:nan -(^),0.00,3<:1,nan+:nan -(^),0.00,3<:-2.14,nan+:nan -(^),0.00,3.00<:-3,nan+:nan -(^),0.00,3.10<:2.50,nan+:nan -(^),0.00,2L%3L<:2,nan+:nan -(^),0.00,1L%2L<:3L%4L,nan+:nan +(^),0.00,3<:1,0.00<:nan +(^),0.00,3<:-2.14,inf<:nan +(^),0.00,3.00<:-3,inf<:nan +(^),0.00,3.10<:2.50,inf<:nan +(^),0.00,2L%3L<:2,inf<:nan +(^),0.00,1L%2L<:3L%4L,0.00<:nan (^),0.00,-inf,inf (^),0.00,nan,nan (^),1.20,1,1.20 @@ -3235,12 +3235,12 @@ (^),1.20,1.20+:-4.30,0.881+:-0.879 (^),1.20,1L%2L+:1,1.08+:0.199 (^),1.20,1L%2L+:3L%4L,1.09+:0.149 -(^),1.20,3<:1,1.20+:0.597 -(^),1.20,3<:-2.14,0.667+:-0.331 -(^),1.20,3.00<:-3,0.580+:-0.0449 -(^),1.20,3.10<:2.50,0.600+:0.211 -(^),1.20,2L%3L<:2,0.945+:0.105 -(^),1.20,1L%2L<:3L%4L,1.07+:0.0664 +(^),1.20,3<:1,1.34<:0.460 +(^),1.20,3<:-2.14,0.744<:-0.460 +(^),1.20,3.00<:-3,0.582<:-0.0772 +(^),1.20,3.10<:2.50,0.636<:0.338 +(^),1.20,2L%3L<:2,0.951<:0.111 +(^),1.20,1L%2L<:3L%4L,1.07<:0.0621 (^),1.20,-inf,0.00 (^),1.20,nan,nan (^),-1.20,1,-1.20 @@ -3258,12 +3258,12 @@ (^),-1.20,1.20+:-4.30,-9.05e+05+:1.42e+05 (^),-1.20,1L%2L+:1,-0.00858+:0.0466 (^),-1.20,1L%2L+:3L%4L,-0.0142+:0.103 -(^),-1.20,3<:1,0.000360+:-0.000322 -(^),-1.20,3<:-2.14,1.54e+03+:1.38e+03 -(^),-1.20,3.00<:-3,-2.20+:-0.0377 -(^),-1.20,3.10<:2.50,0.000711+:-0.00173 -(^),-1.20,2L%3L<:2,0.103+:-0.0976 -(^),-1.20,1L%2L<:3L%4L,0.129+:0.343 +(^),-1.20,3<:1,0.000483<:-0.731 +(^),-1.20,3<:-2.14,2.07e+03<:0.731 +(^),-1.20,3.00<:-3,2.20<:-3.12 +(^),-1.20,3.10<:2.50,0.00187<:-1.18 +(^),-1.20,2L%3L<:2,0.142<:-0.761 +(^),-1.20,1L%2L<:3L%4L,0.366<:1.21 (^),-1.20,-inf,0.00 (^),-1.20,nan,nan (^),1L%3L,1,0.333 @@ -3281,12 +3281,12 @@ (^),1L%3L,1.20+:-4.30,0.00312+:-0.268 (^),1L%3L,1L%2L+:1,0.263+:-0.514 (^),1L%3L,1L%2L+:3L%4L,0.392+:-0.424 -(^),1L%3L,3<:1,-0.157+:-0.0607 -(^),1L%3L,3<:-2.14,-5.54+:2.14 -(^),1L%3L,3.00<:-3,23.3+:11.7 -(^),1L%3L,3.10<:2.50,-6.90+:-13.7 -(^),1L%3L,2L%3L<:2,1.07+:-0.838 -(^),1L%3L,1L%2L<:3L%4L,0.623+:-0.245 +(^),1L%3L,3<:1,0.169<:-2.77 +(^),1L%3L,3<:-2.14,5.93<:2.77 +(^),1L%3L,3.00<:-3,26.1<:0.465 +(^),1L%3L,3.10<:2.50,15.3<:-2.04 +(^),1L%3L,2L%3L<:2,1.36<:-0.666 +(^),1L%3L,1L%2L<:3L%4L,0.669<:-0.374 (^),1L%3L,-inf,inf (^),1L%3L,nan,nan (^),(-1L)%4L,1,-0.250 @@ -3304,12 +3304,12 @@ (^),(-1L)%4L,1.20+:-4.30,-1.33e+05+:-4.20e+04 (^),(-1L)%4L,1L%2L+:1,0.0212+:0.00396 (^),(-1L)%4L,1L%2L+:3L%4L,0.0409+:0.0240 -(^),(-1L)%4L,3<:1,-8.31e-07+:3.80e-05 -(^),(-1L)%4L,3<:-2.14,-575.+:-2.63e+04 -(^),(-1L)%4L,3.00<:-3,-180.+:-146. -(^),(-1L)%4L,3.10<:2.50,-0.0536+:0.0748 -(^),(-1L)%4L,2L%3L<:2,-0.0308+:-0.217 -(^),(-1L)%4L,1L%2L<:3L%4L,0.161+:0.129 +(^),(-1L)%4L,3<:1,3.80e-05<:1.59 +(^),(-1L)%4L,3<:-2.14,2.63e+04<:-1.59 +(^),(-1L)%4L,3.00<:-3,232.<:-2.46 +(^),(-1L)%4L,3.10<:2.50,0.0920<:2.19 +(^),(-1L)%4L,2L%3L<:2,0.219<:-1.71 +(^),(-1L)%4L,1L%2L<:3L%4L,0.206<:0.677 (^),(-1L)%4L,-inf,inf (^),(-1L)%4L,nan,nan (^),1+:2,1,1.00+:2.00 @@ -3626,12 +3626,12 @@ (^),-inf,1.20+:-4.30,nan+:nan (^),-inf,1L%2L+:1,nan+:nan (^),-inf,1L%2L+:3L%4L,nan+:nan -(^),-inf,3<:1,nan+:nan -(^),-inf,3<:-2.14,nan+:nan -(^),-inf,3.00<:-3,nan+:nan -(^),-inf,3.10<:2.50,nan+:nan -(^),-inf,2L%3L<:2,nan+:nan -(^),-inf,1L%2L<:3L%4L,nan+:nan +(^),-inf,3<:1,inf<:nan +(^),-inf,3<:-2.14,0.00<:nan +(^),-inf,3.00<:-3,0.00<:nan +(^),-inf,3.10<:2.50,0.00<:nan +(^),-inf,2L%3L<:2,0.00<:nan +(^),-inf,1L%2L<:3L%4L,inf<:nan (^),-inf,-inf,0.00 (^),-inf,nan,nan (^),nan,1,nan @@ -3649,12 +3649,12 @@ (^),nan,1.20+:-4.30,nan+:nan (^),nan,1L%2L+:1,nan+:nan (^),nan,1L%2L+:3L%4L,nan+:nan -(^),nan,3<:1,nan+:nan -(^),nan,3<:-2.14,nan+:nan -(^),nan,3.00<:-3,nan+:nan -(^),nan,3.10<:2.50,nan+:nan -(^),nan,2L%3L<:2,nan+:nan -(^),nan,1L%2L<:3L%4L,nan+:nan +(^),nan,3<:1,nan<:nan +(^),nan,3<:-2.14,nan<:nan +(^),nan,3.00<:-3,nan<:nan +(^),nan,3.10<:2.50,nan<:nan +(^),nan,2L%3L<:2,nan<:nan +(^),nan,1L%2L<:3L%4L,nan<:nan (^),nan,-inf,nan (^),nan,nan,nan atan2,1,1,0.785 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 11:18:31
|
Revision: 579 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=579&view=rev Author: agraef Date: 2008-08-23 11:18:41 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Update log. Modified Paths: -------------- pure/trunk/test/test020.log Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-23 11:09:12 UTC (rev 578) +++ pure/trunk/test/test020.log 2008-08-23 11:18:41 UTC (rev 579) @@ -193,9 +193,9 @@ sqrt,(-1L)%4L,nan sqrt,1+:2,1.27+:0.786 sqrt,-1+:2,0.786+:1.27 -sqrt,1+:-2,1.27+:0.786 +sqrt,1+:-2,1.27+:-0.786 sqrt,-1.20+:4.30,1.28+:1.68 -sqrt,1.20+:-4.30,1.68+:1.28 +sqrt,1.20+:-4.30,1.68+:-1.28 sqrt,1L%2L+:1,0.899+:0.556 sqrt,1L%2L+:3L%4L,0.837+:0.448 sqrt,3<:1,1.73<:0.500 @@ -375,19 +375,19 @@ asin,-1.20,nan asin,1L%3L,0.340 asin,(-1L)%4L,-0.253 -asin,1+:2,1.47+:-0.653 +asin,1+:2,0.427+:1.53 asin,-1+:2,-0.427+:1.53 asin,1+:-2,0.427+:-1.53 asin,-1.20+:4.30,-0.266+:2.20 asin,1.20+:-4.30,0.266+:-2.20 -asin,1L%2L+:1,1.16+:0.0607 -asin,1L%2L+:3L%4L,1.08+:0.0770 -asin,3<:1,1.53+:-1.15 -asin,3<:-2.14,-0.0165+:-1.65 -asin,3.00<:-3,-0.192+:0.118 +asin,1L%2L+:1,0.349+:0.926 +asin,1L%2L+:3L%4L,0.398+:0.743 +asin,3<:1,0.546+:1.80 +asin,3<:-2.14,-0.546+:-1.80 +asin,3.00<:-3,-1.42+:-1.76 asin,3.10<:2.50,-0.904+:1.82 asin,2L%3L<:2,-0.238+:0.589 -asin,1L%2L<:3L%4L,0.641+:0.197 +asin,1L%2L<:3L%4L,0.351+:0.355 asin,-inf,nan asin,nan,nan acos,1,0.00 @@ -399,17 +399,17 @@ acos,1L%3L,1.23 acos,(-1L)%4L,1.82 acos,1+:2,1.14+:-1.53 -acos,-1+:2,1.59+:-1.43 -acos,1+:-2,0.103+:-0.653 -acos,-1.20+:4.30,1.57+:-2.16 -acos,1.20+:-4.30,0.0451+:-0.864 +acos,-1+:2,-2.00+:1.53 +acos,1+:-2,-1.14+:-1.53 +acos,-1.20+:4.30,-1.84+:2.20 +acos,1.20+:-4.30,-1.30+:-2.20 acos,1L%2L+:1,1.22+:-0.926 acos,1L%2L+:3L%4L,1.17+:-0.743 acos,3<:1,1.02+:-1.80 acos,3<:-2.14,2.12+:1.80 acos,3.00<:-3,2.99+:1.76 -acos,3.10<:2.50,1.60+:-1.34 -acos,2L%3L<:2,1.65+:-0.563 +acos,3.10<:2.50,-2.47+:1.82 +acos,2L%3L<:2,-1.81+:0.589 acos,1L%2L<:3L%4L,1.22+:-0.355 acos,-inf,nan acos,nan,nan @@ -491,17 +491,17 @@ asinh,1L%3L,0.327 asinh,(-1L)%4L,-0.247 asinh,1+:2,1.47+:1.06 -asinh,-1+:2,1.34+:1.54 -asinh,1+:-2,0.752+:-0.0949 -asinh,-1.20+:4.30,2.14+:1.57 -asinh,1.20+:-4.30,0.889+:-0.0447 +asinh,-1+:2,-1.47+:1.06 +asinh,1+:-2,1.47+:-1.06 +asinh,-1.20+:4.30,-2.18+:1.29 +asinh,1.20+:-4.30,2.18+:-1.29 asinh,1L%2L+:1,0.733+:0.896 asinh,1L%2L+:3L%4L,0.606+:0.682 asinh,3<:1,1.78+:0.974 asinh,3<:-2.14,-1.78+:-0.974 asinh,3.00<:-3,-1.82+:-0.134 -asinh,3.10<:2.50,1.29+:1.53 -asinh,2L%3L<:2,-0.00714+:0.938 +asinh,3.10<:2.50,-1.83+:0.617 +asinh,2L%3L<:2,-0.333+:0.612 asinh,1L%2L<:3L%4L,0.377+:0.324 asinh,-inf,-inf asinh,nan,nan @@ -514,17 +514,17 @@ acosh,1L%3L,nan acosh,(-1L)%4L,nan acosh,1+:2,1.53+:1.14 -acosh,-1+:2,1.43+:1.59 -acosh,1+:-2,0.653+:0.103 -acosh,-1.20+:4.30,2.16+:1.57 -acosh,1.20+:-4.30,0.864+:0.0451 +acosh,-1+:2,-1.53+:-2.00 +acosh,1+:-2,1.53+:-1.14 +acosh,-1.20+:4.30,-2.20+:-1.84 +acosh,1.20+:-4.30,2.20+:-1.30 acosh,1L%2L+:1,0.926+:1.22 acosh,1L%2L+:3L%4L,0.743+:1.17 acosh,3<:1,1.80+:1.02 acosh,3<:-2.14,-1.80+:2.12 acosh,3.00<:-3,-1.76+:2.99 -acosh,3.10<:2.50,1.34+:1.60 -acosh,2L%3L<:2,0.563+:1.65 +acosh,3.10<:2.50,-1.82+:-2.47 +acosh,2L%3L<:2,-0.589+:-1.81 acosh,1L%2L<:3L%4L,0.355+:1.22 acosh,-inf,nan acosh,nan,nan @@ -3360,8 +3360,8 @@ (^),-1+:2,nan,nan+:nan (^),1+:-2,1,1.00+:-2.00 (^),1+:-2,-1,0.200+:0.400 -(^),1+:-2,0,1.00+:0.00 -(^),1+:-2,0.00,1.00+:0.00 +(^),1+:-2,0,1.00+:-0.00 +(^),1+:-2,0.00,1.00+:-0.00 (^),1+:-2,1.20,0.630+:-2.55 (^),1+:-2,-1.20,0.0913+:0.370 (^),1+:-2,1L%3L,1.22+:-0.472 @@ -3406,8 +3406,8 @@ (^),-1.20+:4.30,nan,nan+:nan (^),1.20+:-4.30,1,1.20+:-4.30 (^),1.20+:-4.30,-1,0.0602+:0.216 -(^),1.20+:-4.30,0,1.00+:0.00 -(^),1.20+:-4.30,0.00,1.00+:0.00 +(^),1.20+:-4.30,0,1.00+:-0.00 +(^),1.20+:-4.30,0.00,1.00+:-0.00 (^),1.20+:-4.30,1.20,0.0748+:-6.02 (^),1.20+:-4.30,-1.20,0.00206+:0.166 (^),1.20+:-4.30,1L%3L,1.49+:-0.691 @@ -3473,14 +3473,14 @@ (^),1L%2L+:3L%4L,1L%2L<:3L%4L,0.653+:0.219 (^),1L%2L+:3L%4L,-inf,nan+:nan (^),1L%2L+:3L%4L,nan,nan+:nan -(^),3<:1,1,3.00<:1 -(^),3<:1,-1,0.333<:-1 -(^),3<:1,0,1.00<:0 +(^),3<:1,1,3.00<:1.00 +(^),3<:1,-1,0.333<:-1.00 +(^),3<:1,0,1.00<:0.00 (^),3<:1,0.00,1.00<:0.00 (^),3<:1,1.20,3.74<:1.20 (^),3<:1,-1.20,0.268<:-1.20 -(^),3<:1,1L%3L,1.44<:1L%3L -(^),3<:1,(-1L)%4L,0.760<:(-1L)%4L +(^),3<:1,1L%3L,1.44<:0.333 +(^),3<:1,(-1L)%4L,0.760<:-0.250 (^),3<:1,1+:2,-0.405+:-0.0226 (^),3<:1,-1+:2,0.0165+:0.0420 (^),3<:1,1+:-2,8.09+:-20.6 @@ -3488,12 +3488,12 @@ (^),3<:1,1.20+:-4.30,-256.+:103. (^),3<:1,1L%2L+:1,-0.0177+:0.637 (^),3<:1,1L%2L+:3L%4L,0.200+:0.793 -(^),3<:1,3<:1,-0.149+:-0.452 -(^),3<:1,3<:-2.14,-0.658+:2.00 -(^),3<:1,3.00<:-3,-0.0560+:0.0169 -(^),3<:1,3.10<:2.50,0.00922+:-0.00440 -(^),3<:1,2L%3L<:2,0.372+:0.152 -(^),3<:1,1L%2L<:3L%4L,0.785+:0.717 +(^),3<:1,3<:1,0.475<:-1.89 +(^),3<:1,3<:-2.14,2.10<:1.89 +(^),3<:1,3.00<:-3,0.0585<:2.85 +(^),3<:1,3.10<:2.50,0.0102<:-0.445 +(^),3<:1,2L%3L<:2,0.402<:0.389 +(^),3<:1,1L%2L<:3L%4L,1.06<:0.740 (^),3<:1,-inf,0.00<:nan (^),3<:1,nan,nan<:nan (^),3<:-2.14,1,3.00<:-2.14 @@ -3511,22 +3511,22 @@ (^),3<:-2.14,1.20+:-4.30,0.000199+:-0.000317 (^),3<:-2.14,1L%2L+:1,14.7+:0.410 (^),3<:-2.14,1L%2L+:3L%4L,8.37+:-2.11 -(^),3<:-2.14,3<:1,1.01e+03+:-850. -(^),3<:-2.14,3<:-2.14,0.000579+:0.000486 -(^),3<:-2.14,3.00<:-3,0.0143+:-0.00585 -(^),3<:-2.14,3.10<:2.50,1.66+:3.05 -(^),3<:-2.14,2L%3L<:2,0.826+:2.57 -(^),3<:-2.14,1L%2L<:3L%4L,2.85+:-1.23 +(^),3<:-2.14,3<:1,1.32e+03<:-0.698 +(^),3<:-2.14,3<:-2.14,0.000756<:0.698 +(^),3<:-2.14,3.00<:-3,0.0155<:-0.388 +(^),3<:-2.14,3.10<:2.50,3.47<:1.07 +(^),3<:-2.14,2L%3L<:2,2.70<:1.26 +(^),3<:-2.14,1L%2L<:3L%4L,3.10<:-0.409 (^),3<:-2.14,-inf,0.00<:nan (^),3<:-2.14,nan,nan<:nan -(^),3.00<:-3,1,3.00<:-3 -(^),3.00<:-3,-1,0.333<:3 -(^),3.00<:-3,0,1.00<:0 +(^),3.00<:-3,1,3.00<:-3.00 +(^),3.00<:-3,-1,0.333<:3.00 +(^),3.00<:-3,0,1.00<:-0.00 (^),3.00<:-3,0.00,1.00<:-0.00 (^),3.00<:-3,1.20,3.74<:2.68 (^),3.00<:-3,-1.20,0.268<:-2.68 -(^),3.00<:-3,1L%3L,1.44<:(-1L)%1L -(^),3.00<:-3,(-1L)%4L,0.760<:3L%4L +(^),3.00<:-3,1L%3L,1.44<:-1.00 +(^),3.00<:-3,(-1L)%4L,0.760<:0.750 (^),3.00<:-3,1+:2,841.+:-871. (^),3.00<:-3,-1+:2,62.7+:-119. (^),3.00<:-3,1+:-2,0.00347+:0.00658 @@ -3534,12 +3534,12 @@ (^),3.00<:-3,1.20+:-4.30,-4.23e-06+:-8.32e-06 (^),3.00<:-3,1L%2L+:1,32.0+:-13.6 (^),3.00<:-3,1L%2L+:3L%4L,12.8+:-10.3 -(^),3.00<:-3,3<:1,-5.72e+03+:-1.00e+04 -(^),3.00<:-3,3<:-2.14,-4.29e-05+:7.52e-05 -(^),3.00<:-3,3.00<:-3,-0.00599+:0.00893 -(^),3.00<:-3,3.10<:2.50,-17.0+:-1.09 -(^),3.00<:-3,2L%3L<:2,0.329+:4.53 -(^),3.00<:-3,1L%2L<:3L%4L,3.12+:-2.75 +(^),3.00<:-3,3<:1,1.15e+04<:-2.09 +(^),3.00<:-3,3<:-2.14,8.66e-05<:2.09 +(^),3.00<:-3,3.00<:-3,0.0107<:2.16 +(^),3.00<:-3,3.10<:2.50,17.1<:-3.08 +(^),3.00<:-3,2L%3L<:2,4.54<:1.50 +(^),3.00<:-3,1L%2L<:3L%4L,4.16<:-0.723 (^),3.00<:-3,-inf,0.00<:nan (^),3.00<:-3,nan,nan<:nan (^),3.10<:2.50,1,3.10<:2.50 @@ -3557,22 +3557,22 @@ (^),3.10<:2.50,1.20+:-4.30,-5.26e+04+:-1.73e+05 (^),3.10<:2.50,1L%2L+:1,-0.105+:0.0996 (^),3.10<:2.50,1L%2L+:3L%4L,-0.136+:0.233 -(^),3.10<:2.50,3<:1,0.00922+:0.00665 -(^),3.10<:2.50,3<:-2.14,71.3+:-51.5 -(^),3.10<:2.50,3.00<:-3,-0.00500+:-0.0999 -(^),3.10<:2.50,3.10<:2.50,-0.000330+:0.000480 -(^),3.10<:2.50,2L%3L<:2,0.161+:-0.00124 -(^),3.10<:2.50,1L%2L<:3L%4L,0.172+:0.622 +(^),3.10<:2.50,3<:1,0.0114<:0.625 +(^),3.10<:2.50,3<:-2.14,88.0<:-0.625 +(^),3.10<:2.50,3.00<:-3,0.100<:-1.62 +(^),3.10<:2.50,3.10<:2.50,0.000583<:2.17 +(^),3.10<:2.50,2L%3L<:2,0.161<:-0.00772 +(^),3.10<:2.50,1L%2L<:3L%4L,0.645<:1.30 (^),3.10<:2.50,-inf,0.00<:nan (^),3.10<:2.50,nan,nan<:nan -(^),2L%3L<:2,1,0.667<:2 -(^),2L%3L<:2,-1,1.50<:-2 -(^),2L%3L<:2,0,1.00<:0 +(^),2L%3L<:2,1,0.667<:2.00 +(^),2L%3L<:2,-1,1.50<:-2.00 +(^),2L%3L<:2,0,1.00<:0.00 (^),2L%3L<:2,0.00,1.00<:0.00 (^),2L%3L<:2,1.20,0.615<:2.40 (^),2L%3L<:2,-1.20,1.63<:-2.40 -(^),2L%3L<:2,1L%3L,0.874<:2L%3L -(^),2L%3L<:2,(-1L)%4L,1.11<:(-1L)%2L +(^),2L%3L<:2,1L%3L,0.874<:0.667 +(^),2L%3L<:2,(-1L)%4L,1.11<:-0.500 (^),2L%3L<:2,1+:2,0.00455+:0.0113 (^),2L%3L<:2,-1+:2,-0.0260+:-0.00892 (^),2L%3L<:2,1+:-2,-34.4+:11.8 @@ -3580,22 +3580,22 @@ (^),2L%3L<:2,1.20+:-4.30,-1.80e+03+:-2.81e+03 (^),2L%3L<:2,1L%2L+:1,0.0915+:0.0619 (^),2L%3L<:2,1L%2L+:3L%4L,0.140+:0.117 -(^),2L%3L<:2,3<:1,-0.00201+:0.00265 -(^),2L%3L<:2,3<:-2.14,-181.+:-240. -(^),2L%3L<:2,3.00<:-3,6.77+:3.83 -(^),2L%3L<:2,3.10<:2.50,0.0566+:0.0358 -(^),2L%3L<:2,2L%3L<:2,0.232+:-0.239 -(^),2L%3L<:2,1L%2L<:3L%4L,0.361+:0.244 +(^),2L%3L<:2,3<:1,0.00333<:2.22 +(^),2L%3L<:2,3<:-2.14,301.<:-2.22 +(^),2L%3L<:2,3.00<:-3,7.78<:0.515 +(^),2L%3L<:2,3.10<:2.50,0.0670<:0.564 +(^),2L%3L<:2,2L%3L<:2,0.333<:-0.801 +(^),2L%3L<:2,1L%2L<:3L%4L,0.436<:0.593 (^),2L%3L<:2,-inf,inf<:nan (^),2L%3L<:2,nan,nan<:nan -(^),1L%2L<:3L%4L,1,0.500<:3L%4L -(^),1L%2L<:3L%4L,-1,2.00<:(-3L)%4L -(^),1L%2L<:3L%4L,0,1.00<:0L%1L +(^),1L%2L<:3L%4L,1,0.500<:0.750 +(^),1L%2L<:3L%4L,-1,2.00<:-0.750 +(^),1L%2L<:3L%4L,0,1.00<:0.00 (^),1L%2L<:3L%4L,0.00,1.00<:0.00 (^),1L%2L<:3L%4L,1.20,0.435<:0.900 (^),1L%2L<:3L%4L,-1.20,2.30<:-0.900 -(^),1L%2L<:3L%4L,1L%3L,0.794<:1L%4L -(^),1L%2L<:3L%4L,(-1L)%4L,1.19<:(-3L)%16L +(^),1L%2L<:3L%4L,1L%3L,0.794<:0.250 +(^),1L%2L<:3L%4L,(-1L)%4L,1.19<:-0.188 (^),1L%2L<:3L%4L,1+:2,0.0897+:-0.0663 (^),1L%2L<:3L%4L,-1+:2,-0.239+:-0.377 (^),1L%2L<:3L%4L,1+:-2,-1.20+:1.89 @@ -3603,12 +3603,12 @@ (^),1L%2L<:3L%4L,1.20+:-4.30,-8.09+:-7.37 (^),1L%2L<:3L%4L,1L%2L+:1,0.317+:-0.104 (^),1L%2L<:3L%4L,1L%2L+:3L%4L,0.399+:-0.0582 -(^),1L%2L<:3L%4L,3<:1,0.0421+:-0.0249 -(^),1L%2L<:3L%4L,3<:-2.14,17.6+:10.4 -(^),1L%2L<:3L%4L,3.00<:-3,-3.82+:-10.1 -(^),1L%2L<:3L%4L,3.10<:2.50,-1.39+:0.00979 -(^),1L%2L<:3L%4L,2L%3L<:2,0.622+:-0.452 -(^),1L%2L<:3L%4L,1L%2L<:3L%4L,0.601+:0.0229 +(^),1L%2L<:3L%4L,3<:1,0.0490<:-0.534 +(^),1L%2L<:3L%4L,3<:-2.14,20.4<:0.534 +(^),1L%2L<:3L%4L,3.00<:-3,10.8<:-1.93 +(^),1L%2L<:3L%4L,3.10<:2.50,1.39<:3.13 +(^),1L%2L<:3L%4L,2L%3L<:2,0.769<:-0.628 +(^),1L%2L<:3L%4L,1L%2L<:3L%4L,0.601<:0.0381 (^),1L%2L<:3L%4L,-inf,inf<:nan (^),1L%2L<:3L%4L,nan,nan<:nan (^),-inf,1,-inf This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 11:09:03
|
Revision: 578 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=578&view=rev Author: agraef Date: 2008-08-23 11:09:12 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Bugfix in (^) operation. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 10:45:28 UTC (rev 577) +++ pure/trunk/lib/math.pure 2008-08-23 11:09:12 UTC (rev 578) @@ -293,10 +293,10 @@ /* Complex powers. */ -z1@(_+:_)^z2 | -z1^z2@(_+:_) | -z1@(_<:_)^z2 | -z1^z2@(_<:_) = exp (ln z1*z2); +z1@(_+:_)^x2 | +z1@(_<:_)^x2 = exp (ln z1*x2); +x1^z2@(_+:_) | +x1^z2@(_<:_) = exp (ln (complex x1)*z2); /* Equality. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 10:45:17
|
Revision: 577 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=577&view=rev Author: agraef Date: 2008-08-23 10:45:28 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Fix up definition of complex powers. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-23 10:27:31 UTC (rev 576) +++ pure/trunk/lib/math.pure 2008-08-23 10:45:28 UTC (rev 577) @@ -293,19 +293,11 @@ /* Complex powers. */ -// These are computed most easily if the 1st operand is in polar form. -// FIXME: Deal with special cases like 0^0. These always give nan now. -z1@(x1+:y1)^z2@(x2+:y2) = polar z1^z2; -z1@(x1+:y1)^z2@(r2<:t2) = polar z1^rect z2; -(r1<:t1)^z2@(x2+:y2) | -(r1<:t1)^z2@(r2<:t2) = exp (ln r1*z2)*exp((0+:t1)*z2); +z1@(_+:_)^z2 | +z1^z2@(_+:_) | +z1@(_<:_)^z2 | +z1^z2@(_<:_) = exp (ln z1*z2); -// Mixed complex/real cases. -z1@(x1+:y1)^x2 = z1 ^ (x2+:0); -x1^z2@(x2+:y2) = (x1+:0) ^ z2; -(r1<:t1)^x2 = r1^x2 <: t1*x2; -x1^z2@(r2<:t2) = (x1<:0) ^ z2; - /* Equality. */ (x1+:y1) == (x2+:y2) = x1==x2 && y1==y2; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-23 10:27:25
|
Revision: 576 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=576&view=rev Author: agraef Date: 2008-08-23 10:27:31 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Fix broken complex sqrt, minor cosmetic changes in complex trig and hyperbolic functions. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-22 20:24:48 UTC (rev 575) +++ pure/trunk/lib/math.pure 2008-08-23 10:27:31 UTC (rev 576) @@ -183,8 +183,8 @@ /* Complex sqrt. */ -sqrt (x+:y) = sqrt ((r+x)/2) +: sqrt ((r-x)/2) - when r = sqrt (x*x+y*y) end; +sqrt (x+:y) = sqrt r*(cos t +: sin t) + when r = sqrt (x*x+y*y); t = atan2 y x/2 end; sqrt (r<:t) = sqrt r <: t/2; /* Complex exponential and logarithms. */ @@ -215,9 +215,7 @@ acos z@(x+:y) | acos z@(r<:t) = -i*ln (z+sqrt (z*z-1)); atan z@(x+:y) | -atan z@(r<:t) = 0.0 +: inf if z==i; - = 0.0 +: -inf if z==-i; - = -i*0.5*ln ((1+i*z)/(1-i*z)); +atan z@(r<:t) = (ln (1+i*z)-ln (1-i*z))/(2*i); /* Complex hyperbolic functions. */ @@ -233,10 +231,11 @@ asinh z@(r<:t) = ln (z+sqrt (z*z+1)); acosh z@(x+:y) | acosh z@(r<:t) = ln (z+sqrt (z*z-1)); +// Alternative definition (Kahan). +// acosh z@(x+:y) | +// acosh z@(r<:t) = 2*ln (sqrt ((z+1)/2)+sqrt ((z-1)/2)); atanh z@(x+:y) | -atanh z@(r<:t) = inf +: 0.0 if z==1; - = -inf +: 0.0 if z==-1; - = ln ((1+z)/(1-z))/2; +atanh z@(r<:t) = (ln (1+z)-ln (1-z))/2; /* Complex arithmetic. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-22 20:24:39
|
Revision: 575 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=575&view=rev Author: agraef Date: 2008-08-22 20:24:48 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Remove all special case rules for the real -> complex cases, so that real functions always return real results now. Modified Paths: -------------- pure/trunk/lib/math.pure pure/trunk/lib/primitives.pure pure/trunk/test/test020.log Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-22 16:34:32 UTC (rev 574) +++ pure/trunk/lib/math.pure 2008-08-22 20:24:48 UTC (rev 575) @@ -26,17 +26,16 @@ /* The sqrt function. */ -extern double sqrt(double) = c_sqrt; +extern double sqrt(double); -sqrt x::double = c_sqrt x if x>=0 || nanp x; sqrt x::int | sqrt x::bigint = sqrt (double x); /* Exponential function and logarithms. */ extern double exp(double), double log(double) = c_log; -ln x::double = c_log x if x>=0.0 || nanp x; -log x::double = c_log x/c_log 10.0 if x>=0.0 || nanp x; +ln x::double = c_log x; +log x::double = c_log x/c_log 10.0; exp x::int | exp x::bigint = exp (double x); ln x::int | ln x::bigint = ln (double x); @@ -75,8 +74,8 @@ extern double __asinh(double), double __acosh(double), double __atanh(double); asinh x::double = __asinh x; -acosh x::double = __acosh x if x>=1.0 || nanp x; -atanh x::double = __atanh x if abs x<=1.0 || nanp x; +acosh x::double = __acosh x; +atanh x::double = __atanh x; sinh x::int | sinh x::bigint = sinh (double x); cosh x::int | cosh x::bigint = cosh (double x); @@ -188,9 +187,6 @@ when r = sqrt (x*x+y*y) end; sqrt (r<:t) = sqrt r <: t/2; -// Complex square roots of negative reals. -sqrt x::double = 0.0 +: sqrt (-x) if x<0; - /* Complex exponential and logarithms. */ exp (x+:y) = exp x * (cos y +: sin y); @@ -202,10 +198,6 @@ log z@(x+:y) | log z@(r<:t) = ln z / ln 10; -// Complex logarithms of negative reals. -ln x::double = ln (abs x) +: arg x if x<0; -log x::double = ln x / ln 10 if x<0; - /* Complex trig functions. */ sin (x+:y) = sin x*cosh y +: cos x*sinh y; @@ -246,10 +238,6 @@ = -inf +: 0.0 if z==-1; = ln ((1+z)/(1-z))/2; -// These inverse hyperbolic trigs have complex results for some reals. -acosh x::double = acosh (x+:0); -atanh x::double = atanh (x+:0); - /* Complex arithmetic. */ -(x+:y) = -x +: -y; @@ -319,9 +307,6 @@ (r1<:t1)^x2 = r1^x2 <: t1*x2; x1^z2@(r2<:t2) = (x1<:0) ^ z2; -// Complex powers of negative reals. -x1::double^x2::double = exp (ln x1*x2) if x1<0; - /* Equality. */ (x1+:y1) == (x2+:y2) = x1==x2 && y1==y2; Modified: pure/trunk/lib/primitives.pure =================================================================== --- pure/trunk/lib/primitives.pure 2008-08-22 16:34:32 UTC (rev 574) +++ pure/trunk/lib/primitives.pure 2008-08-22 20:24:48 UTC (rev 575) @@ -350,13 +350,11 @@ pow x::bigint y::int = bigint_pow x y if y>=0; /* The ^ operator. Computes inexact powers for any combination of int, bigint - and double operands. The result is always a double. Note that x may be - negative only if y is integer, but see math.pure which deals with the - general case x<0 using complex numbers. */ + and double operands. The result is always a double. */ extern double pow(double, double) = c_pow; -x::double^y::double = c_pow x y if x>=0 || frac y==0.0 || nanp x || nanp y; +x::double^y::double = c_pow x y; x::int^y::int | x::bigint^y::bigint | x::int^y::bigint | @@ -364,8 +362,7 @@ x::double^y::int | x::double^y::bigint = c_pow x (double y); x::int^y::double | -x::bigint^y::double = c_pow (double x) y if x>=0 || frac y==0.0 || nanp y; - = double x^y otherwise; +x::bigint^y::double = c_pow (double x) y; /* Pointer arithmetic. We do this using bigints, so that the code is portable to 64 bit systems. */ Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-22 16:34:32 UTC (rev 574) +++ pure/trunk/test/test020.log 2008-08-22 20:24:48 UTC (rev 575) @@ -184,13 +184,13 @@ } *** UNARY *** sqrt,1,1.00 -sqrt,-1,0.00+:1.00 +sqrt,-1,nan sqrt,0,0.00 sqrt,0.00,0.00 sqrt,1.20,1.10 -sqrt,-1.20,0.00+:1.10 +sqrt,-1.20,nan sqrt,1L%3L,0.577 -sqrt,(-1L)%4L,0.00+:0.500 +sqrt,(-1L)%4L,nan sqrt,1+:2,1.27+:0.786 sqrt,-1+:2,0.786+:1.27 sqrt,1+:-2,1.27+:0.786 @@ -204,7 +204,7 @@ sqrt,3.10<:2.50,1.76<:1.25 sqrt,2L%3L<:2,0.816<:1.00 sqrt,1L%2L<:3L%4L,0.707<:0.375 -sqrt,-inf,0.00+:inf +sqrt,-inf,nan sqrt,nan,nan sin,1,0.841 sin,-1,-0.841 @@ -276,13 +276,13 @@ tan,-inf,nan tan,nan,nan ln,1,0.00 -ln,-1,0.00+:3.14 +ln,-1,nan ln,0,-inf ln,0.00,-inf ln,1.20,0.182 -ln,-1.20,0.182+:3.14 +ln,-1.20,nan ln,1L%3L,-1.10 -ln,(-1L)%4L,-1.39+:3.14 +ln,(-1L)%4L,nan ln,1+:2,0.805+:1.11 ln,-1+:2,0.805+:2.03 ln,1+:-2,0.805+:-1.11 @@ -296,16 +296,16 @@ ln,3.10<:2.50,2.74<:1.15 ln,2L%3L<:2,2.04<:1.77 ln,1L%2L<:3L%4L,1.02<:2.32 -ln,-inf,inf+:3.14 +ln,-inf,nan ln,nan,nan log,1,0.00 -log,-1,0.00+:1.36 +log,-1,nan log,0,-inf log,0.00,-inf log,1.20,0.0792 -log,-1.20,0.0792+:1.36 +log,-1.20,nan log,1L%3L,-0.477 -log,(-1L)%4L,-0.602+:1.36 +log,(-1L)%4L,nan log,1+:2,0.349+:0.481 log,-1+:2,0.349+:0.884 log,1+:-2,0.349+:-0.481 @@ -319,7 +319,7 @@ log,3.10<:2.50,1.19<:1.15 log,2L%3L<:2,0.886<:1.77 log,1L%2L<:3L%4L,0.444<:2.32 -log,-inf,inf+:1.36 +log,-inf,nan log,nan,nan exp,1,2.72 exp,-1,0.368 @@ -506,13 +506,13 @@ asinh,-inf,-inf asinh,nan,nan acosh,1,0.00 -acosh,-1,0.00+:3.14 -acosh,0,0.00+:1.57 -acosh,0.00,0.00+:1.57 +acosh,-1,nan +acosh,0,nan +acosh,0.00,nan acosh,1.20,0.622 -acosh,-1.20,-0.622+:3.14 -acosh,1L%3L,0.00+:1.23 -acosh,(-1L)%4L,0.00+:1.82 +acosh,-1.20,nan +acosh,1L%3L,nan +acosh,(-1L)%4L,nan acosh,1+:2,1.53+:1.14 acosh,-1+:2,1.43+:1.59 acosh,1+:-2,0.653+:0.103 @@ -526,14 +526,14 @@ acosh,3.10<:2.50,1.34+:1.60 acosh,2L%3L<:2,0.563+:1.65 acosh,1L%2L<:3L%4L,0.355+:1.22 -acosh,-inf,nan+:nan +acosh,-inf,nan acosh,nan,nan atanh,1,inf atanh,-1,-inf atanh,0,0.00 atanh,0.00,0.00 -atanh,1.20,1.20+:-1.57 -atanh,-1.20,-1.20+:1.57 +atanh,1.20,nan +atanh,-1.20,nan atanh,1L%3L,0.347 atanh,(-1L)%4L,-0.255 atanh,1+:2,0.173+:1.18 @@ -549,7 +549,7 @@ atanh,3.10<:2.50,-0.254+:1.37 atanh,2L%3L<:2,-0.202+:0.571 atanh,1L%2L<:3L%4L,0.335+:0.369 -atanh,-inf,nan+:nan +atanh,-inf,nan atanh,nan,nan abs,1,1 abs,-1,1 @@ -3155,10 +3155,10 @@ (^),-1,-1,-1.00 (^),-1,0,1.00 (^),-1,0.00,1.00 -(^),-1,1.20,-0.809+:-0.588 -(^),-1,-1.20,-0.809+:0.588 -(^),-1,1L%3L,0.500+:0.866 -(^),-1,(-1L)%4L,0.707+:-0.707 +(^),-1,1.20,nan +(^),-1,-1.20,nan +(^),-1,1L%3L,nan +(^),-1,(-1L)%4L,nan (^),-1,1+:2,-0.00187+:2.29e-19 (^),-1,-1+:2,-0.00187+:-2.29e-19 (^),-1,1+:-2,-535.+:6.56e-14 @@ -3172,7 +3172,7 @@ (^),-1,3.10<:2.50,0.000152+:-0.00294 (^),-1,2L%3L<:2,0.0958+:-0.114 (^),-1,1L%2L<:3L%4L,0.140+:0.313 -(^),-1,-inf,nan+:nan +(^),-1,-inf,1.00 (^),-1,nan,nan (^),0,1,0.00 (^),0,-1,inf @@ -3247,10 +3247,10 @@ (^),-1.20,-1,-0.833 (^),-1.20,0,1.00 (^),-1.20,0.00,1.00 -(^),-1.20,1.20,-1.01+:-0.732 -(^),-1.20,-1.20,-0.650+:0.472 -(^),-1.20,1L%3L,0.531+:0.920 -(^),-1.20,(-1L)%4L,0.676+:-0.676 +(^),-1.20,1.20,nan +(^),-1.20,-1.20,nan +(^),-1.20,1L%3L,nan +(^),-1.20,(-1L)%4L,nan (^),-1.20,1+:2,-0.00209+:-0.000799 (^),-1.20,-1+:2,-0.00145+:-0.000555 (^),-1.20,1+:-2,-600.+:229. @@ -3264,7 +3264,7 @@ (^),-1.20,3.10<:2.50,0.000711+:-0.00173 (^),-1.20,2L%3L<:2,0.103+:-0.0976 (^),-1.20,1L%2L<:3L%4L,0.129+:0.343 -(^),-1.20,-inf,nan+:nan +(^),-1.20,-inf,0.00 (^),-1.20,nan,nan (^),1L%3L,1,0.333 (^),1L%3L,-1,3.00 @@ -3293,10 +3293,10 @@ (^),(-1L)%4L,-1,-4.00 (^),(-1L)%4L,0,1.00 (^),(-1L)%4L,0.00,1.00 -(^),(-1L)%4L,1.20,-0.153+:-0.111 -(^),(-1L)%4L,-1.20,-4.27+:3.10 -(^),(-1L)%4L,1L%3L,0.315+:0.546 -(^),(-1L)%4L,(-1L)%4L,1.00+:-1.00 +(^),(-1L)%4L,1.20,nan +(^),(-1L)%4L,-1.20,nan +(^),(-1L)%4L,1L%3L,nan +(^),(-1L)%4L,(-1L)%4L,nan (^),(-1L)%4L,1+:2,0.000435+:0.000168 (^),(-1L)%4L,-1+:2,0.00697+:0.00269 (^),(-1L)%4L,1+:-2,125.+:-48.3 @@ -3310,7 +3310,7 @@ (^),(-1L)%4L,3.10<:2.50,-0.0536+:0.0748 (^),(-1L)%4L,2L%3L<:2,-0.0308+:-0.217 (^),(-1L)%4L,1L%2L<:3L%4L,0.161+:0.129 -(^),(-1L)%4L,-inf,nan+:nan +(^),(-1L)%4L,-inf,inf (^),(-1L)%4L,nan,nan (^),1+:2,1,1.00+:2.00 (^),1+:2,-1,0.200+:-0.400 @@ -3615,10 +3615,10 @@ (^),-inf,-1,-0.00 (^),-inf,0,1.00 (^),-inf,0.00,1.00 -(^),-inf,1.20,-inf+:-inf -(^),-inf,-1.20,-0.00+:0.00 -(^),-inf,1L%3L,inf+:inf -(^),-inf,(-1L)%4L,0.00+:-0.00 +(^),-inf,1.20,inf +(^),-inf,-1.20,0.00 +(^),-inf,1L%3L,inf +(^),-inf,(-1L)%4L,0.00 (^),-inf,1+:2,nan+:nan (^),-inf,-1+:2,nan+:nan (^),-inf,1+:-2,nan+:nan @@ -3632,7 +3632,7 @@ (^),-inf,3.10<:2.50,nan+:nan (^),-inf,2L%3L<:2,nan+:nan (^),-inf,1L%2L<:3L%4L,nan+:nan -(^),-inf,-inf,nan+:nan +(^),-inf,-inf,0.00 (^),-inf,nan,nan (^),nan,1,nan (^),nan,-1,nan This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-22 16:34:23
|
Revision: 574 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=574&view=rev Author: agraef Date: 2008-08-22 16:34:32 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Comment change. Modified Paths: -------------- pure/trunk/test/test014.pure Modified: pure/trunk/test/test014.pure =================================================================== --- pure/trunk/test/test014.pure 2008-08-22 12:45:47 UTC (rev 573) +++ pure/trunk/test/test014.pure 2008-08-22 16:34:32 UTC (rev 574) @@ -46,7 +46,6 @@ frac (-22%7); // Rationalizing doubles. -// FIXME: This should return 3%8, but that doesn't work yet. rational (3/8); // Complex rational arithmetic. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ag...@us...> - 2008-08-22 12:45:37
|
Revision: 573 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=573&view=rev Author: agraef Date: 2008-08-22 12:45:47 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Round results to 3 digits, to prevent failing tests due to small rounding discrepancies. Modified Paths: -------------- pure/trunk/test/test020.log pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-22 12:39:25 UTC (rev 572) +++ pure/trunk/test/test020.log 2008-08-22 12:45:47 UTC (rev 573) @@ -43,7 +43,7 @@ check _/*0:001*/ _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; -show x/*0:1*/::double = sprintf "%#0.4g" x/*0:1*/; +show x/*0:1*/::double = sprintf "%#0.3g" x/*0:1*/; show (x/*0:101*/+:y/*0:11*/) = show x/*0:101*/+"+:"+show y/*0:11*/; show (x/*0:101*/<:y/*0:11*/) = show x/*0:101*/+"<:"+show y/*0:11*/; show x/*0:1*/ = str x/*0:1*/; @@ -146,7 +146,7 @@ state 12: #0 #1 } { - rule #0: show x::double = sprintf "%#0.4g" x + rule #0: show x::double = sprintf "%#0.3g" x rule #1: show (x+:y) = show x+"+:"+show y rule #2: show (x<:y) = show x+"<:"+show y rule #3: show x = str x @@ -183,393 +183,393 @@ state 15: #2 #3 } *** UNARY *** -sqrt,1,1.000 -sqrt,-1,0.000+:1.000 -sqrt,0,0.000 -sqrt,0.000,0.000 -sqrt,1.200,1.095 -sqrt,-1.200,0.000+:1.095 -sqrt,1L%3L,0.5774 -sqrt,(-1L)%4L,0.000+:0.5000 -sqrt,1+:2,1.272+:0.7862 -sqrt,-1+:2,0.7862+:1.272 -sqrt,1+:-2,1.272+:0.7862 -sqrt,-1.200+:4.300,1.278+:1.683 -sqrt,1.200+:-4.300,1.683+:1.278 -sqrt,1L%2L+:1,0.8995+:0.5559 -sqrt,1L%2L+:3L%4L,0.8371+:0.4480 -sqrt,3<:1,1.732<:0.5000 -sqrt,3<:-2.142,1.732<:-1.071 -sqrt,3.000<:-3,1.732<:-1.500 -sqrt,3.100<:2.500,1.761<:1.250 -sqrt,2L%3L<:2,0.8165<:1.000 -sqrt,1L%2L<:3L%4L,0.7071<:0.3750 -sqrt,-inf,0.000+:inf +sqrt,1,1.00 +sqrt,-1,0.00+:1.00 +sqrt,0,0.00 +sqrt,0.00,0.00 +sqrt,1.20,1.10 +sqrt,-1.20,0.00+:1.10 +sqrt,1L%3L,0.577 +sqrt,(-1L)%4L,0.00+:0.500 +sqrt,1+:2,1.27+:0.786 +sqrt,-1+:2,0.786+:1.27 +sqrt,1+:-2,1.27+:0.786 +sqrt,-1.20+:4.30,1.28+:1.68 +sqrt,1.20+:-4.30,1.68+:1.28 +sqrt,1L%2L+:1,0.899+:0.556 +sqrt,1L%2L+:3L%4L,0.837+:0.448 +sqrt,3<:1,1.73<:0.500 +sqrt,3<:-2.14,1.73<:-1.07 +sqrt,3.00<:-3,1.73<:-1.50 +sqrt,3.10<:2.50,1.76<:1.25 +sqrt,2L%3L<:2,0.816<:1.00 +sqrt,1L%2L<:3L%4L,0.707<:0.375 +sqrt,-inf,0.00+:inf sqrt,nan,nan -sin,1,0.8415 -sin,-1,-0.8415 -sin,0,0.000 -sin,0.000,0.000 -sin,1.200,0.9320 -sin,-1.200,-0.9320 -sin,1L%3L,0.3272 -sin,(-1L)%4L,-0.2474 -sin,1+:2,3.166+:1.960 -sin,-1+:2,-3.166+:1.960 -sin,1+:-2,3.166+:-1.960 -sin,-1.200+:4.300,-34.35+:13.35 -sin,1.200+:-4.300,34.35+:-13.35 -sin,1L%2L+:1,0.7398+:1.031 -sin,1L%2L+:3L%4L,0.6207+:0.7217 -sin,3<:1,6.282<:-0.04947 -sin,3<:-2.142,6.282<:3.092 -sin,3.000<:-3,0.4684<:1.980 -sin,3.100<:2.500,3.178<:-2.253 -sin,2L%3L<:2,0.6998<:2.055 -sin,1L%2L<:3L%4L,0.4987<:0.7084 +sin,1,0.841 +sin,-1,-0.841 +sin,0,0.00 +sin,0.00,0.00 +sin,1.20,0.932 +sin,-1.20,-0.932 +sin,1L%3L,0.327 +sin,(-1L)%4L,-0.247 +sin,1+:2,3.17+:1.96 +sin,-1+:2,-3.17+:1.96 +sin,1+:-2,3.17+:-1.96 +sin,-1.20+:4.30,-34.4+:13.4 +sin,1.20+:-4.30,34.4+:-13.4 +sin,1L%2L+:1,0.740+:1.03 +sin,1L%2L+:3L%4L,0.621+:0.722 +sin,3<:1,6.28<:-0.0495 +sin,3<:-2.14,6.28<:3.09 +sin,3.00<:-3,0.468<:1.98 +sin,3.10<:2.50,3.18<:-2.25 +sin,2L%3L<:2,0.700<:2.05 +sin,1L%2L<:3L%4L,0.499<:0.708 sin,-inf,nan sin,nan,nan -cos,1,0.5403 -cos,-1,0.5403 -cos,0,1.000 -cos,0.000,1.000 -cos,1.200,0.3624 -cos,-1.200,0.3624 -cos,1L%3L,0.9450 -cos,(-1L)%4L,0.9689 -cos,1+:2,2.033+:-3.052 -cos,-1+:2,2.033+:3.052 -cos,1+:-2,2.033+:3.052 -cos,-1.200+:4.300,13.36+:34.34 -cos,1.200+:-4.300,13.36+:34.34 -cos,1L%2L+:1,1.354+:-0.5634 -cos,1L%2L+:3L%4L,1.136+:-0.3942 -cos,3<:1,6.202<:-1.622 -cos,3<:-2.142,6.202<:-1.622 -cos,3.000<:-3,1.078<:-3.072 -cos,3.100<:2.500,3.217<:2.507 -cos,2L%3L<:2,1.157<:0.1530 -cos,1L%2L<:3L%4L,0.9964<:-0.1251 +cos,1,0.540 +cos,-1,0.540 +cos,0,1.00 +cos,0.00,1.00 +cos,1.20,0.362 +cos,-1.20,0.362 +cos,1L%3L,0.945 +cos,(-1L)%4L,0.969 +cos,1+:2,2.03+:-3.05 +cos,-1+:2,2.03+:3.05 +cos,1+:-2,2.03+:3.05 +cos,-1.20+:4.30,13.4+:34.3 +cos,1.20+:-4.30,13.4+:34.3 +cos,1L%2L+:1,1.35+:-0.563 +cos,1L%2L+:3L%4L,1.14+:-0.394 +cos,3<:1,6.20<:-1.62 +cos,3<:-2.14,6.20<:-1.62 +cos,3.00<:-3,1.08<:-3.07 +cos,3.10<:2.50,3.22<:2.51 +cos,2L%3L<:2,1.16<:0.153 +cos,1L%2L<:3L%4L,0.996<:-0.125 cos,-inf,nan cos,nan,nan -tan,1,1.557 -tan,-1,-1.557 -tan,0,0.000 -tan,0.000,0.000 -tan,1.200,2.572 -tan,-1.200,-2.572 -tan,1L%3L,0.3463 -tan,(-1L)%4L,-0.2553 -tan,1+:2,0.03381+:1.015 -tan,-1+:2,-0.03381+:1.015 -tan,1+:-2,0.03381+:-1.015 -tan,-1.200+:4.300,-0.0002488+:1.000 -tan,1.200+:-4.300,0.0002488+:-1.000 -tan,1L%2L+:1,0.1956+:0.8430 -tan,1L%2L+:3L%4L,0.2909+:0.7361 -tan,3<:1,1.013<:1.572 -tan,3<:-2.142,1.013<:-1.570 -tan,3.000<:-3,0.4347<:-1.231 -tan,3.100<:2.500,0.9878<:1.523 -tan,2L%3L<:2,0.6046<:1.902 -tan,1L%2L<:3L%4L,0.5005<:0.8335 +tan,1,1.56 +tan,-1,-1.56 +tan,0,0.00 +tan,0.00,0.00 +tan,1.20,2.57 +tan,-1.20,-2.57 +tan,1L%3L,0.346 +tan,(-1L)%4L,-0.255 +tan,1+:2,0.0338+:1.01 +tan,-1+:2,-0.0338+:1.01 +tan,1+:-2,0.0338+:-1.01 +tan,-1.20+:4.30,-0.000249+:1.00 +tan,1.20+:-4.30,0.000249+:-1.00 +tan,1L%2L+:1,0.196+:0.843 +tan,1L%2L+:3L%4L,0.291+:0.736 +tan,3<:1,1.01<:1.57 +tan,3<:-2.14,1.01<:-1.57 +tan,3.00<:-3,0.435<:-1.23 +tan,3.10<:2.50,0.988<:1.52 +tan,2L%3L<:2,0.605<:1.90 +tan,1L%2L<:3L%4L,0.501<:0.833 tan,-inf,nan tan,nan,nan -ln,1,0.000 -ln,-1,0.000+:3.142 +ln,1,0.00 +ln,-1,0.00+:3.14 ln,0,-inf -ln,0.000,-inf -ln,1.200,0.1823 -ln,-1.200,0.1823+:3.142 -ln,1L%3L,-1.099 -ln,(-1L)%4L,-1.386+:3.142 -ln,1+:2,0.8047+:1.107 -ln,-1+:2,0.8047+:2.034 -ln,1+:-2,0.8047+:-1.107 -ln,-1.200+:4.300,1.496+:1.843 -ln,1.200+:-4.300,1.496+:-1.299 -ln,1L%2L+:1,0.1116+:1.107 -ln,1L%2L+:3L%4L,-0.1038+:0.9828 -ln,3<:1,1.486<:0.7384 -ln,3<:-2.142,2.407<:-1.097 -ln,3.000<:-3,3.195<:-1.220 -ln,3.100<:2.500,2.744<:1.146 -ln,2L%3L<:2,2.041<:1.771 -ln,1L%2L<:3L%4L,1.021<:2.317 -ln,-inf,inf+:3.142 +ln,0.00,-inf +ln,1.20,0.182 +ln,-1.20,0.182+:3.14 +ln,1L%3L,-1.10 +ln,(-1L)%4L,-1.39+:3.14 +ln,1+:2,0.805+:1.11 +ln,-1+:2,0.805+:2.03 +ln,1+:-2,0.805+:-1.11 +ln,-1.20+:4.30,1.50+:1.84 +ln,1.20+:-4.30,1.50+:-1.30 +ln,1L%2L+:1,0.112+:1.11 +ln,1L%2L+:3L%4L,-0.104+:0.983 +ln,3<:1,1.49<:0.738 +ln,3<:-2.14,2.41<:-1.10 +ln,3.00<:-3,3.19<:-1.22 +ln,3.10<:2.50,2.74<:1.15 +ln,2L%3L<:2,2.04<:1.77 +ln,1L%2L<:3L%4L,1.02<:2.32 +ln,-inf,inf+:3.14 ln,nan,nan -log,1,0.000 -log,-1,0.000+:1.364 +log,1,0.00 +log,-1,0.00+:1.36 log,0,-inf -log,0.000,-inf -log,1.200,0.07918 -log,-1.200,0.07918+:1.364 -log,1L%3L,-0.4771 -log,(-1L)%4L,-0.6021+:1.364 -log,1+:2,0.3495+:0.4808 -log,-1+:2,0.3495+:0.8835 -log,1+:-2,0.3495+:-0.4808 -log,-1.200+:4.300,0.6498+:0.8004 -log,1.200+:-4.300,0.6498+:-0.5640 -log,1L%2L+:1,0.04846+:0.4808 -log,1L%2L+:3L%4L,-0.04509+:0.4268 -log,3<:1,0.6452<:0.7384 -log,3<:-2.142,1.045<:-1.097 -log,3.000<:-3,1.387<:-1.220 -log,3.100<:2.500,1.192<:1.146 -log,2L%3L<:2,0.8863<:1.771 -log,1L%2L<:3L%4L,0.4435<:2.317 -log,-inf,inf+:1.364 +log,0.00,-inf +log,1.20,0.0792 +log,-1.20,0.0792+:1.36 +log,1L%3L,-0.477 +log,(-1L)%4L,-0.602+:1.36 +log,1+:2,0.349+:0.481 +log,-1+:2,0.349+:0.884 +log,1+:-2,0.349+:-0.481 +log,-1.20+:4.30,0.650+:0.800 +log,1.20+:-4.30,0.650+:-0.564 +log,1L%2L+:1,0.0485+:0.481 +log,1L%2L+:3L%4L,-0.0451+:0.427 +log,3<:1,0.645<:0.738 +log,3<:-2.14,1.05<:-1.10 +log,3.00<:-3,1.39<:-1.22 +log,3.10<:2.50,1.19<:1.15 +log,2L%3L<:2,0.886<:1.77 +log,1L%2L<:3L%4L,0.444<:2.32 +log,-inf,inf+:1.36 log,nan,nan -exp,1,2.718 -exp,-1,0.3679 -exp,0,1.000 -exp,0.000,1.000 -exp,1.200,3.320 -exp,-1.200,0.3012 -exp,1L%3L,1.396 -exp,(-1L)%4L,0.7788 -exp,1+:2,-1.131+:2.472 -exp,-1+:2,-0.1531+:0.3345 -exp,1+:-2,-1.131+:-2.472 -exp,-1.200+:4.300,-0.1207+:-0.2759 -exp,1.200+:-4.300,-1.331+:3.042 -exp,1L%2L+:1,0.8908+:1.387 -exp,1L%2L+:3L%4L,1.206+:1.124 -exp,3<:1,5.058<:2.524 -exp,3<:-2.142,0.1977<:-2.524 -exp,3.000<:-3,0.05130<:-0.4234 -exp,3.100<:2.500,0.08345<:1.855 -exp,2L%3L<:2,0.7577<:0.6062 -exp,1L%2L<:3L%4L,1.442<:0.3408 -exp,-inf,0.000 +exp,1,2.72 +exp,-1,0.368 +exp,0,1.00 +exp,0.00,1.00 +exp,1.20,3.32 +exp,-1.20,0.301 +exp,1L%3L,1.40 +exp,(-1L)%4L,0.779 +exp,1+:2,-1.13+:2.47 +exp,-1+:2,-0.153+:0.335 +exp,1+:-2,-1.13+:-2.47 +exp,-1.20+:4.30,-0.121+:-0.276 +exp,1.20+:-4.30,-1.33+:3.04 +exp,1L%2L+:1,0.891+:1.39 +exp,1L%2L+:3L%4L,1.21+:1.12 +exp,3<:1,5.06<:2.52 +exp,3<:-2.14,0.198<:-2.52 +exp,3.00<:-3,0.0513<:-0.423 +exp,3.10<:2.50,0.0834<:1.86 +exp,2L%3L<:2,0.758<:0.606 +exp,1L%2L<:3L%4L,1.44<:0.341 +exp,-inf,0.00 exp,nan,nan -atan,1,0.7854 -atan,-1,-0.7854 -atan,0,0.000 -atan,0.000,0.000 -atan,1.200,0.8761 -atan,-1.200,-0.8761 -atan,1L%3L,0.3218 -atan,(-1L)%4L,-0.2450 -atan,1+:2,1.339+:0.4024 -atan,-1+:2,-1.339+:0.4024 -atan,1+:-2,1.339+:-0.4024 -atan,-1.200+:4.300,-1.508+:0.2183 -atan,1.200+:-4.300,1.508+:-0.2183 -atan,1L%2L+:1,0.9079+:0.7083 -atan,1L%2L+:3L%4L,0.6927+:0.5902 -atan,3<:1,1.378+:0.2779 -atan,3<:-2.142,-1.378+:-0.2779 -atan,3.000<:-3,-1.251+:-0.04244 -atan,3.100<:2.500,-1.309+:0.1826 -atan,2L%3L<:2,-0.3924+:0.6095 -atan,1L%2L<:3L%4L,0.3865+:0.3058 -atan,-inf,-1.571 +atan,1,0.785 +atan,-1,-0.785 +atan,0,0.00 +atan,0.00,0.00 +atan,1.20,0.876 +atan,-1.20,-0.876 +atan,1L%3L,0.322 +atan,(-1L)%4L,-0.245 +atan,1+:2,1.34+:0.402 +atan,-1+:2,-1.34+:0.402 +atan,1+:-2,1.34+:-0.402 +atan,-1.20+:4.30,-1.51+:0.218 +atan,1.20+:-4.30,1.51+:-0.218 +atan,1L%2L+:1,0.908+:0.708 +atan,1L%2L+:3L%4L,0.693+:0.590 +atan,3<:1,1.38+:0.278 +atan,3<:-2.14,-1.38+:-0.278 +atan,3.00<:-3,-1.25+:-0.0424 +atan,3.10<:2.50,-1.31+:0.183 +atan,2L%3L<:2,-0.392+:0.609 +atan,1L%2L<:3L%4L,0.387+:0.306 +atan,-inf,-1.57 atan,nan,nan -asin,1,1.571 -asin,-1,-1.571 -asin,0,0.000 -asin,0.000,0.000 -asin,1.200,nan -asin,-1.200,nan -asin,1L%3L,0.3398 -asin,(-1L)%4L,-0.2527 -asin,1+:2,1.468+:-0.6525 -asin,-1+:2,-0.4271+:1.529 -asin,1+:-2,0.4271+:-1.529 -asin,-1.200+:4.300,-0.2659+:2.200 -asin,1.200+:-4.300,0.2659+:-2.200 -asin,1L%2L+:1,1.164+:0.06071 -asin,1L%2L+:3L%4L,1.078+:0.07700 -asin,3<:1,1.526+:-1.150 -asin,3<:-2.142,-0.01648+:-1.647 -asin,3.000<:-3,-0.1918+:0.1181 -asin,3.100<:2.500,-0.9037+:1.818 -asin,2L%3L<:2,-0.2376+:0.5891 -asin,1L%2L<:3L%4L,0.6406+:0.1974 +asin,1,1.57 +asin,-1,-1.57 +asin,0,0.00 +asin,0.00,0.00 +asin,1.20,nan +asin,-1.20,nan +asin,1L%3L,0.340 +asin,(-1L)%4L,-0.253 +asin,1+:2,1.47+:-0.653 +asin,-1+:2,-0.427+:1.53 +asin,1+:-2,0.427+:-1.53 +asin,-1.20+:4.30,-0.266+:2.20 +asin,1.20+:-4.30,0.266+:-2.20 +asin,1L%2L+:1,1.16+:0.0607 +asin,1L%2L+:3L%4L,1.08+:0.0770 +asin,3<:1,1.53+:-1.15 +asin,3<:-2.14,-0.0165+:-1.65 +asin,3.00<:-3,-0.192+:0.118 +asin,3.10<:2.50,-0.904+:1.82 +asin,2L%3L<:2,-0.238+:0.589 +asin,1L%2L<:3L%4L,0.641+:0.197 asin,-inf,nan asin,nan,nan -acos,1,0.000 -acos,-1,3.142 -acos,0,1.571 -acos,0.000,1.571 -acos,1.200,nan -acos,-1.200,nan -acos,1L%3L,1.231 -acos,(-1L)%4L,1.823 -acos,1+:2,1.144+:-1.529 -acos,-1+:2,1.592+:-1.435 -acos,1+:-2,0.1030+:-0.6525 -acos,-1.200+:4.300,1.574+:-2.164 -acos,1.200+:-4.300,0.04507+:-0.8643 -acos,1L%2L+:1,1.221+:-0.9261 -acos,1L%2L+:3L%4L,1.173+:-0.7433 -acos,3<:1,1.024+:-1.804 -acos,3<:-2.142,2.117+:1.804 -acos,3.000<:-3,2.992+:1.764 -acos,3.100<:2.500,1.604+:-1.338 -acos,2L%3L<:2,1.645+:-0.5633 -acos,1L%2L<:3L%4L,1.220+:-0.3554 +acos,1,0.00 +acos,-1,3.14 +acos,0,1.57 +acos,0.00,1.57 +acos,1.20,nan +acos,-1.20,nan +acos,1L%3L,1.23 +acos,(-1L)%4L,1.82 +acos,1+:2,1.14+:-1.53 +acos,-1+:2,1.59+:-1.43 +acos,1+:-2,0.103+:-0.653 +acos,-1.20+:4.30,1.57+:-2.16 +acos,1.20+:-4.30,0.0451+:-0.864 +acos,1L%2L+:1,1.22+:-0.926 +acos,1L%2L+:3L%4L,1.17+:-0.743 +acos,3<:1,1.02+:-1.80 +acos,3<:-2.14,2.12+:1.80 +acos,3.00<:-3,2.99+:1.76 +acos,3.10<:2.50,1.60+:-1.34 +acos,2L%3L<:2,1.65+:-0.563 +acos,1L%2L<:3L%4L,1.22+:-0.355 acos,-inf,nan acos,nan,nan -sinh,1,1.175 -sinh,-1,-1.175 -sinh,0,0.000 -sinh,0.000,0.000 -sinh,1.200,1.509 -sinh,-1.200,-1.509 -sinh,1L%3L,0.3395 -sinh,(-1L)%4L,-0.2526 -sinh,1+:2,-0.4891+:1.403 -sinh,-1+:2,0.4891+:1.403 -sinh,1+:-2,-0.4891+:-1.403 -sinh,-1.200+:4.300,0.6050+:-1.659 -sinh,1.200+:-4.300,-0.6050+:1.659 -sinh,1L%2L+:1,0.2815+:0.9489 -sinh,1L%2L+:3L%4L,0.3813+:0.7686 -sinh,3<:1,2.498<:2.487 -sinh,3<:-2.142,2.498<:-0.6545 -sinh,3.000<:-3,9.729<:-2.716 -sinh,3.100<:2.500,6.027<:1.290 -sinh,2L%3L<:2,0.6353<:1.943 -sinh,1L%2L<:3L%4L,0.5016<:0.7915 +sinh,1,1.18 +sinh,-1,-1.18 +sinh,0,0.00 +sinh,0.00,0.00 +sinh,1.20,1.51 +sinh,-1.20,-1.51 +sinh,1L%3L,0.340 +sinh,(-1L)%4L,-0.253 +sinh,1+:2,-0.489+:1.40 +sinh,-1+:2,0.489+:1.40 +sinh,1+:-2,-0.489+:-1.40 +sinh,-1.20+:4.30,0.605+:-1.66 +sinh,1.20+:-4.30,-0.605+:1.66 +sinh,1L%2L+:1,0.282+:0.949 +sinh,1L%2L+:3L%4L,0.381+:0.769 +sinh,3<:1,2.50<:2.49 +sinh,3<:-2.14,2.50<:-0.655 +sinh,3.00<:-3,9.73<:-2.72 +sinh,3.10<:2.50,6.03<:1.29 +sinh,2L%3L<:2,0.635<:1.94 +sinh,1L%2L<:3L%4L,0.502<:0.792 sinh,-inf,-inf sinh,nan,nan -cosh,1,1.543 -cosh,-1,1.543 -cosh,0,1.000 -cosh,0.000,1.000 -cosh,1.200,1.811 -cosh,-1.200,1.811 -cosh,1L%3L,1.056 -cosh,(-1L)%4L,1.031 -cosh,1+:2,-0.6421+:1.069 -cosh,-1+:2,-0.6421+:-1.069 -cosh,1+:-2,-0.6421+:-1.069 -cosh,-1.200+:4.300,-0.7257+:1.383 -cosh,1.200+:-4.300,-0.7257+:1.383 -cosh,1L%2L+:1,0.6093+:0.4385 -cosh,1L%2L+:3L%4L,0.8251+:0.3552 -cosh,3<:1,2.563<:2.561 -cosh,3<:-2.142,2.563<:2.561 -cosh,3.000<:-3,9.763<:0.4214 -cosh,3.100<:2.500,5.957<:-1.859 -cosh,2L%3L<:2,0.8685<:-0.1854 -cosh,1L%2L<:3L%4L,1.014<:0.1236 +cosh,1,1.54 +cosh,-1,1.54 +cosh,0,1.00 +cosh,0.00,1.00 +cosh,1.20,1.81 +cosh,-1.20,1.81 +cosh,1L%3L,1.06 +cosh,(-1L)%4L,1.03 +cosh,1+:2,-0.642+:1.07 +cosh,-1+:2,-0.642+:-1.07 +cosh,1+:-2,-0.642+:-1.07 +cosh,-1.20+:4.30,-0.726+:1.38 +cosh,1.20+:-4.30,-0.726+:1.38 +cosh,1L%2L+:1,0.609+:0.438 +cosh,1L%2L+:3L%4L,0.825+:0.355 +cosh,3<:1,2.56<:2.56 +cosh,3<:-2.14,2.56<:2.56 +cosh,3.00<:-3,9.76<:0.421 +cosh,3.10<:2.50,5.96<:-1.86 +cosh,2L%3L<:2,0.869<:-0.185 +cosh,1L%2L<:3L%4L,1.01<:0.124 cosh,-inf,inf cosh,nan,nan -tanh,1,0.7616 -tanh,-1,-0.7616 -tanh,0,0.000 -tanh,0.000,0.000 -tanh,1.200,0.8337 -tanh,-1.200,-0.8337 -tanh,1L%3L,0.3215 -tanh,(-1L)%4L,-0.2449 -tanh,1+:2,1.167+:-0.2435 -tanh,-1+:2,-1.167+:-0.2435 -tanh,1+:-2,1.167+:0.2435 -tanh,-1.200+:4.300,-1.121+:0.1505 -tanh,1.200+:-4.300,1.121+:-0.1505 -tanh,1L%2L+:1,1.043+:0.8069 -tanh,1L%2L+:3L%4L,0.7282+:0.6181 -tanh,3<:1,0.9746<:-0.07378 -tanh,3<:-2.142,0.9746<:3.068 -tanh,3.000<:-3,0.9965<:-3.138 -tanh,3.100<:2.500,1.012<:-3.134 -tanh,2L%3L<:2,0.7314<:2.128 -tanh,1L%2L<:3L%4L,0.4947<:0.6679 -tanh,-inf,-1.000 +tanh,1,0.762 +tanh,-1,-0.762 +tanh,0,0.00 +tanh,0.00,0.00 +tanh,1.20,0.834 +tanh,-1.20,-0.834 +tanh,1L%3L,0.322 +tanh,(-1L)%4L,-0.245 +tanh,1+:2,1.17+:-0.243 +tanh,-1+:2,-1.17+:-0.243 +tanh,1+:-2,1.17+:0.243 +tanh,-1.20+:4.30,-1.12+:0.151 +tanh,1.20+:-4.30,1.12+:-0.151 +tanh,1L%2L+:1,1.04+:0.807 +tanh,1L%2L+:3L%4L,0.728+:0.618 +tanh,3<:1,0.975<:-0.0738 +tanh,3<:-2.14,0.975<:3.07 +tanh,3.00<:-3,0.997<:-3.14 +tanh,3.10<:2.50,1.01<:-3.13 +tanh,2L%3L<:2,0.731<:2.13 +tanh,1L%2L<:3L%4L,0.495<:0.668 +tanh,-inf,-1.00 tanh,nan,nan -asinh,1,0.8814 -asinh,-1,-0.8814 -asinh,0,0.000 -asinh,0.000,0.000 -asinh,1.200,1.016 -asinh,-1.200,-1.016 -asinh,1L%3L,0.3275 -asinh,(-1L)%4L,-0.2475 -asinh,1+:2,1.469+:1.063 -asinh,-1+:2,1.335+:1.541 -asinh,1+:-2,0.7520+:-0.09494 -asinh,-1.200+:4.300,2.139+:1.567 -asinh,1.200+:-4.300,0.8894+:-0.04474 -asinh,1L%2L+:1,0.7329+:0.8959 -asinh,1L%2L+:3L%4L,0.6063+:0.6822 -asinh,3<:1,1.781+:0.9739 -asinh,3<:-2.142,-1.781+:-0.9739 -asinh,3.000<:-3,-1.817+:-0.1344 -asinh,3.100<:2.500,1.287+:1.535 -asinh,2L%3L<:2,-0.007142+:0.9382 -asinh,1L%2L<:3L%4L,0.3769+:0.3236 +asinh,1,0.881 +asinh,-1,-0.881 +asinh,0,0.00 +asinh,0.00,0.00 +asinh,1.20,1.02 +asinh,-1.20,-1.02 +asinh,1L%3L,0.327 +asinh,(-1L)%4L,-0.247 +asinh,1+:2,1.47+:1.06 +asinh,-1+:2,1.34+:1.54 +asinh,1+:-2,0.752+:-0.0949 +asinh,-1.20+:4.30,2.14+:1.57 +asinh,1.20+:-4.30,0.889+:-0.0447 +asinh,1L%2L+:1,0.733+:0.896 +asinh,1L%2L+:3L%4L,0.606+:0.682 +asinh,3<:1,1.78+:0.974 +asinh,3<:-2.14,-1.78+:-0.974 +asinh,3.00<:-3,-1.82+:-0.134 +asinh,3.10<:2.50,1.29+:1.53 +asinh,2L%3L<:2,-0.00714+:0.938 +asinh,1L%2L<:3L%4L,0.377+:0.324 asinh,-inf,-inf asinh,nan,nan -acosh,1,0.000 -acosh,-1,0.000+:3.142 -acosh,0,0.000+:1.571 -acosh,0.000,0.000+:1.571 -acosh,1.200,0.6224 -acosh,-1.200,-0.6224+:3.142 -acosh,1L%3L,0.000+:1.231 -acosh,(-1L)%4L,0.000+:1.823 -acosh,1+:2,1.529+:1.144 -acosh,-1+:2,1.435+:1.592 -acosh,1+:-2,0.6525+:0.1030 -acosh,-1.200+:4.300,2.164+:1.574 -acosh,1.200+:-4.300,0.8643+:0.04507 -acosh,1L%2L+:1,0.9261+:1.221 -acosh,1L%2L+:3L%4L,0.7433+:1.173 -acosh,3<:1,1.804+:1.024 -acosh,3<:-2.142,-1.804+:2.117 -acosh,3.000<:-3,-1.764+:2.992 -acosh,3.100<:2.500,1.338+:1.604 -acosh,2L%3L<:2,0.5633+:1.645 -acosh,1L%2L<:3L%4L,0.3554+:1.220 +acosh,1,0.00 +acosh,-1,0.00+:3.14 +acosh,0,0.00+:1.57 +acosh,0.00,0.00+:1.57 +acosh,1.20,0.622 +acosh,-1.20,-0.622+:3.14 +acosh,1L%3L,0.00+:1.23 +acosh,(-1L)%4L,0.00+:1.82 +acosh,1+:2,1.53+:1.14 +acosh,-1+:2,1.43+:1.59 +acosh,1+:-2,0.653+:0.103 +acosh,-1.20+:4.30,2.16+:1.57 +acosh,1.20+:-4.30,0.864+:0.0451 +acosh,1L%2L+:1,0.926+:1.22 +acosh,1L%2L+:3L%4L,0.743+:1.17 +acosh,3<:1,1.80+:1.02 +acosh,3<:-2.14,-1.80+:2.12 +acosh,3.00<:-3,-1.76+:2.99 +acosh,3.10<:2.50,1.34+:1.60 +acosh,2L%3L<:2,0.563+:1.65 +acosh,1L%2L<:3L%4L,0.355+:1.22 acosh,-inf,nan+:nan acosh,nan,nan atanh,1,inf atanh,-1,-inf -atanh,0,0.000 -atanh,0.000,0.000 -atanh,1.200,1.199+:-1.571 -atanh,-1.200,-1.199+:1.571 -atanh,1L%3L,0.3466 -atanh,(-1L)%4L,-0.2554 -atanh,1+:2,0.1733+:1.178 -atanh,-1+:2,-0.1733+:1.178 -atanh,1+:-2,0.1733+:-1.178 -atanh,-1.200+:4.300,-0.05759+:1.358 -atanh,1.200+:-4.300,0.05759+:-1.358 -atanh,1L%2L+:1,0.2389+:0.8476 -atanh,1L%2L+:3L%4L,0.3104+:0.7232 -atanh,3<:1,0.1682+:1.289 -atanh,3<:-2.142,-0.1682+:-1.289 -atanh,3.000<:-3,-0.3419+:-1.518 -atanh,3.100<:2.500,-0.2539+:1.367 -atanh,2L%3L<:2,-0.2025+:0.5706 -atanh,1L%2L<:3L%4L,0.3353+:0.3688 +atanh,0,0.00 +atanh,0.00,0.00 +atanh,1.20,1.20+:-1.57 +atanh,-1.20,-1.20+:1.57 +atanh,1L%3L,0.347 +atanh,(-1L)%4L,-0.255 +atanh,1+:2,0.173+:1.18 +atanh,-1+:2,-0.173+:1.18 +atanh,1+:-2,0.173+:-1.18 +atanh,-1.20+:4.30,-0.0576+:1.36 +atanh,1.20+:-4.30,0.0576+:-1.36 +atanh,1L%2L+:1,0.239+:0.848 +atanh,1L%2L+:3L%4L,0.310+:0.723 +atanh,3<:1,0.168+:1.29 +atanh,3<:-2.14,-0.168+:-1.29 +atanh,3.00<:-3,-0.342+:-1.52 +atanh,3.10<:2.50,-0.254+:1.37 +atanh,2L%3L<:2,-0.202+:0.571 +atanh,1L%2L<:3L%4L,0.335+:0.369 atanh,-inf,nan+:nan atanh,nan,nan abs,1,1 abs,-1,1 abs,0,0 -abs,0.000,0.000 -abs,1.200,1.200 -abs,-1.200,1.200 +abs,0.00,0.00 +abs,1.20,1.20 +abs,-1.20,1.20 abs,1L%3L,1L%3L abs,(-1L)%4L,1L%4L -abs,1+:2,2.236 -abs,-1+:2,2.236 -abs,1+:-2,2.236 -abs,-1.200+:4.300,4.464 -abs,1.200+:-4.300,4.464 -abs,1L%2L+:1,1.118 -abs,1L%2L+:3L%4L,0.9014 +abs,1+:2,2.24 +abs,-1+:2,2.24 +abs,1+:-2,2.24 +abs,-1.20+:4.30,4.46 +abs,1.20+:-4.30,4.46 +abs,1L%2L+:1,1.12 +abs,1L%2L+:3L%4L,0.901 abs,3<:1,3 -abs,3<:-2.142,3 -abs,3.000<:-3,3.000 -abs,3.100<:2.500,3.100 +abs,3<:-2.14,3 +abs,3.00<:-3,3.00 +abs,3.10<:2.50,3.10 abs,2L%3L<:2,2L%3L abs,1L%2L<:3L%4L,1L%2L abs,-inf,inf @@ -577,91 +577,91 @@ re,1,1 re,-1,-1 re,0,0 -re,0.000,0.000 -re,1.200,1.200 -re,-1.200,-1.200 +re,0.00,0.00 +re,1.20,1.20 +re,-1.20,-1.20 re,1L%3L,1L%3L re,(-1L)%4L,(-1L)%4L re,1+:2,1 re,-1+:2,-1 re,1+:-2,1 -re,-1.200+:4.300,-1.200 -re,1.200+:-4.300,1.200 +re,-1.20+:4.30,-1.20 +re,1.20+:-4.30,1.20 re,1L%2L+:1,1L%2L re,1L%2L+:3L%4L,1L%2L -re,3<:1,2.524 -re,3<:-2.142,-2.524 -re,3.000<:-3,-0.4234 -re,3.100<:2.500,1.855 -re,2L%3L<:2,0.6062 -re,1L%2L<:3L%4L,0.3408 +re,3<:1,2.52 +re,3<:-2.14,-2.52 +re,3.00<:-3,-0.423 +re,3.10<:2.50,1.86 +re,2L%3L<:2,0.606 +re,1L%2L<:3L%4L,0.341 re,-inf,-inf re,nan,nan im,1,0 im,-1,0 im,0,0 -im,0.000,0.000 -im,1.200,0.000 -im,-1.200,0.000 +im,0.00,0.00 +im,1.20,0.00 +im,-1.20,0.00 im,1L%3L,0L%1L im,(-1L)%4L,0L%1L im,1+:2,2 im,-1+:2,2 im,1+:-2,-2 -im,-1.200+:4.300,4.300 -im,1.200+:-4.300,-4.300 +im,-1.20+:4.30,4.30 +im,1.20+:-4.30,-4.30 im,1L%2L+:1,1 im,1L%2L+:3L%4L,3L%4L -im,3<:1,1.621 -im,3<:-2.142,-1.621 -im,3.000<:-3,-2.970 -im,3.100<:2.500,-2.484 -im,2L%3L<:2,-0.2774 -im,1L%2L<:3L%4L,0.3658 -im,-inf,0.000 -im,nan,0.000 -arg,1,0.000 -arg,-1,3.142 -arg,0,0.000 -arg,0.000,0.000 -arg,1.200,0.000 -arg,-1.200,3.142 -arg,1L%3L,0.000 -arg,(-1L)%4L,3.142 -arg,1+:2,1.107 -arg,-1+:2,2.034 -arg,1+:-2,-1.107 -arg,-1.200+:4.300,1.843 -arg,1.200+:-4.300,-1.299 -arg,1L%2L+:1,1.107 -arg,1L%2L+:3L%4L,0.9828 +im,3<:1,1.62 +im,3<:-2.14,-1.62 +im,3.00<:-3,-2.97 +im,3.10<:2.50,-2.48 +im,2L%3L<:2,-0.277 +im,1L%2L<:3L%4L,0.366 +im,-inf,0.00 +im,nan,0.00 +arg,1,0.00 +arg,-1,3.14 +arg,0,0.00 +arg,0.00,0.00 +arg,1.20,0.00 +arg,-1.20,3.14 +arg,1L%3L,0.00 +arg,(-1L)%4L,3.14 +arg,1+:2,1.11 +arg,-1+:2,2.03 +arg,1+:-2,-1.11 +arg,-1.20+:4.30,1.84 +arg,1.20+:-4.30,-1.30 +arg,1L%2L+:1,1.11 +arg,1L%2L+:3L%4L,0.983 arg,3<:1,1 -arg,3<:-2.142,-2.142 -arg,3.000<:-3,-3 -arg,3.100<:2.500,2.500 +arg,3<:-2.14,-2.14 +arg,3.00<:-3,-3 +arg,3.10<:2.50,2.50 arg,2L%3L<:2,2 arg,1L%2L<:3L%4L,3L%4L -arg,-inf,3.142 +arg,-inf,3.14 arg,nan,nan conj,1,1 conj,-1,-1 conj,0,0 -conj,0.000,0.000 -conj,1.200,1.200 -conj,-1.200,-1.200 +conj,0.00,0.00 +conj,1.20,1.20 +conj,-1.20,-1.20 conj,1L%3L,1L%3L conj,(-1L)%4L,(-1L)%4L conj,1+:2,1+:-2 conj,-1+:2,-1+:-2 conj,1+:-2,1+:2 -conj,-1.200+:4.300,-1.200+:-4.300 -conj,1.200+:-4.300,1.200+:4.300 +conj,-1.20+:4.30,-1.20+:-4.30 +conj,1.20+:-4.30,1.20+:4.30 conj,1L%2L+:1,1L%2L+:-1 conj,1L%2L+:3L%4L,1L%2L+:(-3L)%4L conj,3<:1,3<:-1 -conj,3<:-2.142,3<:2.142 -conj,3.000<:-3,3.000<:3 -conj,3.100<:2.500,3.100<:-2.500 +conj,3<:-2.14,3<:2.14 +conj,3.00<:-3,3.00<:3 +conj,3.10<:2.50,3.10<:-2.50 conj,2L%3L<:2,2L%3L<:-2 conj,1L%2L<:3L%4L,1L%2L<:(-3L)%4L conj,-inf,-inf @@ -669,68 +669,68 @@ rect,1,1+:0 rect,-1,-1+:0 rect,0,0+:0 -rect,0.000,0.000+:0.000 -rect,1.200,1.200+:0.000 -rect,-1.200,-1.200+:0.000 +rect,0.00,0.00+:0.00 +rect,1.20,1.20+:0.00 +rect,-1.20,-1.20+:0.00 rect,1L%3L,1L%3L+:0L%1L rect,(-1L)%4L,(-1L)%4L+:0L%1L rect,1+:2,1+:2 rect,-1+:2,-1+:2 rect,1+:-2,1+:-2 -rect,-1.200+:4.300,-1.200+:4.300 -rect,1.200+:-4.300,1.200+:-4.300 +rect,-1.20+:4.30,-1.20+:4.30 +rect,1.20+:-4.30,1.20+:-4.30 rect,1L%2L+:1,1L%2L+:1 rect,1L%2L+:3L%4L,1L%2L+:3L%4L -rect,3<:1,1.621+:2.524 -rect,3<:-2.142,-1.621+:-2.524 -rect,3.000<:-3,-2.970+:-0.4234 -rect,3.100<:2.500,-2.484+:1.855 -rect,2L%3L<:2,-0.2774+:0.6062 -rect,1L%2L<:3L%4L,0.3658+:0.3408 -rect,-inf,-inf+:0.000 -rect,nan,nan+:0.000 +rect,3<:1,1.62+:2.52 +rect,3<:-2.14,-1.62+:-2.52 +rect,3.00<:-3,-2.97+:-0.423 +rect,3.10<:2.50,-2.48+:1.86 +rect,2L%3L<:2,-0.277+:0.606 +rect,1L%2L<:3L%4L,0.366+:0.341 +rect,-inf,-inf+:0.00 +rect,nan,nan+:0.00 polar,1,1<:0 -polar,-1,1<:3.142 +polar,-1,1<:3.14 polar,0,0<:0 -polar,0.000,0.000<:0.000 -polar,1.200,1.200<:0.000 -polar,-1.200,1.200<:3.142 +polar,0.00,0.00<:0.00 +polar,1.20,1.20<:0.00 +polar,-1.20,1.20<:3.14 polar,1L%3L,1L%3L<:0L%1L -polar,(-1L)%4L,1L%4L<:3.142 -polar,1+:2,2.236<:1.107 -polar,-1+:2,2.236<:2.034 -polar,1+:-2,2.236<:-1.107 -polar,-1.200+:4.300,4.464<:1.843 -polar,1.200+:-4.300,4.464<:-1.299 -polar,1L%2L+:1,1.118<:1.107 -polar,1L%2L+:3L%4L,0.9014<:0.9828 +polar,(-1L)%4L,1L%4L<:3.14 +polar,1+:2,2.24<:1.11 +polar,-1+:2,2.24<:2.03 +polar,1+:-2,2.24<:-1.11 +polar,-1.20+:4.30,4.46<:1.84 +polar,1.20+:-4.30,4.46<:-1.30 +polar,1L%2L+:1,1.12<:1.11 +polar,1L%2L+:3L%4L,0.901<:0.983 polar,3<:1,3<:1 -polar,3<:-2.142,3<:-2.142 -polar,3.000<:-3,3.000<:-3 -polar,3.100<:2.500,3.100<:2.500 +polar,3<:-2.14,3<:-2.14 +polar,3.00<:-3,3.00<:-3 +polar,3.10<:2.50,3.10<:2.50 polar,2L%3L<:2,2L%3L<:2 polar,1L%2L<:3L%4L,1L%2L<:3L%4L -polar,-inf,inf<:3.142 -polar,nan,nan<:0.000 -cis,1,0.5403+:0.8415 -cis,-1,0.5403+:-0.8415 -cis,0,1.000+:0.000 -cis,0.000,1.000+:0.000 -cis,1.200,0.3624+:0.9320 -cis,-1.200,0.3624+:-0.9320 -cis,1L%3L,0.9450+:0.3272 -cis,(-1L)%4L,0.9689+:-0.2474 +polar,-inf,inf<:3.14 +polar,nan,nan<:0.00 +cis,1,0.540+:0.841 +cis,-1,0.540+:-0.841 +cis,0,1.00+:0.00 +cis,0.00,1.00+:0.00 +cis,1.20,0.362+:0.932 +cis,-1.20,0.362+:-0.932 +cis,1L%3L,0.945+:0.327 +cis,(-1L)%4L,0.969+:-0.247 cis,1+:2,__failed__ cis,-1+:2,__failed__ cis,1+:-2,__failed__ -cis,-1.200+:4.300,__failed__ -cis,1.200+:-4.300,__failed__ +cis,-1.20+:4.30,__failed__ +cis,1.20+:-4.30,__failed__ cis,1L%2L+:1,__failed__ cis,1L%2L+:3L%4L,__failed__ cis,3<:1,__failed__ -cis,3<:-2.142,__failed__ -cis,3.000<:-3,__failed__ -cis,3.100<:2.500,__failed__ +cis,3<:-2.14,__failed__ +cis,3.00<:-3,__failed__ +cis,3.10<:2.50,__failed__ cis,2L%3L<:2,__failed__ cis,1L%2L<:3L%4L,__failed__ cis,-inf,nan+:nan @@ -738,22 +738,22 @@ ceil,1,1 ceil,-1,-1 ceil,0,0 -ceil,0.000,0.000 -ceil,1.200,2.000 -ceil,-1.200,-1.000 +ceil,0.00,0.00 +ceil,1.20,2.00 +ceil,-1.20,-1.00 ceil,1L%3L,1L ceil,(-1L)%4L,0L ceil,1+:2,__failed__ ceil,-1+:2,__failed__ ceil,1+:-2,__failed__ -ceil,-1.200+:4.300,__failed__ -ceil,1.200+:-4.300,__failed__ +ceil,-1.20+:4.30,__failed__ +ceil,1.20+:-4.30,__failed__ ceil,1L%2L+:1,__failed__ ceil,1L%2L+:3L%4L,__failed__ ceil,3<:1,__failed__ -ceil,3<:-2.142,__failed__ -ceil,3.000<:-3,__failed__ -ceil,3.100<:2.500,__failed__ +ceil,3<:-2.14,__failed__ +ceil,3.00<:-3,__failed__ +ceil,3.10<:2.50,__failed__ ceil,2L%3L<:2,__failed__ ceil,1L%2L<:3L%4L,__failed__ ceil,-inf,-inf @@ -761,22 +761,22 @@ floor,1,1 floor,-1,-1 floor,0,0 -floor,0.000,0.000 -floor,1.200,1.000 -floor,-1.200,-2.000 +floor,0.00,0.00 +floor,1.20,1.00 +floor,-1.20,-2.00 floor,1L%3L,0L floor,(-1L)%4L,-1L floor,1+:2,__failed__ floor,-1+:2,__failed__ floor,1+:-2,__failed__ -floor,-1.200+:4.300,__failed__ -floor,1.200+:-4.300,__failed__ +floor,-1.20+:4.30,__failed__ +floor,1.20+:-4.30,__failed__ floor,1L%2L+:1,__failed__ floor,1L%2L+:3L%4L,__failed__ floor,3<:1,__failed__ -floor,3<:-2.142,__failed__ -floor,3.000<:-3,__failed__ -floor,3.100<:2.500,__failed__ +floor,3<:-2.14,__failed__ +floor,3.00<:-3,__failed__ +floor,3.10<:2.50,__failed__ floor,2L%3L<:2,__failed__ floor,1L%2L<:3L%4L,__failed__ floor,-inf,-inf @@ -784,22 +784,22 @@ round,1,1 round,-1,-1 round,0,0 -round,0.000,0.000 -round,1.200,1.000 -round,-1.200,-1.000 +round,0.00,0.00 +round,1.20,1.00 +round,-1.20,-1.00 round,1L%3L,0L round,(-1L)%4L,0L round,1+:2,__failed__ round,-1+:2,__failed__ round,1+:-2,__failed__ -round,-1.200+:4.300,__failed__ -round,1.200+:-4.300,__failed__ +round,-1.20+:4.30,__failed__ +round,1.20+:-4.30,__failed__ round,1L%2L+:1,__failed__ round,1L%2L+:3L%4L,__failed__ round,3<:1,__failed__ -round,3<:-2.142,__failed__ -round,3.000<:-3,__failed__ -round,3.100<:2.500,__failed__ +round,3<:-2.14,__failed__ +round,3.00<:-3,__failed__ +round,3.10<:2.50,__failed__ round,2L%3L<:2,__failed__ round,1L%2L<:3L%4L,__failed__ round,-inf,-inf @@ -807,22 +807,22 @@ frac,1,0 frac,-1,0 frac,0,0 -frac,0.000,0.000 -frac,1.200,0.2000 -frac,-1.200,-0.2000 +frac,0.00,0.00 +frac,1.20,0.200 +frac,-1.20,-0.200 frac,1L%3L,1L%3L frac,(-1L)%4L,(-1L)%4L frac,1+:2,__failed__ frac,-1+:2,__failed__ frac,1+:-2,__failed__ -frac,-1.200+:4.300,__failed__ -frac,1.200+:-4.300,__failed__ +frac,-1.20+:4.30,__failed__ +frac,1.20+:-4.30,__failed__ frac,1L%2L+:1,__failed__ frac,1L%2L+:3L%4L,__failed__ frac,3<:1,__failed__ -frac,3<:-2.142,__failed__ -frac,3.000<:-3,__failed__ -frac,3.100<:2.500,__failed__ +frac,3<:-2.14,__failed__ +frac,3.00<:-3,__failed__ +frac,3.10<:2.50,__failed__ frac,2L%3L<:2,__failed__ frac,1L%2L<:3L%4L,__failed__ frac,-inf,nan @@ -830,22 +830,22 @@ complexp,1,0 complexp,-1,0 complexp,0,0 -complexp,0.000,0 -complexp,1.200,0 -complexp,-1.200,0 +complexp,0.00,0 +complexp,1.20,0 +complexp,-1.20,0 complexp,1L%3L,0 complexp,(-1L)%4L,0 complexp,1+:2,1 complexp,-1+:2,1 complexp,1+:-2,1 -complexp,-1.200+:4.300,1 -complexp,1.200+:-4.300,1 +complexp,-1.20+:4.30,1 +complexp,1.20+:-4.30,1 complexp,1L%2L+:1,1 complexp,1L%2L+:3L%4L,1 complexp,3<:1,1 -complexp,3<:-2.142,1 -complexp,3.000<:-3,1 -complexp,3.100<:2.500,1 +complexp,3<:-2.14,1 +complexp,3.00<:-3,1 +complexp,3.10<:2.50,1 complexp,2L%3L<:2,1 complexp,1L%2L<:3L%4L,1 complexp,-inf,0 @@ -853,22 +853,22 @@ realp,1,1 realp,-1,1 realp,0,1 -realp,0.000,1 -realp,1.200,1 -realp,-1.200,1 +realp,0.00,1 +realp,1.20,1 +realp,-1.20,1 realp,1L%3L,1 realp,(-1L)%4L,1 realp,1+:2,0 realp,-1+:2,0 realp,1+:-2,0 -realp,-1.200+:4.300,0 -realp,1.200+:-4.300,0 +realp,-1.20+:4.30,0 +realp,1.20+:-4.30,0 realp,1L%2L+:1,0 realp,1L%2L+:3L%4L,0 realp,3<:1,0 -realp,3<:-2.142,0 -realp,3.000<:-3,0 -realp,3.100<:2.500,0 +realp,3<:-2.14,0 +realp,3.00<:-3,0 +realp,3.10<:2.50,0 realp,2L%3L<:2,0 realp,1L%2L<:3L%4L,0 realp,-inf,1 @@ -876,22 +876,22 @@ rationalp,1,0 rationalp,-1,0 rationalp,0,0 -rationalp,0.000,0 -rationalp,1.200,0 -rationalp,-1.200,0 +rationalp,0.00,0 +rationalp,1.20,0 +rationalp,-1.20,0 rationalp,1L%3L,1 rationalp,(-1L)%4L,1 rationalp,1+:2,0 rationalp,-1+:2,0 rationalp,1+:-2,0 -rationalp,-1.200+:4.300,0 -rationalp,1.200+:-4.300,0 +rationalp,-1.20+:4.30,0 +rationalp,1.20+:-4.30,0 rationalp,1L%2L+:1,0 rationalp,1L%2L+:3L%4L,0 rationalp,3<:1,0 -rationalp,3<:-2.142,0 -rationalp,3.000<:-3,0 -rationalp,3.100<:2.500,0 +rationalp,3<:-2.14,0 +rationalp,3.00<:-3,0 +rationalp,3.10<:2.50,0 rationalp,2L%3L<:2,0 rationalp,1L%2L<:3L%4L,0 rationalp,-inf,0 @@ -899,22 +899,22 @@ numberp,1,1 numberp,-1,1 numberp,0,1 -numberp,0.000,1 -numberp,1.200,1 -numberp,-1.200,1 +numberp,0.00,1 +numberp,1.20,1 +numberp,-1.20,1 numberp,1L%3L,1 numberp,(-1L)%4L,1 numberp,1+:2,1 numberp,-1+:2,1 numberp,1+:-2,1 -numberp,-1.200+:4.300,1 -numberp,1.200+:-4.300,1 +numberp,-1.20+:4.30,1 +numberp,1.20+:-4.30,1 numberp,1L%2L+:1,1 numberp,1L%2L+:3L%4L,1 numberp,3<:1,1 -numberp,3<:-2.142,1 -numberp,3.000<:-3,1 -numberp,3.100<:2.500,1 +numberp,3<:-2.14,1 +numberp,3.00<:-3,1 +numberp,3.10<:2.50,1 numberp,2L%3L<:2,1 numberp,1L%2L<:3L%4L,1 numberp,-inf,1 @@ -922,22 +922,22 @@ exactp,1,1 exactp,-1,1 exactp,0,1 -exactp,0.000,0 -exactp,1.200,0 -exactp,-1.200,0 +exactp,0.00,0 +exactp,1.20,0 +exactp,-1.20,0 exactp,1L%3L,1 exactp,(-1L)%4L,1 exactp,1+:2,1 exactp,-1+:2,1 exactp,1+:-2,1 -exactp,-1.200+:4.300,0 -exactp,1.200+:-4.300,0 +exactp,-1.20+:4.30,0 +exactp,1.20+:-4.30,0 exactp,1L%2L+:1,1 exactp,1L%2L+:3L%4L,1 exactp,3<:1,0 -exactp,3<:-2.142,0 -exactp,3.000<:-3,0 -exactp,3.100<:2.500,0 +exactp,3<:-2.14,0 +exactp,3.00<:-3,0 +exactp,3.10<:2.50,0 exactp,2L%3L<:2,0 exactp,1L%2L<:3L%4L,0 exactp,-inf,0 @@ -945,22 +945,22 @@ inexactp,1,0 inexactp,-1,0 inexactp,0,0 -inexactp,0.000,1 -inexactp,1.200,1 -inexactp,-1.200,1 +inexactp,0.00,1 +inexactp,1.20,1 +inexactp,-1.20,1 inexactp,1L%3L,0 inexactp,(-1L)%4L,0 inexactp,1+:2,0 inexactp,-1+:2,0 inexactp,1+:-2,0 -inexactp,-1.200+:4.300,1 -inexactp,1.200+:-4.300,1 +inexactp,-1.20+:4.30,1 +inexactp,1.20+:-4.30,1 inexactp,1L%2L+:1,0 inexactp,1L%2L+:3L%4L,0 inexactp,3<:1,1 -inexactp,3<:-2.142,1 -inexactp,3.000<:-3,1 -inexactp,3.100<:2.500,1 +inexactp,3<:-2.14,1 +inexactp,3.00<:-3,1 +inexactp,3.10<:2.50,1 inexactp,2L%3L<:2,1 inexactp,1L%2L<:3L%4L,1 inexactp,-inf,1 @@ -968,22 +968,22 @@ infp,1,0 infp,-1,0 infp,0,0 -infp,0.000,0 -infp,1.200,0 -infp,-1.200,0 +infp,0.00,0 +infp,1.20,0 +infp,-1.20,0 infp,1L%3L,0 infp,(-1L)%4L,0 infp,1+:2,0 infp,-1+:2,0 infp,1+:-2,0 -infp,-1.200+:4.300,0 -infp,1.200+:-4.300,0 +infp,-1.20+:4.30,0 +infp,1.20+:-4.30,0 infp,1L%2L+:1,0 infp,1L%2L+:3L%4L,0 infp,3<:1,0 -infp,3<:-2.142,0 -infp,3.000<:-3,0 -infp,3.100<:2.500,0 +infp,3<:-2.14,0 +infp,3.00<:-3,0 +infp,3.10<:2.50,0 infp,2L%3L<:2,0 infp,1L%2L<:3L%4L,0 infp,-inf,1 @@ -991,22 +991,22 @@ nanp,1,0 nanp,-1,0 nanp,0,0 -nanp,0.000,0 -nanp,1.200,0 -nanp,-1.200,0 +nanp,0.00,0 +nanp,1.20,0 +nanp,-1.20,0 nanp,1L%3L,0 nanp,(-1L)%4L,0 nanp,1+:2,0 nanp,-1+:2,0 nanp,1+:-2,0 -nanp,-1.200+:4.300,0 -nanp,1.200+:-4.300,0 +nanp,-1.20+:4.30,0 +nanp,1.20+:-4.30,0 nanp,1L%2L+:1,0 nanp,1L%2L+:3L%4L,0 nanp,3<:1,0 -nanp,3<:-2.142,0 -nanp,3.000<:-3,0 -nanp,3.100<:2.500,0 +nanp,3<:-2.14,0 +nanp,3.00<:-3,0 +nanp,3.10<:2.50,0 nanp,2L%3L<:2,0 nanp,1L%2L<:3L%4L,0 nanp,-inf,0 @@ -1015,1080 +1015,1080 @@ (+),1,1,2 (+),1,-1,0 (+),1,0,1 -(+),1,0.000,1.000 -(+),1,1.200,2.200 -(+),1,-1.200,-0.2000 +(+),1,0.00,1.00 +(+),1,1.20,2.20 +(+),1,-1.20,-0.200 (+),1,1L%3L,4L%3L (+),1,(-1L)%4L,3L%4L (+),1,1+:2,2+:2 (+),1,-1+:2,0+:2 (+),1,1+:-2,2+:-2 -(+),1,-1.200+:4.300,-0.2000+:4.300 -(+),1,1.200+:-4.300,2.200+:-4.300 +(+),1,-1.20+:4.30,-0.200+:4.30 +(+),1,1.20+:-4.30,2.20+:-4.30 (+),1,1L%2L+:1,3L%2L+:1 (+),1,1L%2L+:3L%4L,3L%2L+:3L%4L -(+),1,3<:1,2.621+:2.524 -(+),1,3<:-2.142,-0.6209+:-2.524 -(+),1,3.000<:-3,-1.970+:-0.4234 -(+),1,3.100<:2.500,-1.484+:1.855 -(+),1,2L%3L<:2,0.7226+:0.6062 -(+),1,1L%2L<:3L%4L,1.366+:0.3408 +(+),1,3<:1,2.62+:2.52 +(+),1,3<:-2.14,-0.621+:-2.52 +(+),1,3.00<:-3,-1.97+:-0.423 +(+),1,3.10<:2.50,-1.48+:1.86 +(+),1,2L%3L<:2,0.723+:0.606 +(+),1,1L%2L<:3L%4L,1.37+:0.341 (+),1,-inf,-inf (+),1,nan,nan (+),-1,1,0 (+),-1,-1,-2 (+),-1,0,-1 -(+),-1,0.000,-1.000 -(+),-1,1.200,0.2000 -(+),-1,-1.200,-2.200 +(+),-1,0.00,-1.00 +(+),-1,1.20,0.200 +(+),-1,-1.20,-2.20 (+),-1,1L%3L,(-2L)%3L (+),-1,(-1L)%4L,(-5L)%4L (+),-1,1+:2,0+:2 (+),-1,-1+:2,-2+:2 (+),-1,1+:-2,0+:-2 -(+),-1,-1.200+:4.300,-2.200+:4.300 -(+),-1,1.200+:-4.300,0.2000+:-4.300 +(+),-1,-1.20+:4.30,-2.20+:4.30 +(+),-1,1.20+:-4.30,0.200+:-4.30 (+),-1,1L%2L+:1,(-1L)%2L+:1 (+),-1,1L%2L+:3L%4L,(-1L)%2L+:3L%4L -(+),-1,3<:1,0.6209+:2.524 -(+),-1,3<:-2.142,-2.621+:-2.524 -(+),-1,3.000<:-3,-3.970+:-0.4234 -(+),-1,3.100<:2.500,-3.484+:1.855 -(+),-1,2L%3L<:2,-1.277+:0.6062 -(+),-1,1L%2L<:3L%4L,-0.6342+:0.3408 +(+),-1,3<:1,0.621+:2.52 +(+),-1,3<:-2.14,-2.62+:-2.52 +(+),-1,3.00<:-3,-3.97+:-0.423 +(+),-1,3.10<:2.50,-3.48+:1.86 +(+),-1,2L%3L<:2,-1.28+:0.606 +(+),-1,1L%2L<:3L%4L,-0.634+:0.341 (+),-1,-inf,-inf (+),-1,nan,nan (+),0,1,1 (+),0,-1,-1 (+),0,0,0 -(+),0,0.000,0.000 -(+),0,1.200,1.200 -(+),0,-1.200,-1.200 +(+),0,0.00,0.00 +(+),0,1.20,1.20 +(+),0,-1.20,-1.20 (+),0,1L%3L,1L%3L (+),0,(-1L)%4L,(-1L)%4L (+),0,1+:2,1+:2 (+),0,-1+:2,-1+:2 (+),0,1+:-2,1+:-2 -(+),0,-1.200+:4.300,-1.200+:4.300 -(+),0,1.200+:-4.300,1.200+:-4.300 +(+),0,-1.20+:4.30,-1.20+:4.30 +(+),0,1.20+:-4.30,1.20+:-4.30 (+),0,1L%2L+:1,1L%2L+:1 (+),0,1L%2L+:3L%4L,1L%2L+:3L%4L -(+),0,3<:1,1.621+:2.524 -(+),0,3<:-2.142,-1.621+:-2.524 -(+),0,3.000<:-3,-2.970+:-0.4234 -(+),0,3.100<:2.500,-2.484+:1.855 -(+),0,2L%3L<:2,-0.2774+:0.6062 -(+),0,1L%2L<:3L%4L,0.3658+:0.3408 +(+),0,3<:1,1.62+:2.52 +(+),0,3<:-2.14,-1.62+:-2.52 +(+),0,3.00<:-3,-2.97+:-0.423 +(+),0,3.10<:2.50,-2.48+:1.86 +(+),0,2L%3L<:2,-0.277+:0.606 +(+),0,1L%2L<:3L%4L,0.366+:0.341 (+),0,-inf,-inf (+),0,nan,nan -(+),0.000,1,1.000 -(+),0.000,-1,-1.000 -(+),0.000,0,0.000 -(+),0.000,0.000,0.000 -(+),0.000,1.200,1.200 -(+),0.000,-1.200,-1.200 -(+),0.000,1L%3L,0.3333 -(+),0.000,(-1L)%4L,-0.2500 -(+),0.000,1+:2,1.000+:2 -(+),0.000,-1+:2,-1.000+:2 -(+),0.000,1+:-2,1.000+:-2 -(+),0.000,-1.200+:4.300,-1.200+:4.300 -(+),0.000,1.200+:-4.300,1.200+:-4.300 -(+),0.000,1L%2L+:1,0.5000+:1 -(+),0.000,1L%2L+:3L%4L,0.5000+:3L%4L -(+),0.000,3<:1,1.621+:2.524 -(+),0.000,3<:-2.142,-1.621+:-2.524 -(+),0.000,3.000<:-3,-2.970+:-0.4234 -(+),0.000,3.100<:2.500,-2.484+:1.855 -(+),0.000,2L%3L<:2,-0.2774+:0.6062 -(+),0.000,1L%2L<:3L%4L,0.3658+:0.3408 -(+),0.000,-inf,-inf -(+),0.000,nan,nan -(+),1.200,1,2.200 -(+),1.200,-1,0.2000 -(+),1.200,0,1.200 -(+),1.200,0.000,1.200 -(+),1.200,1.200,2.400 -(+),1.200,-1.200,0.000 -(+),1.200,1L%3L,1.533 -(+),1.200,(-1L)%4L,0.9500 -(+),1.200,1+:2,2.200+:2 -(+),1.200,-1+:2,0.2000+:2 -(+),1.200,1+:-2,2.200+:-2 -(+),1.200,-1.200+:4.300,0.000+:4.300 -(+),1.200,1.200+:-4.300,2.400+:-4.300 -(+),1.200,1L%2L+:1,1.700+:1 -(+),1.200,1L%2L+:3L%4L,1.700+:3L%4L -(+),1.200,3<:1,2.821+:2.524 -(+),1.200,3<:-2.142,-0.4209+:-2.524 -(+),1.200,3.000<:-3,-1.770+:-0.4234 -(+),1.200,3.100<:2.500,-1.284+:1.855 -(+),1.200,2L%3L<:2,0.9226+:0.6062 -(+),1.200,1L%2L<:3L%4L,1.566+:0.3408 -(+),1.200,-inf,-inf -(+),1.200,nan,nan -(+),-1.200,1,-0.2000 -(+),-1.200,-1,-2.200 -(+),-1.200,0,-1.200 -(+),-1.200,0.000,-1.200 -(+),-1.200,1.200,0.000 -(+),-1.200,-1.200,-2.400 -(+),-1.200,1L%3L,-0.8667 -(+),-1.200,(-1L)%4L,-1.450 -(+),-1.200,1+:2,-0.2000+:2 -(+),-1.200,-1+:2,-2.200+:2 -(+),-1.200,1+:-2,-0.2000+:-2 -(+),-1.200,-1.200+:4.300,-2.400+:4.300 -(+),-1.200,1.200+:-4.300,0.000+:-4.300 -(+),-1.200,1L%2L+:1,-0.7000+:1 -(+),-1.200,1L%2L+:3L%4L,-0.7000+:3L%4L -(+),-1.200,3<:1,0.4209+:2.524 -(+),-1.200,3<:-2.142,-2.821+:-2.524 -(+),-1.200,3.000<:-3,-4.170+:-0.4234 -(+),-1.200,3.100<:2.500,-3.684+:1.855 -(+),-1.200,2L%3L<:2,-1.477+:0.6062 -(+),-1.200,1L%2L<:3L%4L,-0.8342+:0.3408 -(+),-1.200,-inf,-inf -(+),-1.200,nan,nan +(+),0.00,1,1.00 +(+),0.00,-1,-1.00 +(+),0.00,0,0.00 +(+),0.00,0.00,0.00 +(+),0.00,1.20,1.20 +(+),0.00,-1.20,-1.20 +(+),0.00,1L%3L,0.333 +(+),0.00,(-1L)%4L,-0.250 +(+),0.00,1+:2,1.00+:2 +(+),0.00,-1+:2,-1.00+:2 +(+),0.00,1+:-2,1.00+:-2 +(+),0.00,-1.20+:4.30,-1.20+:4.30 +(+),0.00,1.20+:-4.30,1.20+:-4.30 +(+),0.00,1L%2L+:1,0.500+:1 +(+),0.00,1L%2L+:3L%4L,0.500+:3L%4L +(+),0.00,3<:1,1.62+:2.52 +(+),0.00,3<:-2.14,-1.62+:-2.52 +(+),0.00,3.00<:-3,-2.97+:-0.423 +(+),0.00,3.10<:2.50,-2.48+:1.86 +(+),0.00,2L%3L<:2,-0.277+:0.606 +(+),0.00,1L%2L<:3L%4L,0.366+:0.341 +(+),0.00,-inf,-inf +(+),0.00,nan,nan +(+),1.20,1,2.20 +(+),1.20,-1,0.200 +(+),1.20,0,1.20 +(+),1.20,0.00,1.20 +(+),1.20,1.20,2.40 +(+),1.20,-1.20,0.00 +(+),1.20,1L%3L,1.53 +(+),1.20,(-1L)%4L,0.950 +(+),1.20,1+:2,2.20+:2 +(+),1.20,-1+:2,0.200+:2 +(+),1.20,1+:-2,2.20+:-2 +(+),1.20,-1.20+:4.30,0.00+:4.30 +(+),1.20,1.20+:-4.30,2.40+:-4.30 +(+),1.20,1L%2L+:1,1.70+:1 +(+),1.20,1L%2L+:3L%4L,1.70+:3L%4L +(+),1.20,3<:1,2.82+:2.52 +(+),1.20,3<:-2.14,-0.421+:-2.52 +(+),1.20,3.00<:-3,-1.77+:-0.423 +(+),1.20,3.10<:2.50,-1.28+:1.86 +(+),1.20,2L%3L<:2,0.923+:0.606 +(+),1.20,1L%2L<:3L%4L,1.57+:0.341 +(+),1.20,-inf,-inf +(+),1.20,nan,nan +(+),-1.20,1,-0.200 +(+),-1.20,-1,-2.20 +(+),-1.20,0,-1.20 +(+),-1.20,0.00,-1.20 +(+),-1.20,1.20,0.00 +(+),-1.20,-1.20,-2.40 +(+),-1.20,1L%3L,-0.867 +(+),-1.20,(-1L)%4L,-1.45 +(+),-1.20,1+:2,-0.200+:2 +(+),-1.20,-1+:2,-2.20+:2 +(+),-1.20,1+:-2,-0.200+:-2 +(+),-1.20,-1.20+:4.30,-2.40+:4.30 +(+),-1.20,1.20+:-4.30,0.00+:-4.30 +(+),-1.20,1L%2L+:1,-0.700+:1 +(+),-1.20,1L%2L+:3L%4L,-0.700+:3L%4L +(+),-1.20,3<:1,0.421+:2.52 +(+),-1.20,3<:-2.14,-2.82+:-2.52 +(+),-1.20,3.00<:-3,-4.17+:-0.423 +(+),-1.20,3.10<:2.50,-3.68+:1.86 +(+),-1.20,2L%3L<:2,-1.48+:0.606 +(+),-1.20,1L%2L<:3L%4L,-0.834+:0.341 +(+),-1.20,-inf,-inf +(+),-1.20,nan,nan (+),1L%3L,1,4L%3L (+),1L%3L,-1,(-2L)%3L (+),1L%3L,0,1L%3L -(+),1L%3L,0.000,0.3333 -(+),1L%3L,1.200,1.533 -(+),1L%3L,-1.200,-0.8667 +(+),1L%3L,0.00,0.333 +(+),1L%3L,1.20,1.53 +(+),1L%3L,-1.20,-0.867 (+),1L%3L,1L%3L,2L%3L (+),1L%3L,(-1L)%4L,1L%12L (+),1L%3L,1+:2,4L%3L+:2 (+),1L%3L,-1+:2,(-2L)%3L+:2 (+),1L%3L,1+:-2,4L%3L+:-2 -(+),1L%3L,-1.200+:4.300,-0.8667+:4.300 -(+),1L%3L,1.200+:-4.300,1.533+:-4.300 +(+),1L%3L,-1.20+:4.30,-0.867+:4.30 +(+),1L%3L,1.20+:-4.30,1.53+:-4.30 (+),1L%3L,1L%2L+:1,5L%6L+:1 (+),1L%3L,1L%2L+:3L%4L,5L%6L+:3L%4L -(+),1L%3L,3<:1,1.954+:2.524 -(+),1L%3L,3<:-2.142,-1.288+:-2.524 -(+),1L%3L,3.000<:-3,-2.637+:-0.4234 -(+),1L%3L,3.100<:2.500,-2.150+:1.855 -(+),1L%3L,2L%3L<:2,0.05590+:0.6062 -(+),1L%3L,1L%2L<:3L%4L,0.6992+:0.3408 +(+),1L%3L,3<:1,1.95+:2.52 +(+),1L%3L,3<:-2.14,-1.29+:-2.52 +(+),1L%3L,3.00<:-3,-2.64+:-0.423 +(+),1L%3L,3.10<:2.50,-2.15+:1.86 +(+),1L%3L,2L%3L<:2,0.0559+:0.606 +(+),1L%3L,1L%2L<:3L%4L,0.699+:0.341 (+),1L%3L,-inf,-inf (+),1L%3L,nan,nan (+),(-1L)%4L,1,3L%4L (+),(-1L)%4L,-1,(-5L)%4L (+),(-1L)%4L,0,(-1L)%4L -(+),(-1L)%4L,0.000,-0.2500 -(+),(-1L)%4L,1.200,0.9500 -(+),(-1L)%4L,-1.200,-1.450 +(+),(-1L)%4L,0.00,-0.250 +(+),(-1L)%4L,1.20,0.950 +(+),(-1L)%4L,-1.20,-1.45 (+),(-1L)%4L,1L%3L,1L%12L (+),(-1L)%4L,(-1L)%4L,(-1L)%2L (+),(-1L)%4L,1+:2,3L%4L+:2 (+),(-1L)%4L,-1+:2,(-5L)%4L+:2 (+),(-1L)%4L,1+:-2,3L%4L+:-2 -(+),(-1L)%4L,-1.200+:4.300,-1.450+:4.300 -(+),(-1L)%4L,1.200+:-4.300,0.9500+:-4.300 +(+),(-1L)%4L,-1.20+:4.30,-1.45+:4.30 +(+),(-1L)%4L,1.20+:-4.30,0.950+:-4.30 (+),(-1L)%4L,1L%2L+:1,1L%4L+:1 (+),(-1L)%4L,1L%2L+:3L%4L,1L%4L+:3L%4L -(+),(-1L)%4L,3<:1,1.371+:2.524 -(+),(-1L)%4L,3<:-2.142,-1.871+:-2.524 -(+),(-1L)%4L,3.000<:-3,-3.220+:-0.4234 -(+),(-1L)%4L,3.100<:2.500,-2.734+:1.855 -(+),(-1L)%4L,2L%3L<:2,-0.5274+:0.6062 -(+),(-1L)%4L,1L%2L<:3L%4L,0.1158+:0.3408 +(+),(-1L)%4L,3<:1,1.37+:2.52 +(+),(-1L)%4L,3<:-2.14,-1.87+:-2.52 +(+),(-1L)%4L,3.00<:-3,-3.22+:-0.423 +(+),(-1L)%4L,3.10<:2.50,-2.73+:1.86 +(+),(-1L)%4L,2L%3L<:2,-0.527+:0.606 +(+),(-1L)%4L,1L%2L<:3L%4L,0.116+:0.341 (+),(-1L)%4L,-inf,-inf (+),(-1L)%4L,nan,nan (+),1+:2,1,2+:2 (+),1+:2,-1,0+:2 (+),1+:2,0,1+:2 -(+),1+:2,0.000,1.000+:2 -(+),1+:2,1.200,2.200+:2 -(+),1+:2,-1.200,-0.2000+:2 +(+),1+:2,0.00,1.00+:2 +(+),1+:2,1.20,2.20+:2 +(+),1+:2,-1.20,-0.200+:2 (+),1+:2,1L%3L,4L%3L+:2 (+),1+:2,(-1L)%4L,3L%4L+:2 (+),1+:2,1+:2,2+:4 (+),1+:2,-1+:2,0+:4 (+),1+:2,1+:-2,2+:0 -(+),1+:2,-1.200+:4.300,-0.2000+:6.300 -(+),1+:2,1.200+:-4.300,2.200+:-2.300 +(+),1+:2,-1.20+:4.30,-0.200+:6.30 +(+),1+:2,1.20+:-4.30,2.20+:-2.30 (+),1+:2,1L%2L+:1,3L%2L+:3 (+),1+:2,1L%2L+:3L%4L,3L%2L+:11L%4L -(+),1+:2,3<:1,2.621+:4.524 -(+),1+:2,3<:-2.142,-0.6209+:-0.5244 -(+),1+:2,3.000<:-3,-1.970+:1.577 -(+),1+:2,3.100<:2.500,-1.484+:3.855 -(+),1+:2,2L%3L<:2,0.7226+:2.606 -(+),1+:2,1L%2L<:3L%4L,1.366+:2.341 +(+),1+:2,3<:1,2.62+:4.52 +(+),1+:2,3<:-2.14,-0.621+:-0.524 +(+),1+:2,3.00<:-3,-1.97+:1.58 +(+),1+:2,3.10<:2.50,-1.48+:3.86 +(+),1+:2,2L%3L<:2,0.723+:2.61 +(+),1+:2,1L%2L<:3L%4L,1.37+:2.34 (+),1+:2,-inf,-inf+:2 (+),1+:2,nan,nan+:2 (+),-1+:2,1,0+:2 (+),-1+:2,-1,-2+:2 (+),-1+:2,0,-1+:2 -(+),-1+:2,0.000,-1.000+:2 -(+),-1+:2,1.200,0.2000+:2 -(+),-1+:2,-1.200,-2.200+:2 +(+),-1+:2,0.00,-1.00+:2 +(+),-1+:2,1.20,0.200+:2 +(+),-1+:2,-1.20,-2.20+:2 (+),-1+:2,1L%3L,(-2L)%3L+:2 (+),-1+:2,(-1L)%4L,(-5L)%4L+:2 (+),-1+:2,1+:2,0+:4 (+),-1+:2,-1+:2,-2+:4 (+),-1+:2,1+:-2,0+:0 -(+),-1+:2,-1.200+:4.300,-2.200+:6.300 -(+),-1+:2,1.200+:-4.300,0.2000+:-2.300 +(+),-1+:2,-1.20+:4.30,-2.20+:6.30 +(+),-1+:2,1.20+:-4.30,0.200+:-2.30 (+),-1+:2,1L%2L+:1,(-1L)%2L+:3 (+),-1+:2,1L%2L+:3L%4L,(-1L)%2L+:11L%4L -(+),-1+:2,3<:1,0.6209+:4.524 -(+),-1+:2,3<:-2.142,-2.621+:-0.5244 -(+),-1+:2,3.000<:-3,-3.970+:1.577 -(+),-1+:2,3.100<:2.500,-3.484+:3.855 -(+),-1+:2,2L%3L<:2,-1.277+:2.606 -(+),-1+:2,1L%2L<:3L%4L,-0.6342+:2.341 +(+),-1+:2,3<:1,0.621+:4.52 +(+),-1+:2,3<:-2.14,-2.62+:-0.524 +(+),-1+:2,3.00<:-3,-3.97+:1.58 +(+),-1+:2,3.10<:2.50,-3.48+:3.86 +(+),-1+:2,2L%3L<:2,-1.28+:2.61 +(+),-1+:2,1L%2L<:3L%4L,-0.634+:2.34 (+),-1+:2,-inf,-inf+:2 (+),-1+:2,nan,nan+:2 (+),1+:-2,1,2+:-2 (+),1+:-2,-1,0+:-2 (+),1+:-2,0,1+:-2 -(+),1+:-2,0.000,1.000+:-2 -(+),1+:-2,1.200,2.200+:-2 -(+),1+:-2,-1.200,-0.2000+:-2 +(+),1+:-2,0.00,1.00+:-2 +(+),1+:-2,1.20,2.20+:-2 +(+),1+:-2,-1.20,-0.200+:-2 (+),1+:-2,1L%3L,4L%3L+:-2 (+),1+:-2,(-1L)%4L,3L%4L+:-2 (+),1+:-2,1+:2,2+:0 (+),1+:-2,-1+:2,0+:0 (+),1+:-2,1+:-2,2+:-4 -(+),1+:-2,-1.200+:4.300,-0.2000+:2.300 -(+),1+:-2,1.200+:-4.300,2.200+:-6.300 +(+),1+:-2,-1.20+:4.30,-0.200+:2.30 +(+),1+:-2,1.20+:-4.30,2.20+:-6.30 (+),1+:-2,1L%2L+:1,3L%2L+:-1 (+),1+:-2,1L%2L+:3L%4L,3L%2L+:(-5L)%4L -(+),1+:-2,3<:1,2.621+:0.5244 -(+),1+:-2,3<:-2.142,-0.6209+:-4.524 -(+),1+:-2,3.000<:-3,-1.970+:-2.423 -(+),1+:-2,3.100<:2.500,-1.484+:-0.1447 -(+),1+:-2,2L%3L<:2,0.7226+:-1.394 -(+),1+:-2,1L%2L<:3L%4L,1.366+:-1.659 +(+),1+:-2,3<:1,2.62+:0.524 +(+),1+:-2,3<:-2.14,-0.621+:-4.52 +(+),1+:-2,3.00<:-3,-1.97+:-2.42 +(+),1+:-2,3.10<:2.50,-1.48+:-0.145 +(+),1+:-2,2L%3L<:2,0.723+:-1.39 +(+),1+:-2,1L%2L<:3L%4L,1.37+:-1.66 (+),1+:-2,-inf,-inf+:-2 (+),1+:-2,nan,nan+:-2 -(+),-1.200+:4.300,1,-0.2000+:4.300 -(+),-1.200+:4.300,-1,-2.200+:4.300 -(+),-1.200+:4.300,0,-1.200+:4.300 -(+),-1.200+:4.300,0.000,-1.200+:4.300 -(+),-1.200+:4.300,1.200,0.000+:4.300 -(+),-1.200+:4.300,-1.200,-2.400+:4.300 -(+),-1.200+:4.300,1L%3L,-0.8667+:4.300 -(+),-1.200+:4.300,(-1L)%4L,-1.450+:4.300 -(+),-1.200+:4.300,1+:2,-0.2000+:6.300 -(+),-1.200+:4.300,-1+:2,-2.200+:6.300 -(+),-1.200+:4.300,1+:-2,-0.2000+:2.300 -(+),-1.200+:4.300,-1.200+:4.300,-2.400+:8.600 -(+),-1.200+:4.300,1.200+:-4.300,0.000+:0.000 -(+),-1.200+:4.300,1L%2L+:1,-0.7000+:5.300 -(+),-1.200+:4.300,1L%2L+:3L%4L,-0.7000+:5.050 -(+),-1.200+:4.300,3<:1,0.4209+:6.824 -(+),-1.200+:4.300,3<:-2.142,-2.821+:1.776 -(+),-1.200+:4.300,3.000<:-3,-4.170+:3.877 -(+),-1.200+:4.300,3.100<:2.500,-3.684+:6.155 -(+),-1.200+:4.300,2L%3L<:2,-1.477+:4.906 -(+),-1.200+:4.300,1L%2L<:3L%4L,-0.8342+:4.641 -(+),-1.200+:4.300,-inf,-inf+:4.300 -(+),-1.200+:4.300,nan,nan+:4.300 -(+),1.200+:-4.300,1,2.200+:-4.300 -(+),1.200+:-4.300,-1,0.2000+:-4.300 -(+),1.200+:-4.300,0,1.200+:-4.300 -(+),1.200+:-4.300,0.000,1.200+:-4.300 -(+),1.200+:-4.300,1.200,2.400+:-4.300 -(+),1.200+:-4.300,-1.200,0.000+:-4.300 -(+),1.200+:-4.300,1L%3L,1.533+:-4.300 -(+),1.200+:-4.300,(-1L)%4L,0.9500+:-4.300 -(+),1.200+:-4.300,1+:2,2.200+:-2.300 -(+),1.200+:-4.300,-1+:2,0.2000+:-2.300 -(+),1.200+:-4.300,1+:-2,2.200+:-6.300 -(+),1.200+:-4.300,-1.200+:4.300,0.000+:0.000 -(+),1.200+:-4.300,1.200+:-4.300,2.400+:-8.600 -(+),1.200+:-4.300,1L%2L+:1,1.700+:-3.300 -(+),1.200+:-4.300,1L%2L+:3L%4L,1.700+:-3.550 -(+),1.200+:-4.300,3<:1,2.821+:-1.776 -(+),1.200+:-4.300,3<:-2.142,-0.4209+:-6.824 -(+),1.200+:-4.300,3.000<:-3,-1.770+:-4.723 -(+),1.200+:-4.300,3.100<:2.500,-1.284+:-2.445 -(+),1.200+:-4.300,2L%3L<:2,0.9226+:-3.694 -(+),1.200+:-4.300,1L%2L<:3L%4L,1.566+:-3.959 -(+),1.200+:-4.300,-inf,-inf+:-4.300 -(+),1.200+:-4.300,nan,nan+:-4.300 +(+),-1.20+:4.30,1,-0.200+:4.30 +(+),-1.20+:4.30,-1,-2.20+:4.30 +(+),-1.20+:4.30,0,-1.20+:4.30 +(+),-1.20+:4.30,0.00,-1.20+:4.30 +(+),-1.20+:4.30,1.20,0.00+:4.30 +(+),-1.20+:4.30,-1.20,-2.40+:4.30 +(+),-1.20+:4.30,1L%3L,-0.867+:4.30 +(+),-1.20+:4.30,(-1L)%4L,-1.45+:4.30 +(+),-1.20+:4.30,1+:2,-0.200+:6.30 +(+),-1.20+:4.30,-1+:2,-2.20+:6.30 +(+),-1.20+:4.30,1+:-2,-0.200+:2.30 +(+),-1.20+:4.30,-1.20+:4.30,-2.40+:8.60 +(+),-1.20+:4.30,1.20+:-4.30,0.00+:0.00 +(+),-1.20+:4.30,1L%2L+:1,-0.700+:5.30 +(+),-1.20+:4.30,1L%2L+:3L%4L,-0.700+:5.05 +(+),-1.20+:4.30,3<:1,0.421+:6.82 +(+),-1.20+:4.30,3<:-2.14,-2.82+:1.78 +(+),-1.20+:4.30,3.00<:-3,-4.17+:3.88 +(+),-1.20+:4.30,3.10<:2.50,-3.68+:6.16 +(+),-1.20+:4.30,2L%3L<:2,-1.48+:4.91 +(+),-1.20+:4.30,1L%2L<:3L%4L,-0.834+:4.64 +(+),-1.20+:4.30,-inf,-inf+:4.30 +(+),-1.20+:4.30,nan,nan+:4.30 +(+),1.20+:-4.30,1,2.20+:-4.30 +(+),1.20+:-4.30,-1,0.200+:-4.30 +(+),1.20+:-4.30,0,1.20+:-4.30 +(+),1.20+:-4.30,0.00,1.20+:-4.30 +(+),1.20+:-4.30,1.20,2.40+:-4.30 +(+),1.20+:-4.30,-1.20,0.00+:-4.30 +(+),1.20+:-4.30,1L%3L,1.53+:-4.30 +(+),1.20+:-4.30,(-1L)%4L,0.950+:-4.30 +(+),1.20+:-4.30,1+:2,2.20+:-2.30 +(+),1.20+:-4.30,-1+:2,0.200+:-2.30 +(+),1.20+:-4.30,1+:-2,2.20+:-6.30 +(+),1.20+:-4.30,-1.20+:4.30,0.00+:0.00 +(+),1.20+:-4.30,1.20+:-4.30,2.40+:-8.60 +(+),1.20+:-4.30,1L%2L+:1,1.70+:-3.30 +(+),1.20+:-4.30,1L%2L+:3L%4L,1.70+:-3.55 +(+),1.20+:-4.30,3<:1,2.82+:-1.78 +(+),1.20+:-4.30,3<:-2.14,-0.421+:-6.82 +(+),1.20+:-4.30,3.00<:-3,-1.77+:-4.72 +(+),1.20+:-4.30,3.10<:2.50,-1.28+:-2.44 +(+),1.20+:-4.30,2L%3L<:2,0.923+:-3.69 +(+),1.20+:-4.30,1L%2L<:3L%4L,1.57+:-3.96 +(+),1.20+:-4.30,-inf,-inf+:-4.30 +(+),1.20+:-4.30,nan,nan+:-4.30 (+),1L%2L+:1,1,3L%2L+:1 (+),1L%2L+:1,-1,(-1L)%2L+:1 (+),1L%2L+:1,0,1L%2L+:1 -(+),1L%2L+:1,0.000,0.5000+:1 -(+),1L%2L+:1,1.200,1.700+:1 -(+),1L%2L+:1,-1.200,-0.7000+:1 +(+),1L%2L+:1,0.00,0.500+:1 +(+),1L%2L+:1,1.20,1.70+:1 +(+),1L%2L+:1,-1.20,-0.700+:1 (+),1L%2L+:1,1L%3L,5L%6L+:1 (+),1L%2L+:1,(-1L)%4L,1L%4L+:1 (+),1L%2L+:1,1+:2,3L%2L+:3 (+),1L%2L+:1,-1+:2,(-1L)%2L+:3 (+),1L%2L+:1,1+:-2,3L%2L+:-1 -(+),1L%2L+:1,-1.200+:4.300,-0.7000+:5.300 -(+),1L%2L+:1,1.200+:-4.300,1.700+:-3.300 +(+),1L%2L+:1,-1.20+:4.30,-0.700+:5.30 +(+),1L%2L+:1,1.20+:-4.30,1.70+:-3.30 (+),1L%2L+:1,1L%2L+:1,1L%1L+:2 (+),1L%2L+:1,1L%2L+:3L%4L,1L%1L+:7L%4L -(+),1L%2L+:1,3<:1,2.121+:3.524 -(+),1L%2L+:1,3<:-2.142,-1.121+:-1.524 -(+),1L%2L+:1,3.000<:-3,-2.470+:0.5766 -(+),1L%2L+:1,3.100<:2.500,-1.984+:2.855 -(+),1L%2L+:1,2L%3L<:2,0.2226+:1.606 -(+),1L%2L+:1,1L%2L<:3L%4L,0.8658+:1.341 +(+),1L%2L+:1,3<:1,2.12+:3.52 +(+),1L%2L+:1,3<:-2.14,-1.12+:-1.52 +(+),1L%2L+:1,3.00<:-3,-2.47+:0.577 +(+),1L%2L+:1,3.10<:2.50,-1.98+:2.86 +(+),1L%2L+:1,2L%3L<:2,0.223+:1.61 +(+),1L%2L+:1,1L%2L<:3L%4L,0.866+:1.34 (+),1L%2L+:1,-inf,-inf+:1 (+),1L%2L+:1,nan,nan+:1 (+),1L%2L+:3L%4L,1,3L%2L+:3L%4L (+),1L%2L+:3L%4L,-1,(-1L)%2L+:3L%4L (+),1L%2L+:3L%4L,0,1L%2L+:3L%4L -(+),1L%2L+:3L%4L,0.000,0.5000+:3L%4L -(+),1L%2L+:3L%4L,1.200,1.700+:3L%4L -(+),1L%2L+:3L%4L,-1.200,-0.7000+:3L%4L +(+),1L%2L+:3L%4L,0.00,0.500+:3L%4L +(+),1L%2L+:3L%4L,1.20,1.70+:3L%4L +(+),1L%2L+:3L%4L,-1.20,-0.700+:3L%4L (+),1L%2L+:3L%4L,1L%3L,5L%6L+:3L%4L (+),1L%2L+:3L%4L,(-1L)%4L,1L%4L+:3L%4L (+),1L%2L+:3L%4L,1+:2,3L%2L+:11L%4L (+),1L%2L+:3L%4L,-1+:2,(-1L)%2L+:11L%4L (+),1L%2L+:3L%4L,1+:-2,3L%2L+:(-5L)%4L -(+),1L%2L+:3L%4L,-1.200+:4.300,-0.7000+:5.050 -(+),1L%2L+:3L%4L,1.200+:-4.300,1.700+:-3.550 +(+),1L%2L+:3L%4L,-1.20+:4.30,-0.700+:5.05 +(+),1L%2L+:3L%4L,1.20+:-4.30,1.70+:-3.55 (+),1L%2L+:3L%4L,1L%2L+:1,1L%1L+:7L%4L (+),1L%2L+:3L%4L,1L%2L+:3L%4L,1L%1L+:3L%2L -(+),1L%2L+:3L%4L,3<:1,2.121+:3.274 -(+),1L%2L+:3L%4L,3<:-2.142,-1.121+:-1.774 -(+),1L%2L+:3L%4L,3.000<:-3,-2.470+:0.3266 -(+),1L%2L+:3L%4L,3.100<:2.500,-1.984+:2.605 -(+),1L%2L+:3L%4L,2L%3L<:2,0.2226+:1.356 -(+),1L%2L+:3L%4L,1L%2L<:3L%4L,0.8658+:1.091 +(+),1L%2L+:3L%4L,3<:1,2.12+:3.27 +(+),1L%2L+:3L%4L,3<:-2.14,-1.12+:-1.77 +(+),1L%2L+:3L%4L,3.00<:-3,-2.47+:0.327 +(+),1L%2L+:3L%4L,3.10<:2.50,-1.98+:2.61 +(+),1L%2L+:3L%4L,2L%3L<:2,0.223+:1.36 +(+),1L%2L+:3L%4L,1L%2L<:3L%4L,0.866+:1.09 (+),1L%2L+:3L%4L,-inf,-inf+:3L%4L (+),1L%2L+:3L%4L,nan,nan+:3L%4L -(+),3<:1,1,2.621+:2.524 -(+),3<:1,-1,0.6209+:2.524 -(+),3<:1,0,1.621+:2.524 -(+),3<:1,0.000,1.621+:2.524 -(+),3<:1,1.200,2.821+:2.524 -(+),3<:1,-1.200,0.4209+:2.524 -(+),3<:1,1L%3L,1.954+:2.524 -(+),3<:1,(-1L)%4L,1.371+:2.524 -(+),3<:1,1+:2,2.621+:4.524 -(+),3<:1,-1+:2,0.6209+:4.524 -(+),3<:1,1+:-2,2.621+:0.5244 -(+),3<:1,-1.200+:4.300,0.4209+:6.824 -(+),3<:1,1.200+:-4.300,2.821+:-1.776 -(+),3<:1,1L%2L+:1,2.121+:3.524 -(+),3<:1,1L%2L+:3L%4L,2.121+:3.274 -(+),3<:1,3<:1,6.000<:1.000 -(+),3<:1,3<:-2.142,8.006e-16<:2.554 -(+),3<:1,3.000<:-3,2.497<:2.142 -(+),3<:1,3.100<:2.500,4.464<:1.765 -(+),3<:1,2L%3L<:2,3.407<:1.165 -(+),3<:1,1L%2L<:3L%4L,3.487<:0.9645 -(+),3<:1,-inf,-inf+:2.524 -(+),3<:1,nan,nan+:2.524 -(+),3<:-2.142,1,-0.6209+:-2.524 -(+),3<:-2.142,-1,-2.621+:-2.524 -(+),3<:-2.142,0,-1.621+:-2.524 -(+),3<:-2.142,0.000,-1.621+:-2.524 -(+),3<:-2.142,1.200,-0.4209+:-2.524 -(+),3<:-2.142,-1.200,-2.821+:-2.524 -(+),3<:-2.142,1L%3L,-1.288+:-2.524 -(+),3<:-2.142,(-1L)%4L,-1.871+:-2.524 -(+),3<:-2.142,1+:2,-0.6209+:-0.5244 -(+),3<:-2.142,-1+:2,-2.621+:-0.5244 -(+),3<:-2.142,1+:-2,-0.6209+:-4.524 -(+),3<:-2.142,-1.200+:4.300,-2.821+:1.776 -(+),3<:-2.142,1.200+:-4.300,-0.4209+:-6.824 -(+),3<:-2.142,1L%2L+:1,-1.121+:-1.524 -(+),3<:-2.142,1L%2L+:3L%4L,-1.121+:-1.774 -(+),3<:-2.142,3<:1,8.006e-16<:2.554 -(+),3<:-2.142,3<:-2.142,6.000<:-2.142 -(+),3<:-2.142,3.000<:-3,5.456<:-2.571 -(+),3<:-2.142,3.100<:2.500,4.159<:-2.980 -(+),3<:-2.142,2L%3L<:2,2.699<:-2.351 -(+),3<:-2.142,1L%2L<:3L%4L,2.519<:-2.092 -(+),3<:-2.142,-inf,-inf+:-2.524 -(+),3<:-2.142,nan,nan+:-2.524 -(+),3.000<:-3,1,-1.970+:-0.4234 -(+),3.000<:-3,-1,-3.970+:-0.4234 -(+),3.000<:-3,0,-2.970+:-0.4234 -(+),3.000<:-3,0.000,-2.970+:-0.4234 -(+),3.000<:-3,1.200,-1.770+:-0.4234 -(+),3.000<:-3,-1.200,-4.170+:-0.4234 -(+),3.000<:-3,1L%3L,-2.637+:-0.4234 -(+),3.000<:-3,(-1L)%4L,-3.220+:-0.4234 -(+),3.000<:-3,1+:2,-1.970+:1.577 -(+),3.000<:-3,-1+:2,-3.970+:1.577 -(+),3.000<:-3,1+:-2,-1.970+:-2.423 -(+),3.000<:-3,-1.200+:4.300,-4.170+:3.877 -(+),3.000<:-3,1.200+:-4.300,-1.770+:-4.723 -(+),3.000<:-3,1L%2L+:1,-2.470+:0.5766 -(+),3.000<:-3,1L%2L+:3L%4L,-2.470+:0.3266 -(+),3.000<:-3,3<:1,2.497<:2.142 -(+),3.000<:-3,3<:-2.142,5.456<:-2.571 -(+),3.000<:-3,3.000<:-3,6.000<:-3.000 -(+),3.000<:-3,3.100<:2.500,5.638<:2.885 -(+),3.000<:-3,2L%3L<:2,3.253<:3.085 -(+),3.000<:-3,1L%2L<:3L%4L,2.605<:-3.110 -(+),3.000<:-3,-inf,-inf+:-0.4234 -(+),3.000<:-3,nan,nan+:-0.4234 -(+),3.100<:2.500,1,-1.484+:1.855 -(+),3.100<:2.500,-1,-3.484+:1.855 -(+),3.100<:2.500,0,-2.484+:1.855 -(+),3.100<:2.500,0.000,-2.484+:1.855 -(+),3.100<:2.500,1.200,-1.284+:1.855 -(+),3.100<:2.500,-1.200,-3.684+:1.855 -(+),3.100<:2.500,1L%3L,-2.150+:1.855 -(+),3.100<:2.500,(-1L)%4L,-2.734+:1.855 -(+),3.100<:2.500,1+:2,-1.484+:3.855 -(+),3.100<:2.500,-1+:2,-3.484+:3.855 -(+),3.100<:2.500,1+:-2,-1.484+:-0.1447 -(+),3.100<:2.500,-1.200+:4.300,-3.684+:6.155 -(+),3.100<:2.500,1.200+:-4.300,-1.284+:-2.445 -(+),3.100<:2.500,1L%2L+:1,-1.984+:2.855 -(+),3.100<:2.500,1L%2L+:3L%4L,-1.984+:2.605 -(+),3.100<:2.500,3<:1,4.464<:1.765 -(+),3.100<:2.500,3<:-2.142,4.159<:-2.980 -(+),3.100<:2.500,3.000<:-3,5.638<:2.885 -(+),3.100<:2.500,3.100<:2.500,6.200<:2.500 -(+),3.100<:2.500,2L%3L<:2,3.699<:2.413 -(+),3.100<:2.500,1L%2L<:3L%4L,3.051<:2.338 -(+),3.100<:2.500,-inf,-inf+:1.855 -(+),3.100<:2.500,nan,nan+:1.855 -(+),2L%3L<:2,1,0.7226+:0.6062 -(+),2L%3L<:2,-1,-1.277+:0.6062 -(+),2L%3L<:2,0,-0.2774+:0.6062 -(+),2L%3L<:2,0.000,-0.2774+:0.6062 -(+),2L%3L<:2,1.200,0.9226+:0.6062 -(+),2L%3L<:2,-1.200,-1.477+:0.6062 -(+),2L%3L<:2,1L%3L,0.05590+:0.6062 -(+),2L%3L<:2,(-1L)%4L,-0.5274+:0.6062 -(+),2L%3L<:2,1+:2,0.7226+:2.606 -(+),2L%3L<:2,-1+:2,-1.277+:2.606 -(+),2L%3L<:2,1+:-2,0.7226+:-1.394 -(+),2L%3L<:2,-1.200+:4.300,-1.477+:4.906 -(+),2L%3L<:2,1.200+:-4.300,0.9226+:-3.694 -(+),2L%3L<:2,1L%2L+:1,0.2226+:1.606 -(+),2L%3L<:2,1L%2L+:3L%4L,0.2226+:1.356 -(+),2L%3L<:2,3<:1,3.407<:1.165 -(+),2L%3L<:2,3<:-2.142,2.699<:-2.351 -(+),2L%3L<:2,3.000<:-3,3.253<:3.085 -(+),2L%3L<:2,3.100<:2.500,3.699<:2.413 -(+),2L%3L<:2,2L%3L<:2,1.333<:2.000 -(+),2L%3L<:2,1L%2L<:3L%4L,0.9511<:1.478 -(+),2L%3L<:2,-inf,-inf+:0.6062 -(+),2L%3L<:2,nan,nan+:0.6062 -(+),1L%2L<:3L%4L,1,1.366+:0.3408 -(+),1L%2L<:3L%4L,-1,-0.6342+:0.3408 -(+),1L%2L<:3L%4L,0,0.3658+:0.3408 -(+),1L%2L<:3L%4L,0.000,0.3658+:0.3408 -(+),1L%2L<:3L%4L,1.200,1.566+:0.3408 -(+),1L%2L<:3L%4L,-1.200,-0.8342+:0.3408 -(+),1L%2L<:3L%4L,1L%3L,0.6992+:0.3408 -(+),1L%2L<:3L%4L,(-1L)%4L,0.1158+:0.3408 -(+),1L%2L<:3L%4L,1+:2,1.366+:2.341 -(+),1L%2L<:3L%4L,-1+:2,-0.6342+:2.341 -(+),1L%2L<:3L%4L,1+:-2,1.366+:-1.659 -(+),1L%2L<:3L%4L,-1.200+:4.300,-0.8342+:4.641 -(+),1L%2L<:3L%4L,1.200+:-4.300,1.566+:-3.959 -(+),1L%2L<:3L%4L,1L%2L+:1,0.8658+:1.341 -(+),1L%2L<:3L%4L,1L%2L+:3L%4L,0.8658+:1.091 -(+),1L%2L<:3L%4L,3<:1,3.487<:0.9645 -(+),1L%2L<:3L%4L,3<:-2.142,2.519<:-2.092 -(+),1L%2L<:3L%4L,3.000<:-3,2.605<:-3.110 -(+),1L%2L<:3L%4L,3.100<:2.500,3.051<:2.338 -(+),1L%2L<:3L%4L,2L%3L<:2,0.9511<:1.478 -(+),1L%2L<:3L%4L,1L%2L<:3L%4L,1.000<:0.7500 -(+),1L%2L<:3L%4L,-inf,-inf+:0.3408 -(+),1L%2L<:3L%4L,nan,nan+:0.3408 +(+),3<:1,1,2.62+:2.52 +(+),3<:1,-1,0.621+:2.52 +(+),3<:1,0,1.62+:2.52 +(+),3<:1,0.00,1.62+:2.52 +(+),3<:1,1.20,2.82+:2.52 +(+),3<:1,-1.20,0.421+:2.52 +(+),3<:1,1L%3L,1.95+:2.52 +(+),3<:1,(-1L)%4L,1.37+:2.52 +(+),3<:1,1+:2,2.62+:4.52 +(+),3<:1,-1+:2,0.621+:4.52 +(+),3<:1,1+:-2,2.62+:0.524 +(+),3<:1,-1.20+:4.30,0.421+:6.82 +(+),3<:1,1.20+:-4.30,2.82+:-1.78 +(+),3<:1,1L%2L+:1,2.12+:3.52 +(+),3<:1,1L%2L+:3L%4L,2.12+:3.27 +(+),3<:1,3<:1,6.00<:1.00 +(+),3<:1,3<:-2.14,8.01e-16<:2.55 +(+),3<:1,3.00<:-3,2.50<:2.14 +(+),3<:1,3.10<:2.50,4.46<:1.77 +(+),3<:1,2L%3L<:2,3.41<:1.17 +(+),3<:1,1L%2L<:3L%4L,3.49<:0.965 +(+),3<:1,-inf,-inf+:2.52 +(+),3<:1,nan,nan+:2.52 +(+),3<:-2.14,1,-0.621+:-2.52 +(+),3<:-2.14,-1,-2.62+:-2.52 +(+),3<:-2.14,0,-1.62+:-2.52 +(+),3<:-2.14,0.00,-1.62+:-2.52 +(+),3<:-2.14,1.20,-0.421+:-2.52 +(+),3<:-2.14,-1.20,-2.82+:-2.52 +(+),3<:-2.14,1L%3L,-1.29+:-2.52 +(+),3<:-2.14,(-1L)%4L,-1.87+:-2.52 +(+),3<:-2.14,1+:2,-0.621+:-0.524 +(+),3<:-2.14,-1+:2,-2.62+:-0.524 +(+),3<:-2.14,1+:-2,-0.621+:-4.52 +(+),3<:-2.14,-1.20+:4.30,-2.82+:1.78 +(+),3<:-2.14,1.20+:-4.30,-0.421+:-6.82 +(+),3<:-2.14,1L%2L+:1,-1.12+:-1.52 +(+),3<:-2.14,1L%2L+:3L%4L,-1.12+:-1.77 +(+),3<:-2.14,3<:1,8.01e-16<:2.55 +(+),3<:-2.14,3<:-2.14,6.00<:-2.14 +(+),3<:-2.14,3.00<:-3,5.46<:-2.57 +(+),3<:-2.14,3.10<:2.50,4.16<:-2.98 +(+),3<:-2.14,2L%3L<:2,2.70<:-2.35 +(+),3<:-2.14,1L%2L<:3L%4L,2.52<:-2.09 +(+),3<:-2.14,-inf,-inf+:-2.52 +(+),3<:-2.14,nan,nan+:-2.52 +(+),3.00<:-3,1,-1.97+:-0.423 +(+),3.00<:-3,-1,-3.97+:-0.423 +(+),3.00<:-3,0,-2.97+:-0.423 +(+),3.00<:-3,0.00,-2.97+:-0.423 +(+),3.00<:-3,1.20,-1.77+:-0.423 +(+),3.00<:-3,-1.20,-4.17+:-0.423 +(+),3.00<:-3,1L%3L,-2.64+:-0.423 +(+),3.00<:-3,(-1L)%4L,-3.22+:-0.423 +(+),3.00<:-3,1+:2,-1.97+:1.58 +(+),3.00<:-3,-1+:2,-3.97+:1.58 +(+),3.00<:-3,1+:-2,-1.97+:-2.42 +(+),3.00<:-3,-1.20+:4.30,-4.17+:3.88 +(+),3.00<:-3,1.20+:-4.30,-1.77+:-4.72 +(+),3.00<:-3,1L%2L+:1,-2.47+:0.577 +(+),3.00<:-3,1L%2L+:3L%4L,-2.47+:0.327 +(+),3.00<:-3,3<:1,2.50<:2.14 +(+),3.00<:-3,3<:-2.14,5.46<:-2.57 +(+),3.00<:-3,3.00<:-3,6.00<:-3.00 +(+),3.00<:-3,3.10<:2.50,5.64<:2.88 +(+),3.00<:-3,2L%3L<:2,3.25<:3.09 +(+),3.00<:-3,1L%2L<:3L%4L,2.61<:-3.11 +(+),3.00<:-3,-inf,-inf+:-0.423 +(+),3.00<:-3,nan,nan+:-0.423 +(+),3.10<:2.50,1,-1.48+:1.86 +(+),3.10<:2.50,-1,-3.48+:1.86 +(+),3.10<:2.50,0,-2.48+:1.86 +(+),3.10<:2.50,0.00,-2.48+:1.86 +(+),3.10<:2.50,1.20,-1.28+:1.86 +(+),3.10<:2.50,-1.20,-3.68+:1.86 +(+),3.10<:2.50,1L%3L,-2.15+:1.86 +(+),3.10<:2.50,(-1L)%4L,-2.73+:1.86 +(+),3.10<:2.50,1+:2,-1.48+:3.86 +(+),3.10<:2.50,-1+:2,-3.48+:3.86 +(+),3.10<:2.50,1+:-2,-1.48+:-0.145 +(+),3.10<:2.50,-1.20+:4.30,-3.68+:6.16 +(+),3.10<:2.50,1.20+:-4.30,-1.28+:-2.44 +(+),3.10<:2.50,1L%2L+:1,-1.98+:2.86 +(+),3.10<:2.50,1L%2L+:3L%4L,-1.98+:2.61 +(+),3.10<:2.50,3<:1,4.46<:1.77 +(+),3.10<:2.50,3<:-2.14,4.16<:-2.98 +(+),3.10<:2.50,3.00<:-3,5.64<:2.88 +(+),3.10<:2.50,3.10<:2.50,6.20<:2.50 +(+),3.10<:2.50,2L%3L<:2,3.70<:2.41 +(+),3.10<:2.50,1L%2L<:3L%4L,3.05<:2.34 +(+),3.10<:2.50,-inf,-inf+:1.86 +(+),3.10<:2.50,nan,nan+:1.86 +(+),2L%3L<:2,1,0.723+:0.606 +(+),2L%3L<:2,-1,-1.28+:0.606 +(+),2L%3L<:2,0,-0.277+:0.606 +(+),2L%3L<:2,0.00,-0.277+:0.606 +(+),2L%3L<:2,1.20,0.923+:0.606 +(+),2L%3L<:2,-1.20,-1.48+:0.606 +(+),2L%3L<:2,1L%3L,0.0559+:0.606 +(+),2L%3L<:2,(-1L)%4L,-0.527+:0.606 +(+),2L%3L<:2,1+:2,0.723+:2.61 +(+),2L%3L<:2,-1+:2,-1.28+:2.61 +(+),2L%3L<:2,1+:-2,0.723+:-1.39 +(+),2L%3L<:2,-1.20+:4.30,-1.48+:4.91 +(+),2L%3L<:2,1.20+:-4.30,0.923+:-3.69 +(+),2L%3L<:2,1L%2L+:1,0.223+:1.61 +(+),2L%3L<:2,1L%2L+:3L%4L,0.223+:1.36 +(+),2L%3L<:2,3<:1,3.41<:1.17 +(+),2L%3L<:2,3<:-2.14,2.70<:-2.35 +(+),2L%3L<:2,3.00<:-3,3.25<:3.09 +(+),2L%3L<:2,3.10<:2.50,3.70<:2.41 +(+),2L%3L<:2,2L%3L<:2,1.33<:2.00 +(+),2L%3L<:2,1L%2L<:3L%4L,0.951<:1.48 +(+),2L%3L<:2,-inf,-inf+:0.606 +(+),2L%3L<:2,nan,nan+:0.606 +(+),1L%2L<:3L%4L,1,1.37+:0.341 +(+),1L%2L<:3L%4L,-1,-0.634+:0.341 +(+),1L%2L<:3L%4L,0,0.366+:0.341 +(+),1L%2L<:3L%4L,0.00,0.366+:0.341 +(+),1L%2L<:3L%4L,1.20,1.57+:0.341 +(+),1L%2L<:3L%4L,-1.20,-0.834+:0.341 +(+),1L%2L<:3L%4L,1L%3L,0.699+:0.341 +(+),1L%2L<:3L%4L,(-1L)%4L,0.116+:0.341 +(+),1L%2L<:3L%4L,1+:2,1.37+:2.34 +(+),1L%2L<:3L%4L,-1+:2,-0.634+:2.34 +(+),1L%2L<:3L%4L,1+:-2,1.37+:-1.66 +(+),1L%2L<:3L%4L,-1.20+:4.30,-0.834+:4.64 +(+),1L%2L<:3L%4L,1.20+:-4.30,1.57+:-3.96 +(+),1L%2L<:3L%4L,1L%2L+:1,0.866+:1.34 +(+),1L%2L<:3L%4L,1L%2L+:3L%4L,0.866+:1.09 +(+),1L%2L<:3L%4L,3<:1,3.49<:0.965 +(+),1L%2L<:3L%4L,3<:-2.14,2.52<:-2.09 +(+),1L%2L<:3L%4L,3.00<:-3,2.61<:-3.11 +(+),1L%2L<:3L%4L,3.10<:2.50,3.05<:2.34 +(+),1L%2L<:3L%4L,2L%3L<:2,0.951<:1.48 +(+),1L%2L<:3L%4L,1L%2L<:3L%4L,1.00<:0.750 +(+),1L%2L<:3L%4L,-inf,-inf+:0.341 +(+),1L%2L<:3L%4L,nan,nan+:0.341 (+),-inf,1,-inf (+),-inf,-1,-inf (+),-inf,0,-inf -(+),-inf,0.000,-inf -(+),-inf,1.200,-inf -(+),-inf,-1.200,-inf +(+),-inf,0.00,-inf +(+),-inf,1.20,-inf +(+),-inf,-1.20,-inf (+),-inf,1L%3L,-inf (+),-inf,(-1L)%4L,-inf (+),-inf,1+:2,-inf+:2 (+),-inf,-1+:2,-inf+:2 (+),-inf,1+:-2,-inf+:-2 -(+),-inf,-1.200+:4.300,-inf+:4.300 -(+),-inf,1.200+:-4.300,-inf+:-4.300 +(+),-inf,-1.20+:4.30,-inf+:4.30 +(+),-inf,1.20+:-4.30,-inf+:-4.30 (+),-inf,1L%2L+:1,-inf+:1 (+),-inf,1L%2L+:3L%4L,-inf+:3L%4L -(+),-inf,3<:1,-inf+:2.524 -(+),-inf,3<:-2.142,-inf+:-2.524 -(+),-inf,3.000<:-3,-inf+:-0.4234 -(+),-inf,3.100<:2.500,-inf+:1.855 -(+),-inf,2L%3L<:2,-inf+:0.6062 -(+),-inf,1L%2L<:3L%4L,-inf+:0.3408 +(+),-inf,3<:1,-inf+:2.52 +(+),-inf,3<:-2.14,-inf+:-2.52 +(+),-inf,3.00<:-3,-inf+:-0.423 +(+),-inf,3.10<:2.50,-inf+:1.86 +(+),-inf,2L%3L<:2,-inf+:0.606 +(+),-inf,1L%2L<:3L%4L,-inf+:0.341 (+),-inf,-inf,-inf (+),-inf,nan,nan (+),nan,1,nan (+),nan,-1,nan (+),nan,0,nan -(+),nan,0.000,nan -(+),nan,1.200,nan -(+),nan,-1.200,nan +(+),nan,0.00,nan +(+),nan,1.20,nan +(+),nan,-1.20,nan (+),nan,1L%3L,nan (+),nan,(-1L)%4L,nan (+),nan,1+:2,nan+:2 (+),nan,-1+:2,nan+:2 (+),nan,1+:-2,nan+:-2 -(+),nan,-1.200+:4.300,nan+:4.300 -(+),nan,1.200+:-4.300,nan+:-4... [truncated message content] |
From: <ag...@us...> - 2008-08-22 12:39:16
|
Revision: 572 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=572&view=rev Author: agraef Date: 2008-08-22 12:39:25 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Round results to 4 digits, to prevent failing tests due to small rounding discrepancies. Modified Paths: -------------- pure/trunk/test/test020.log Modified: pure/trunk/test/test020.log =================================================================== --- pure/trunk/test/test020.log 2008-08-22 12:38:42 UTC (rev 571) +++ pure/trunk/test/test020.log 2008-08-22 12:39:25 UTC (rev 572) @@ -43,7 +43,7 @@ check _/*0:001*/ _/*0:01*/ z/*0:1*/ = z/*0:1*/; format (f/*0:101*/,x/*0:1101*/,y/*0:11101*/,z/*0:1111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show y/*0:11101*/+","+show z/*0:1111*/; format (f/*0:101*/,x/*0:1101*/,z/*0:111*/) = str f/*0:101*/+","+show x/*0:1101*/+","+show z/*0:111*/; -show x/*0:1*/::double = sprintf "%#0.6g" x/*0:1*/; +show x/*0:1*/::double = sprintf "%#0.4g" x/*0:1*/; show (x/*0:101*/+:y/*0:11*/) = show x/*0:101*/+"+:"+show y/*0:11*/; show (x/*0:101*/<:y/*0:11*/) = show x/*0:101*/+"<:"+show y/*0:11*/; show x/*0:1*/ = str x/*0:1*/; @@ -146,7 +146,7 @@ state 12: #0 #1 } { - rule #0: show x::double = sprintf "%#0.6g" x + rule #0: show x::double = sprintf "%#0.4g" x rule #1: show (x+:y) = show x+"+:"+show y rule #2: show (x<:y) = show x+"<:"+show y rule #3: show x = str x @@ -183,393 +183,393 @@ state 15: #2 #3 } *** UNARY *** -sqrt,1,1.00000 -sqrt,-1,0.00000+:1.00000 -sqrt,0,0.00000 -sqrt,0.00000,0.00000 -sqrt,1.20000,1.09545 -sqrt,-1.20000,0.00000+:1.09545 -sqrt,1L%3L,0.577350 -sqrt,(-1L)%4L,0.00000+:0.500000 -sqrt,1+:2,1.27202+:0.786151 -sqrt,-1+:2,0.786151+:1.27202 -sqrt,1+:-2,1.27202+:0.786151 -sqrt,-1.20000+:4.30000,1.27756+:1.68290 -sqrt,1.20000+:-4.30000,1.68290+:1.27756 -sqrt,1L%2L+:1,0.899454+:0.555893 -sqrt,1L%2L+:3L%4L,0.837075+:0.447989 -sqrt,3<:1,1.73205<:0.500000 -sqrt,3<:-2.14159,1.73205<:-1.07080 -sqrt,3.00000<:-3,1.73205<:-1.50000 -sqrt,3.10000<:2.50000,1.76068<:1.25000 -sqrt,2L%3L<:2,0.816497<:1.00000 -sqrt,1L%2L<:3L%4L,0.707107<:0.375000 -sqrt,-inf,0.00000+:inf +sqrt,1,1.000 +sqrt,-1,0.000+:1.000 +sqrt,0,0.000 +sqrt,0.000,0.000 +sqrt,1.200,1.095 +sqrt,-1.200,0.000+:1.095 +sqrt,1L%3L,0.5774 +sqrt,(-1L)%4L,0.000+:0.5000 +sqrt,1+:2,1.272+:0.7862 +sqrt,-1+:2,0.7862+:1.272 +sqrt,1+:-2,1.272+:0.7862 +sqrt,-1.200+:4.300,1.278+:1.683 +sqrt,1.200+:-4.300,1.683+:1.278 +sqrt,1L%2L+:1,0.8995+:0.5559 +sqrt,1L%2L+:3L%4L,0.8371+:0.4480 +sqrt,3<:1,1.732<:0.5000 +sqrt,3<:-2.142,1.732<:-1.071 +sqrt,3.000<:-3,1.732<:-1.500 +sqrt,3.100<:2.500,1.761<:1.250 +sqrt,2L%3L<:2,0.8165<:1.000 +sqrt,1L%2L<:3L%4L,0.7071<:0.3750 +sqrt,-inf,0.000+:inf sqrt,nan,nan -sin,1,0.841471 -sin,-1,-0.841471 -sin,0,0.00000 -sin,0.00000,0.00000 -sin,1.20000,0.932039 -sin,-1.20000,-0.932039 -sin,1L%3L,0.327195 -sin,(-1L)%4L,-0.247404 -sin,1+:2,3.16578+:1.95960 -sin,-1+:2,-3.16578+:1.95960 -sin,1+:-2,3.16578+:-1.95960 -sin,-1.20000+:4.30000,-34.3519+:13.3504 -sin,1.20000+:-4.30000,34.3519+:-13.3504 -sin,1L%2L+:1,0.739792+:1.03134 -sin,1L%2L+:3L%4L,0.620704+:0.721651 -sin,3<:1,6.28164<:-0.0494726 -sin,3<:-2.14159,6.28164<:3.09212 -sin,3.00000<:-3,0.468364<:1.97990 -sin,3.10000<:2.50000,3.17789<:-2.25266 -sin,2L%3L<:2,0.699834<:2.05499 -sin,1L%2L<:3L%4L,0.498700<:0.708394 +sin,1,0.8415 +sin,-1,-0.8415 +sin,0,0.000 +sin,0.000,0.000 +sin,1.200,0.9320 +sin,-1.200,-0.9320 +sin,1L%3L,0.3272 +sin,(-1L)%4L,-0.2474 +sin,1+:2,3.166+:1.960 +sin,-1+:2,-3.166+:1.960 +sin,1+:-2,3.166+:-1.960 +sin,-1.200+:4.300,-34.35+:13.35 +sin,1.200+:-4.300,34.35+:-13.35 +sin,1L%2L+:1,0.7398+:1.031 +sin,1L%2L+:3L%4L,0.6207+:0.7217 +sin,3<:1,6.282<:-0.04947 +sin,3<:-2.142,6.282<:3.092 +sin,3.000<:-3,0.4684<:1.980 +sin,3.100<:2.500,3.178<:-2.253 +sin,2L%3L<:2,0.6998<:2.055 +sin,1L%2L<:3L%4L,0.4987<:0.7084 sin,-inf,nan sin,nan,nan -cos,1,0.540302 -cos,-1,0.540302 -cos,0,1.00000 -cos,0.00000,1.00000 -cos,1.20000,0.362358 -cos,-1.20000,0.362358 -cos,1L%3L,0.944957 -cos,(-1L)%4L,0.968912 -cos,1+:2,2.03272+:-3.05190 -cos,-1+:2,2.03272+:3.05190 -cos,1+:-2,2.03272+:3.05190 -cos,-1.20000+:4.30000,13.3553+:34.3392 -cos,1.20000+:-4.30000,13.3553+:34.3392 -cos,1L%2L+:1,1.35418+:-0.563421 -cos,1L%2L+:3L%4L,1.13619+:-0.394240 -cos,3<:1,6.20193<:-1.62155 -cos,3<:-2.14159,6.20193<:-1.62155 -cos,3.00000<:-3,1.07751<:-3.07242 -cos,3.10000<:2.50000,3.21729<:2.50707 -cos,2L%3L<:2,1.15747<:0.152985 -cos,1L%2L<:3L%4L,0.996368<:-0.125077 +cos,1,0.5403 +cos,-1,0.5403 +cos,0,1.000 +cos,0.000,1.000 +cos,1.200,0.3624 +cos,-1.200,0.3624 +cos,1L%3L,0.9450 +cos,(-1L)%4L,0.9689 +cos,1+:2,2.033+:-3.052 +cos,-1+:2,2.033+:3.052 +cos,1+:-2,2.033+:3.052 +cos,-1.200+:4.300,13.36+:34.34 +cos,1.200+:-4.300,13.36+:34.34 +cos,1L%2L+:1,1.354+:-0.5634 +cos,1L%2L+:3L%4L,1.136+:-0.3942 +cos,3<:1,6.202<:-1.622 +cos,3<:-2.142,6.202<:-1.622 +cos,3.000<:-3,1.078<:-3.072 +cos,3.100<:2.500,3.217<:2.507 +cos,2L%3L<:2,1.157<:0.1530 +cos,1L%2L<:3L%4L,0.9964<:-0.1251 cos,-inf,nan cos,nan,nan -tan,1,1.55741 -tan,-1,-1.55741 -tan,0,0.00000 -tan,0.00000,0.00000 -tan,1.20000,2.57215 -tan,-1.20000,-2.57215 -tan,1L%3L,0.346254 -tan,(-1L)%4L,-0.255342 -tan,1+:2,0.0338128+:1.01479 -tan,-1+:2,-0.0338128+:1.01479 -tan,1+:-2,0.0338128+:-1.01479 -tan,-1.20000+:4.30000,-0.000248781+:1.00027 -tan,1.20000+:-4.30000,0.000248781+:-1.00027 -tan,1L%2L+:1,0.195577+:0.842966 -tan,1L%2L+:3L%4L,0.290893+:0.736084 -tan,3<:1,1.01285<:1.57208 -tan,3<:-2.14159,1.01285<:-1.56951 -tan,3.00000<:-3,0.434671<:-1.23087 -tan,3.10000<:2.50000,0.987754<:1.52345 -tan,2L%3L<:2,0.604623<:1.90201 -tan,1L%2L<:3L%4L,0.500518<:0.833471 +tan,1,1.557 +tan,-1,-1.557 +tan,0,0.000 +tan,0.000,0.000 +tan,1.200,2.572 +tan,-1.200,-2.572 +tan,1L%3L,0.3463 +tan,(-1L)%4L,-0.2553 +tan,1+:2,0.03381+:1.015 +tan,-1+:2,-0.03381+:1.015 +tan,1+:-2,0.03381+:-1.015 +tan,-1.200+:4.300,-0.0002488+:1.000 +tan,1.200+:-4.300,0.0002488+:-1.000 +tan,1L%2L+:1,0.1956+:0.8430 +tan,1L%2L+:3L%4L,0.2909+:0.7361 +tan,3<:1,1.013<:1.572 +tan,3<:-2.142,1.013<:-1.570 +tan,3.000<:-3,0.4347<:-1.231 +tan,3.100<:2.500,0.9878<:1.523 +tan,2L%3L<:2,0.6046<:1.902 +tan,1L%2L<:3L%4L,0.5005<:0.8335 tan,-inf,nan tan,nan,nan -ln,1,0.00000 -ln,-1,0.00000+:3.14159 +ln,1,0.000 +ln,-1,0.000+:3.142 ln,0,-inf -ln,0.00000,-inf -ln,1.20000,0.182322 -ln,-1.20000,0.182322+:3.14159 -ln,1L%3L,-1.09861 -ln,(-1L)%4L,-1.38629+:3.14159 -ln,1+:2,0.804719+:1.10715 -ln,-1+:2,0.804719+:2.03444 -ln,1+:-2,0.804719+:-1.10715 -ln,-1.20000+:4.30000,1.49611+:1.84294 -ln,1.20000+:-4.30000,1.49611+:-1.29865 -ln,1L%2L+:1,0.111572+:1.10715 -ln,1L%2L+:3L%4L,-0.103820+:0.982794 -ln,3<:1,1.48558<:0.738443 -ln,3<:-2.14159,2.40694<:-1.09681 -ln,3.00000<:-3,3.19483<:-1.21976 -ln,3.10000<:2.50000,2.74410<:1.14581 -ln,2L%3L<:2,2.04069<:1.77082 -ln,1L%2L<:3L%4L,1.02125<:2.31682 -ln,-inf,inf+:3.14159 +ln,0.000,-inf +ln,1.200,0.1823 +ln,-1.200,0.1823+:3.142 +ln,1L%3L,-1.099 +ln,(-1L)%4L,-1.386+:3.142 +ln,1+:2,0.8047+:1.107 +ln,-1+:2,0.8047+:2.034 +ln,1+:-2,0.8047+:-1.107 +ln,-1.200+:4.300,1.496+:1.843 +ln,1.200+:-4.300,1.496+:-1.299 +ln,1L%2L+:1,0.1116+:1.107 +ln,1L%2L+:3L%4L,-0.1038+:0.9828 +ln,3<:1,1.486<:0.7384 +ln,3<:-2.142,2.407<:-1.097 +ln,3.000<:-3,3.195<:-1.220 +ln,3.100<:2.500,2.744<:1.146 +ln,2L%3L<:2,2.041<:1.771 +ln,1L%2L<:3L%4L,1.021<:2.317 +ln,-inf,inf+:3.142 ln,nan,nan -log,1,0.00000 -log,-1,0.00000+:1.36438 +log,1,0.000 +log,-1,0.000+:1.364 log,0,-inf -log,0.00000,-inf -log,1.20000,0.0791812 -log,-1.20000,0.0791812+:1.36438 -log,1L%3L,-0.477121 -log,(-1L)%4L,-0.602060+:1.36438 -log,1+:2,0.349485+:0.480829 -log,-1+:2,0.349485+:0.883548 -log,1+:-2,0.349485+:-0.480829 -log,-1.20000+:4.30000,0.649754+:0.800380 -log,1.20000+:-4.30000,0.649754+:-0.563997 -log,1L%2L+:1,0.0484550+:0.480829 -log,1L%2L+:3L%4L,-0.0450883+:0.426822 -log,3<:1,0.645179<:0.738443 -log,3<:-2.14159,1.04532<:-1.09681 -log,3.00000<:-3,1.38750<:-1.21976 -log,3.10000<:2.50000,1.19175<:1.14581 -log,2L%3L<:2,0.886259<:1.77082 -log,1L%2L<:3L%4L,0.443524<:2.31682 -log,-inf,inf+:1.36438 +log,0.000,-inf +log,1.200,0.07918 +log,-1.200,0.07918+:1.364 +log,1L%3L,-0.4771 +log,(-1L)%4L,-0.6021+:1.364 +log,1+:2,0.3495+:0.4808 +log,-1+:2,0.3495+:0.8835 +log,1+:-2,0.3495+:-0.4808 +log,-1.200+:4.300,0.6498+:0.8004 +log,1.200+:-4.300,0.6498+:-0.5640 +log,1L%2L+:1,0.04846+:0.4808 +log,1L%2L+:3L%4L,-0.04509+:0.4268 +log,3<:1,0.6452<:0.7384 +log,3<:-2.142,1.045<:-1.097 +log,3.000<:-3,1.387<:-1.220 +log,3.100<:2.500,1.192<:1.146 +log,2L%3L<:2,0.8863<:1.771 +log,1L%2L<:3L%4L,0.4435<:2.317 +log,-inf,inf+:1.364 log,nan,nan -exp,1,2.71828 -exp,-1,0.367879 -exp,0,1.00000 -exp,0.00000,1.00000 -exp,1.20000,3.32012 -exp,-1.20000,0.301194 -exp,1L%3L,1.39561 -exp,(-1L)%4L,0.778801 -exp,1+:2,-1.13120+:2.47173 -exp,-1+:2,-0.153092+:0.334512 -exp,1+:-2,-1.13120+:-2.47173 -exp,-1.20000+:4.30000,-0.120718+:-0.275944 -exp,1.20000+:-4.30000,-1.33070+:3.04178 -exp,1L%2L+:1,0.890808+:1.38735 -exp,1L%2L+:3L%4L,1.20635+:1.12383 -exp,3<:1,5.05768<:2.52441 -exp,3<:-2.14159,0.197719<:-2.52441 -exp,3.00000<:-3,0.0513045<:-0.423360 -exp,3.10000<:2.50000,0.0834469<:1.85526 -exp,2L%3L<:2,0.757728<:0.606198 -exp,1L%2L<:3L%4L,1.44173<:0.340819 -exp,-inf,0.00000 +exp,1,2.718 +exp,-1,0.3679 +exp,0,1.000 +exp,0.000,1.000 +exp,1.200,3.320 +exp,-1.200,0.3012 +exp,1L%3L,1.396 +exp,(-1L)%4L,0.7788 +exp,1+:2,-1.131+:2.472 +exp,-1+:2,-0.1531+:0.3345 +exp,1+:-2,-1.131+:-2.472 +exp,-1.200+:4.300,-0.1207+:-0.2759 +exp,1.200+:-4.300,-1.331+:3.042 +exp,1L%2L+:1,0.8908+:1.387 +exp,1L%2L+:3L%4L,1.206+:1.124 +exp,3<:1,5.058<:2.524 +exp,3<:-2.142,0.1977<:-2.524 +exp,3.000<:-3,0.05130<:-0.4234 +exp,3.100<:2.500,0.08345<:1.855 +exp,2L%3L<:2,0.7577<:0.6062 +exp,1L%2L<:3L%4L,1.442<:0.3408 +exp,-inf,0.000 exp,nan,nan -atan,1,0.785398 -atan,-1,-0.785398 -atan,0,0.00000 -atan,0.00000,0.00000 -atan,1.20000,0.876058 -atan,-1.20000,-0.876058 -atan,1L%3L,0.321751 -atan,(-1L)%4L,-0.244979 -atan,1+:2,1.33897+:0.402359 -atan,-1+:2,-1.33897+:0.402359 -atan,1+:-2,1.33897+:-0.402359 -atan,-1.20000+:4.30000,-1.50774+:0.218343 -atan,1.20000+:-4.30000,1.50774+:-0.218343 -atan,1L%2L+:1,0.907887+:0.708303 -atan,1L%2L+:3L%4L,0.692724+:0.590214 -atan,3<:1,1.37829+:0.277919 -atan,3<:-2.14159,-1.37829+:-0.277919 -atan,3.00000<:-3,-1.25146+:-0.0424376 -atan,3.10000<:2.50000,-1.30917+:0.182562 -atan,2L%3L<:2,-0.392387+:0.609487 -atan,1L%2L<:3L%4L,0.386520+:0.305842 -atan,-inf,-1.57080 +atan,1,0.7854 +atan,-1,-0.7854 +atan,0,0.000 +atan,0.000,0.000 +atan,1.200,0.8761 +atan,-1.200,-0.8761 +atan,1L%3L,0.3218 +atan,(-1L)%4L,-0.2450 +atan,1+:2,1.339+:0.4024 +atan,-1+:2,-1.339+:0.4024 +atan,1+:-2,1.339+:-0.4024 +atan,-1.200+:4.300,-1.508+:0.2183 +atan,1.200+:-4.300,1.508+:-0.2183 +atan,1L%2L+:1,0.9079+:0.7083 +atan,1L%2L+:3L%4L,0.6927+:0.5902 +atan,3<:1,1.378+:0.2779 +atan,3<:-2.142,-1.378+:-0.2779 +atan,3.000<:-3,-1.251+:-0.04244 +atan,3.100<:2.500,-1.309+:0.1826 +atan,2L%3L<:2,-0.3924+:0.6095 +atan,1L%2L<:3L%4L,0.3865+:0.3058 +atan,-inf,-1.571 atan,nan,nan -asin,1,1.57080 -asin,-1,-1.57080 -asin,0,0.00000 -asin,0.00000,0.00000 -asin,1.20000,nan -asin,-1.20000,nan -asin,1L%3L,0.339837 -asin,(-1L)%4L,-0.252680 -asin,1+:2,1.46784+:-0.652507 -asin,-1+:2,-0.427079+:1.52857 -asin,1+:-2,0.427079+:-1.52857 -asin,-1.20000+:4.30000,-0.265853+:2.19988 -asin,1.20000+:-4.30000,0.265853+:-2.19988 -asin,1L%2L+:1,1.16425+:0.0607070 -asin,1L%2L+:3L%4L,1.07766+:0.0769965 -asin,3<:1,1.52626+:-1.15038 -asin,3<:-2.14159,-0.0164842+:-1.64677 -asin,3.00000<:-3,-0.191830+:0.118072 -asin,3.10000<:2.50000,-0.903747+:1.81806 -asin,2L%3L<:2,-0.237626+:0.589062 -asin,1L%2L<:3L%4L,0.640643+:0.197350 +asin,1,1.571 +asin,-1,-1.571 +asin,0,0.000 +asin,0.000,0.000 +asin,1.200,nan +asin,-1.200,nan +asin,1L%3L,0.3398 +asin,(-1L)%4L,-0.2527 +asin,1+:2,1.468+:-0.6525 +asin,-1+:2,-0.4271+:1.529 +asin,1+:-2,0.4271+:-1.529 +asin,-1.200+:4.300,-0.2659+:2.200 +asin,1.200+:-4.300,0.2659+:-2.200 +asin,1L%2L+:1,1.164+:0.06071 +asin,1L%2L+:3L%4L,1.078+:0.07700 +asin,3<:1,1.526+:-1.150 +asin,3<:-2.142,-0.01648+:-1.647 +asin,3.000<:-3,-0.1918+:0.1181 +asin,3.100<:2.500,-0.9037+:1.818 +asin,2L%3L<:2,-0.2376+:0.5891 +asin,1L%2L<:3L%4L,0.6406+:0.1974 asin,-inf,nan asin,nan,nan -acos,1,0.00000 -acos,-1,3.14159 -acos,0,1.57080 -acos,0.00000,1.57080 -acos,1.20000,nan -acos,-1.20000,nan -acos,1L%3L,1.23096 -acos,(-1L)%4L,1.82348 -acos,1+:2,1.14372+:-1.52857 -acos,-1+:2,1.59219+:-1.43469 -acos,1+:-2,0.102959+:-0.652507 -acos,-1.20000+:4.30000,1.57414+:-2.16412 -acos,1.20000+:-4.30000,0.0450679+:-0.864279 -acos,1L%2L+:1,1.22136+:-0.926133 -acos,1L%2L+:3L%4L,1.17252+:-0.743320 -acos,3<:1,1.02437+:-1.80401 -acos,3<:-2.14159,2.11723+:1.80401 -acos,3.00000<:-3,2.99156+:1.76406 -acos,3.10000<:2.50000,1.60425+:-1.33844 -acos,2L%3L<:2,1.64522+:-0.563332 -acos,1L%2L<:3L%4L,1.21974+:-0.355426 +acos,1,0.000 +acos,-1,3.142 +acos,0,1.571 +acos,0.000,1.571 +acos,1.200,nan +acos,-1.200,nan +acos,1L%3L,1.231 +acos,(-1L)%4L,1.823 +acos,1+:2,1.144+:-1.529 +acos,-1+:2,1.592+:-1.435 +acos,1+:-2,0.1030+:-0.6525 +acos,-1.200+:4.300,1.574+:-2.164 +acos,1.200+:-4.300,0.04507+:-0.8643 +acos,1L%2L+:1,1.221+:-0.9261 +acos,1L%2L+:3L%4L,1.173+:-0.7433 +acos,3<:1,1.024+:-1.804 +acos,3<:-2.142,2.117+:1.804 +acos,3.000<:-3,2.992+:1.764 +acos,3.100<:2.500,1.604+:-1.338 +acos,2L%3L<:2,1.645+:-0.5633 +acos,1L%2L<:3L%4L,1.220+:-0.3554 acos,-inf,nan acos,nan,nan -sinh,1,1.17520 -sinh,-1,-1.17520 -sinh,0,0.00000 -sinh,0.00000,0.00000 -sinh,1.20000,1.50946 -sinh,-1.20000,-1.50946 -sinh,1L%3L,0.339541 -sinh,(-1L)%4L,-0.252612 -sinh,1+:2,-0.489056+:1.40312 -sinh,-1+:2,0.489056+:1.40312 -sinh,1+:-2,-0.489056+:-1.40312 -sinh,-1.20000+:4.30000,0.604991+:-1.65886 -sinh,1.20000+:-4.30000,-0.604991+:1.65886 -sinh,1L%2L+:1,0.281549+:0.948865 -sinh,1L%2L+:3L%4L,0.381280+:0.768634 -sinh,3<:1,2.49795<:2.48705 -sinh,3<:-2.14159,2.49795<:-0.654546 -sinh,3.00000<:-3,9.72877<:-2.71626 -sinh,3.10000<:2.50000,6.02703<:1.29006 -sinh,2L%3L<:2,0.635276<:1.94284 -sinh,1L%2L<:3L%4L,0.501648<:0.791508 +sinh,1,1.175 +sinh,-1,-1.175 +sinh,0,0.000 +sinh,0.000,0.000 +sinh,1.200,1.509 +sinh,-1.200,-1.509 +sinh,1L%3L,0.3395 +sinh,(-1L)%4L,-0.2526 +sinh,1+:2,-0.4891+:1.403 +sinh,-1+:2,0.4891+:1.403 +sinh,1+:-2,-0.4891+:-1.403 +sinh,-1.200+:4.300,0.6050+:-1.659 +sinh,1.200+:-4.300,-0.6050+:1.659 +sinh,1L%2L+:1,0.2815+:0.9489 +sinh,1L%2L+:3L%4L,0.3813+:0.7686 +sinh,3<:1,2.498<:2.487 +sinh,3<:-2.142,2.498<:-0.6545 +sinh,3.000<:-3,9.729<:-2.716 +sinh,3.100<:2.500,6.027<:1.290 +sinh,2L%3L<:2,0.6353<:1.943 +sinh,1L%2L<:3L%4L,0.5016<:0.7915 sinh,-inf,-inf sinh,nan,nan -cosh,1,1.54308 -cosh,-1,1.54308 -cosh,0,1.00000 -cosh,0.00000,1.00000 -cosh,1.20000,1.81066 -cosh,-1.20000,1.81066 -cosh,1L%3L,1.05607 -cosh,(-1L)%4L,1.03141 -cosh,1+:2,-0.642148+:1.06861 -cosh,-1+:2,-0.642148+:-1.06861 -cosh,1+:-2,-0.642148+:-1.06861 -cosh,-1.20000+:4.30000,-0.725709+:1.38292 -cosh,1.20000+:-4.30000,-0.725709+:1.38292 -cosh,1L%2L+:1,0.609259+:0.438487 -cosh,1L%2L+:3L%4L,0.825071+:0.355199 -cosh,3<:1,2.56317<:2.56083 -cosh,3<:-2.14159,2.56317<:2.56083 -cosh,3.00000<:-3,9.76275<:0.421392 -cosh,3.10000<:2.50000,5.95673<:-1.85904 -cosh,2L%3L<:2,0.868534<:-0.185395 -cosh,1L%2L<:3L%4L,1.01400<:0.123622 +cosh,1,1.543 +cosh,-1,1.543 +cosh,0,1.000 +cosh,0.000,1.000 +cosh,1.200,1.811 +cosh,-1.200,1.811 +cosh,1L%3L,1.056 +cosh,(-1L)%4L,1.031 +cosh,1+:2,-0.6421+:1.069 +cosh,-1+:2,-0.6421+:-1.069 +cosh,1+:-2,-0.6421+:-1.069 +cosh,-1.200+:4.300,-0.7257+:1.383 +cosh,1.200+:-4.300,-0.7257+:1.383 +cosh,1L%2L+:1,0.6093+:0.4385 +cosh,1L%2L+:3L%4L,0.8251+:0.3552 +cosh,3<:1,2.563<:2.561 +cosh,3<:-2.142,2.563<:2.561 +cosh,3.000<:-3,9.763<:0.4214 +cosh,3.100<:2.500,5.957<:-1.859 +cosh,2L%3L<:2,0.8685<:-0.1854 +cosh,1L%2L<:3L%4L,1.014<:0.1236 cosh,-inf,inf cosh,nan,nan -tanh,1,0.761594 -tanh,-1,-0.761594 -tanh,0,0.00000 -tanh,0.00000,0.00000 -tanh,1.20000,0.833655 -tanh,-1.20000,-0.833655 -tanh,1L%3L,0.321513 -tanh,(-1L)%4L,-0.244919 -tanh,1+:2,1.16674+:-0.243458 -tanh,-1+:2,-1.16674+:-0.243458 -tanh,1+:-2,1.16674+:0.243458 -tanh,-1.20000+:4.30000,-1.12054+:0.150546 -tanh,1.20000+:-4.30000,1.12054+:-0.150546 -tanh,1L%2L+:1,1.04283+:0.806877 -tanh,1L%2L+:3L%4L,0.728212+:0.618096 -tanh,3<:1,0.974552<:-0.0737813 -tanh,3<:-2.14159,0.974552<:3.06781 -tanh,3.00000<:-3,0.996519<:-3.13765 -tanh,3.10000<:2.50000,1.01180<:-3.13409 -tanh,2L%3L<:2,0.731434<:2.12823 -tanh,1L%2L<:3L%4L,0.494723<:0.667886 -tanh,-inf,-1.00000 +tanh,1,0.7616 +tanh,-1,-0.7616 +tanh,0,0.000 +tanh,0.000,0.000 +tanh,1.200,0.8337 +tanh,-1.200,-0.8337 +tanh,1L%3L,0.3215 +tanh,(-1L)%4L,-0.2449 +tanh,1+:2,1.167+:-0.2435 +tanh,-1+:2,-1.167+:-0.2435 +tanh,1+:-2,1.167+:0.2435 +tanh,-1.200+:4.300,-1.121+:0.1505 +tanh,1.200+:-4.300,1.121+:-0.1505 +tanh,1L%2L+:1,1.043+:0.8069 +tanh,1L%2L+:3L%4L,0.7282+:0.6181 +tanh,3<:1,0.9746<:-0.07378 +tanh,3<:-2.142,0.9746<:3.068 +tanh,3.000<:-3,0.9965<:-3.138 +tanh,3.100<:2.500,1.012<:-3.134 +tanh,2L%3L<:2,0.7314<:2.128 +tanh,1L%2L<:3L%4L,0.4947<:0.6679 +tanh,-inf,-1.000 tanh,nan,nan -asinh,1,0.881374 -asinh,-1,-0.881374 -asinh,0,0.00000 -asinh,0.00000,0.00000 -asinh,1.20000,1.01597 -asinh,-1.20000,-1.01597 -asinh,1L%3L,0.327450 -asinh,(-1L)%4L,-0.247466 -asinh,1+:2,1.46935+:1.06344 -asinh,-1+:2,1.33515+:1.54138 -asinh,1+:-2,0.752047+:-0.0949377 -asinh,-1.20000+:4.30000,2.13903+:1.56713 -asinh,1.20000+:-4.30000,0.889372+:-0.0447415 -asinh,1L%2L+:1,0.732858+:0.895907 -asinh,1L%2L+:3L%4L,0.606335+:0.682204 -asinh,3<:1,1.78103+:0.973891 -asinh,3<:-2.14159,-1.78103+:-0.973891 -asinh,3.00000<:-3,-1.81750+:-0.134403 -asinh,3.10000<:2.50000,1.28655+:1.53475 -asinh,2L%3L<:2,-0.00714161+:0.938172 -asinh,1L%2L<:3L%4L,0.376885+:0.323586 +asinh,1,0.8814 +asinh,-1,-0.8814 +asinh,0,0.000 +asinh,0.000,0.000 +asinh,1.200,1.016 +asinh,-1.200,-1.016 +asinh,1L%3L,0.3275 +asinh,(-1L)%4L,-0.2475 +asinh,1+:2,1.469+:1.063 +asinh,-1+:2,1.335+:1.541 +asinh,1+:-2,0.7520+:-0.09494 +asinh,-1.200+:4.300,2.139+:1.567 +asinh,1.200+:-4.300,0.8894+:-0.04474 +asinh,1L%2L+:1,0.7329+:0.8959 +asinh,1L%2L+:3L%4L,0.6063+:0.6822 +asinh,3<:1,1.781+:0.9739 +asinh,3<:-2.142,-1.781+:-0.9739 +asinh,3.000<:-3,-1.817+:-0.1344 +asinh,3.100<:2.500,1.287+:1.535 +asinh,2L%3L<:2,-0.007142+:0.9382 +asinh,1L%2L<:3L%4L,0.3769+:0.3236 asinh,-inf,-inf asinh,nan,nan -acosh,1,0.00000 -acosh,-1,0.00000+:3.14159 -acosh,0,0.00000+:1.57080 -acosh,0.00000,0.00000+:1.57080 -acosh,1.20000,0.622363 -acosh,-1.20000,-0.622363+:3.14159 -acosh,1L%3L,0.00000+:1.23096 -acosh,(-1L)%4L,0.00000+:1.82348 -acosh,1+:2,1.52857+:1.14372 -acosh,-1+:2,1.43469+:1.59219 -acosh,1+:-2,0.652507+:0.102959 -acosh,-1.20000+:4.30000,2.16412+:1.57414 -acosh,1.20000+:-4.30000,0.864279+:0.0450679 -acosh,1L%2L+:1,0.926133+:1.22136 -acosh,1L%2L+:3L%4L,0.743320+:1.17252 -acosh,3<:1,1.80401+:1.02437 -acosh,3<:-2.14159,-1.80401+:2.11723 -acosh,3.00000<:-3,-1.76406+:2.99156 -acosh,3.10000<:2.50000,1.33844+:1.60425 -acosh,2L%3L<:2,0.563332+:1.64522 -acosh,1L%2L<:3L%4L,0.355426+:1.21974 +acosh,1,0.000 +acosh,-1,0.000+:3.142 +acosh,0,0.000+:1.571 +acosh,0.000,0.000+:1.571 +acosh,1.200,0.6224 +acosh,-1.200,-0.6224+:3.142 +acosh,1L%3L,0.000+:1.231 +acosh,(-1L)%4L,0.000+:1.823 +acosh,1+:2,1.529+:1.144 +acosh,-1+:2,1.435+:1.592 +acosh,1+:-2,0.6525+:0.1030 +acosh,-1.200+:4.300,2.164+:1.574 +acosh,1.200+:-4.300,0.8643+:0.04507 +acosh,1L%2L+:1,0.9261+:1.221 +acosh,1L%2L+:3L%4L,0.7433+:1.173 +acosh,3<:1,1.804+:1.024 +acosh,3<:-2.142,-1.804+:2.117 +acosh,3.000<:-3,-1.764+:2.992 +acosh,3.100<:2.500,1.338+:1.604 +acosh,2L%3L<:2,0.5633+:1.645 +acosh,1L%2L<:3L%4L,0.3554+:1.220 acosh,-inf,nan+:nan acosh,nan,nan atanh,1,inf atanh,-1,-inf -atanh,0,0.00000 -atanh,0.00000,0.00000 -atanh,1.20000,1.19895+:-1.57080 -atanh,-1.20000,-1.19895+:1.57080 -atanh,1L%3L,0.346574 -atanh,(-1L)%4L,-0.255413 -atanh,1+:2,0.173287+:1.17810 -atanh,-1+:2,-0.173287+:1.17810 -atanh,1+:-2,0.173287+:-1.17810 -atanh,-1.20000+:4.30000,-0.0575873+:1.35758 -atanh,1.20000+:-4.30000,0.0575873+:-1.35758 -atanh,1L%2L+:1,0.238878+:0.847576 -atanh,1L%2L+:3L%4L,0.310428+:0.723221 -atanh,3<:1,0.168156+:1.28931 -atanh,3<:-2.14159,-0.168156+:-1.28931 -atanh,3.00000<:-3,-0.341909+:-1.51807 -atanh,3.10000<:2.50000,-0.253850+:1.36734 -atanh,2L%3L<:2,-0.202451+:0.570560 -atanh,1L%2L<:3L%4L,0.335282+:0.368842 +atanh,0,0.000 +atanh,0.000,0.000 +atanh,1.200,1.199+:-1.571 +atanh,-1.200,-1.199+:1.571 +atanh,1L%3L,0.3466 +atanh,(-1L)%4L,-0.2554 +atanh,1+:2,0.1733+:1.178 +atanh,-1+:2,-0.1733+:1.178 +atanh,1+:-2,0.1733+:-1.178 +atanh,-1.200+:4.300,-0.05759+:1.358 +atanh,1.200+:-4.300,0.05759+:-1.358 +atanh,1L%2L+:1,0.2389+:0.8476 +atanh,1L%2L+:3L%4L,0.3104+:0.7232 +atanh,3<:1,0.1682+:1.289 +atanh,3<:-2.142,-0.1682+:-1.289 +atanh,3.000<:-3,-0.3419+:-1.518 +atanh,3.100<:2.500,-0.2539+:1.367 +atanh,2L%3L<:2,-0.2025+:0.5706 +atanh,1L%2L<:3L%4L,0.3353+:0.3688 atanh,-inf,nan+:nan atanh,nan,nan abs,1,1 abs,-1,1 abs,0,0 -abs,0.00000,0.00000 -abs,1.20000,1.20000 -abs,-1.20000,1.20000 +abs,0.000,0.000 +abs,1.200,1.200 +abs,-1.200,1.200 abs,1L%3L,1L%3L abs,(-1L)%4L,1L%4L -abs,1+:2,2.23607 -abs,-1+:2,2.23607 -abs,1+:-2,2.23607 -abs,-1.20000+:4.30000,4.46430 -abs,1.20000+:-4.30000,4.46430 -abs,1L%2L+:1,1.11803 -abs,1L%2L+:3L%4L,0.901388 +abs,1+:2,2.236 +abs,-1+:2,2.236 +abs,1+:-2,2.236 +abs,-1.200+:4.300,4.464 +abs,1.200+:-4.300,4.464 +abs,1L%2L+:1,1.118 +abs,1L%2L+:3L%4L,0.9014 abs,3<:1,3 -abs,3<:-2.14159,3 -abs,3.00000<:-3,3.00000 -abs,3.10000<:2.50000,3.10000 +abs,3<:-2.142,3 +abs,3.000<:-3,3.000 +abs,3.100<:2.500,3.100 abs,2L%3L<:2,2L%3L abs,1L%2L<:3L%4L,1L%2L abs,-inf,inf @@ -577,91 +577,91 @@ re,1,1 re,-1,-1 re,0,0 -re,0.00000,0.00000 -re,1.20000,1.20000 -re,-1.20000,-1.20000 +re,0.000,0.000 +re,1.200,1.200 +re,-1.200,-1.200 re,1L%3L,1L%3L re,(-1L)%4L,(-1L)%4L re,1+:2,1 re,-1+:2,-1 re,1+:-2,1 -re,-1.20000+:4.30000,-1.20000 -re,1.20000+:-4.30000,1.20000 +re,-1.200+:4.300,-1.200 +re,1.200+:-4.300,1.200 re,1L%2L+:1,1L%2L re,1L%2L+:3L%4L,1L%2L -re,3<:1,2.52441 -re,3<:-2.14159,-2.52441 -re,3.00000<:-3,-0.423360 -re,3.10000<:2.50000,1.85526 -re,2L%3L<:2,0.606198 -re,1L%2L<:3L%4L,0.340819 +re,3<:1,2.524 +re,3<:-2.142,-2.524 +re,3.000<:-3,-0.4234 +re,3.100<:2.500,1.855 +re,2L%3L<:2,0.6062 +re,1L%2L<:3L%4L,0.3408 re,-inf,-inf re,nan,nan im,1,0 im,-1,0 im,0,0 -im,0.00000,0.00000 -im,1.20000,0.00000 -im,-1.20000,0.00000 +im,0.000,0.000 +im,1.200,0.000 +im,-1.200,0.000 im,1L%3L,0L%1L im,(-1L)%4L,0L%1L im,1+:2,2 im,-1+:2,2 im,1+:-2,-2 -im,-1.20000+:4.30000,4.30000 -im,1.20000+:-4.30000,-4.30000 +im,-1.200+:4.300,4.300 +im,1.200+:-4.300,-4.300 im,1L%2L+:1,1 im,1L%2L+:3L%4L,3L%4L -im,3<:1,1.62091 -im,3<:-2.14159,-1.62091 -im,3.00000<:-3,-2.96998 -im,3.10000<:2.50000,-2.48355 -im,2L%3L<:2,-0.277431 -im,1L%2L<:3L%4L,0.365844 -im,-inf,0.00000 -im,nan,0.00000 -arg,1,0.00000 -arg,-1,3.14159 -arg,0,0.00000 -arg,0.00000,0.00000 -arg,1.20000,0.00000 -arg,-1.20000,3.14159 -arg,1L%3L,0.00000 -arg,(-1L)%4L,3.14159 -arg,1+:2,1.10715 -arg,-1+:2,2.03444 -arg,1+:-2,-1.10715 -arg,-1.20000+:4.30000,1.84294 -arg,1.20000+:-4.30000,-1.29865 -arg,1L%2L+:1,1.10715 -arg,1L%2L+:3L%4L,0.982794 +im,3<:1,1.621 +im,3<:-2.142,-1.621 +im,3.000<:-3,-2.970 +im,3.100<:2.500,-2.484 +im,2L%3L<:2,-0.2774 +im,1L%2L<:3L%4L,0.3658 +im,-inf,0.000 +im,nan,0.000 +arg,1,0.000 +arg,-1,3.142 +arg,0,0.000 +arg,0.000,0.000 +arg,1.200,0.000 +arg,-1.200,3.142 +arg,1L%3L,0.000 +arg,(-1L)%4L,3.142 +arg,1+:2,1.107 +arg,-1+:2,2.034 +arg,1+:-2,-1.107 +arg,-1.200+:4.300,1.843 +arg,1.200+:-4.300,-1.299 +arg,1L%2L+:1,1.107 +arg,1L%2L+:3L%4L,0.9828 arg,3<:1,1 -arg,3<:-2.14159,-2.14159 -arg,3.00000<:-3,-3 -arg,3.10000<:2.50000,2.50000 +arg,3<:-2.142,-2.142 +arg,3.000<:-3,-3 +arg,3.100<:2.500,2.500 arg,2L%3L<:2,2 arg,1L%2L<:3L%4L,3L%4L -arg,-inf,3.14159 +arg,-inf,3.142 arg,nan,nan conj,1,1 conj,-1,-1 conj,0,0 -conj,0.00000,0.00000 -conj,1.20000,1.20000 -conj,-1.20000,-1.20000 +conj,0.000,0.000 +conj,1.200,1.200 +conj,-1.200,-1.200 conj,1L%3L,1L%3L conj,(-1L)%4L,(-1L)%4L conj,1+:2,1+:-2 conj,-1+:2,-1+:-2 conj,1+:-2,1+:2 -conj,-1.20000+:4.30000,-1.20000+:-4.30000 -conj,1.20000+:-4.30000,1.20000+:4.30000 +conj,-1.200+:4.300,-1.200+:-4.300 +conj,1.200+:-4.300,1.200+:4.300 conj,1L%2L+:1,1L%2L+:-1 conj,1L%2L+:3L%4L,1L%2L+:(-3L)%4L conj,3<:1,3<:-1 -conj,3<:-2.14159,3<:2.14159 -conj,3.00000<:-3,3.00000<:3 -conj,3.10000<:2.50000,3.10000<:-2.50000 +conj,3<:-2.142,3<:2.142 +conj,3.000<:-3,3.000<:3 +conj,3.100<:2.500,3.100<:-2.500 conj,2L%3L<:2,2L%3L<:-2 conj,1L%2L<:3L%4L,1L%2L<:(-3L)%4L conj,-inf,-inf @@ -669,68 +669,68 @@ rect,1,1+:0 rect,-1,-1+:0 rect,0,0+:0 -rect,0.00000,0.00000+:0.00000 -rect,1.20000,1.20000+:0.00000 -rect,-1.20000,-1.20000+:0.00000 +rect,0.000,0.000+:0.000 +rect,1.200,1.200+:0.000 +rect,-1.200,-1.200+:0.000 rect,1L%3L,1L%3L+:0L%1L rect,(-1L)%4L,(-1L)%4L+:0L%1L rect,1+:2,1+:2 rect,-1+:2,-1+:2 rect,1+:-2,1+:-2 -rect,-1.20000+:4.30000,-1.20000+:4.30000 -rect,1.20000+:-4.30000,1.20000+:-4.30000 +rect,-1.200+:4.300,-1.200+:4.300 +rect,1.200+:-4.300,1.200+:-4.300 rect,1L%2L+:1,1L%2L+:1 rect,1L%2L+:3L%4L,1L%2L+:3L%4L -rect,3<:1,1.62091+:2.52441 -rect,3<:-2.14159,-1.62091+:-2.52441 -rect,3.00000<:-3,-2.96998+:-0.423360 -rect,3.10000<:2.50000,-2.48355+:1.85526 -rect,2L%3L<:2,-0.277431+:0.606198 -rect,1L%2L<:3L%4L,0.365844+:0.340819 -rect,-inf,-inf+:0.00000 -rect,nan,nan+:0.00000 +rect,3<:1,1.621+:2.524 +rect,3<:-2.142,-1.621+:-2.524 +rect,3.000<:-3,-2.970+:-0.4234 +rect,3.100<:2.500,-2.484+:1.855 +rect,2L%3L<:2,-0.2774+:0.6062 +rect,1L%2L<:3L%4L,0.3658+:0.3408 +rect,-inf,-inf+:0.000 +rect,nan,nan+:0.000 polar,1,1<:0 -polar,-1,1<:3.14159 +polar,-1,1<:3.142 polar,0,0<:0 -polar,0.00000,0.00000<:0.00000 -polar,1.20000,1.20000<:0.00000 -polar,-1.20000,1.20000<:3.14159 +polar,0.000,0.000<:0.000 +polar,1.200,1.200<:0.000 +polar,-1.200,1.200<:3.142 polar,1L%3L,1L%3L<:0L%1L -polar,(-1L)%4L,1L%4L<:3.14159 -polar,1+:2,2.23607<:1.10715 -polar,-1+:2,2.23607<:2.03444 -polar,1+:-2,2.23607<:-1.10715 -polar,-1.20000+:4.30000,4.46430<:1.84294 -polar,1.20000+:-4.30000,4.46430<:-1.29865 -polar,1L%2L+:1,1.11803<:1.10715 -polar,1L%2L+:3L%4L,0.901388<:0.982794 +polar,(-1L)%4L,1L%4L<:3.142 +polar,1+:2,2.236<:1.107 +polar,-1+:2,2.236<:2.034 +polar,1+:-2,2.236<:-1.107 +polar,-1.200+:4.300,4.464<:1.843 +polar,1.200+:-4.300,4.464<:-1.299 +polar,1L%2L+:1,1.118<:1.107 +polar,1L%2L+:3L%4L,0.9014<:0.9828 polar,3<:1,3<:1 -polar,3<:-2.14159,3<:-2.14159 -polar,3.00000<:-3,3.00000<:-3 -polar,3.10000<:2.50000,3.10000<:2.50000 +polar,3<:-2.142,3<:-2.142 +polar,3.000<:-3,3.000<:-3 +polar,3.100<:2.500,3.100<:2.500 polar,2L%3L<:2,2L%3L<:2 polar,1L%2L<:3L%4L,1L%2L<:3L%4L -polar,-inf,inf<:3.14159 -polar,nan,nan<:0.00000 -cis,1,0.540302+:0.841471 -cis,-1,0.540302+:-0.841471 -cis,0,1.00000+:0.00000 -cis,0.00000,1.00000+:0.00000 -cis,1.20000,0.362358+:0.932039 -cis,-1.20000,0.362358+:-0.932039 -cis,1L%3L,0.944957+:0.327195 -cis,(-1L)%4L,0.968912+:-0.247404 +polar,-inf,inf<:3.142 +polar,nan,nan<:0.000 +cis,1,0.5403+:0.8415 +cis,-1,0.5403+:-0.8415 +cis,0,1.000+:0.000 +cis,0.000,1.000+:0.000 +cis,1.200,0.3624+:0.9320 +cis,-1.200,0.3624+:-0.9320 +cis,1L%3L,0.9450+:0.3272 +cis,(-1L)%4L,0.9689+:-0.2474 cis,1+:2,__failed__ cis,-1+:2,__failed__ cis,1+:-2,__failed__ -cis,-1.20000+:4.30000,__failed__ -cis,1.20000+:-4.30000,__failed__ +cis,-1.200+:4.300,__failed__ +cis,1.200+:-4.300,__failed__ cis,1L%2L+:1,__failed__ cis,1L%2L+:3L%4L,__failed__ cis,3<:1,__failed__ -cis,3<:-2.14159,__failed__ -cis,3.00000<:-3,__failed__ -cis,3.10000<:2.50000,__failed__ +cis,3<:-2.142,__failed__ +cis,3.000<:-3,__failed__ +cis,3.100<:2.500,__failed__ cis,2L%3L<:2,__failed__ cis,1L%2L<:3L%4L,__failed__ cis,-inf,nan+:nan @@ -738,22 +738,22 @@ ceil,1,1 ceil,-1,-1 ceil,0,0 -ceil,0.00000,0.00000 -ceil,1.20000,2.00000 -ceil,-1.20000,-1.00000 +ceil,0.000,0.000 +ceil,1.200,2.000 +ceil,-1.200,-1.000 ceil,1L%3L,1L ceil,(-1L)%4L,0L ceil,1+:2,__failed__ ceil,-1+:2,__failed__ ceil,1+:-2,__failed__ -ceil,-1.20000+:4.30000,__failed__ -ceil,1.20000+:-4.30000,__failed__ +ceil,-1.200+:4.300,__failed__ +ceil,1.200+:-4.300,__failed__ ceil,1L%2L+:1,__failed__ ceil,1L%2L+:3L%4L,__failed__ ceil,3<:1,__failed__ -ceil,3<:-2.14159,__failed__ -ceil,3.00000<:-3,__failed__ -ceil,3.10000<:2.50000,__failed__ +ceil,3<:-2.142,__failed__ +ceil,3.000<:-3,__failed__ +ceil,3.100<:2.500,__failed__ ceil,2L%3L<:2,__failed__ ceil,1L%2L<:3L%4L,__failed__ ceil,-inf,-inf @@ -761,22 +761,22 @@ floor,1,1 floor,-1,-1 floor,0,0 -floor,0.00000,0.00000 -floor,1.20000,1.00000 -floor,-1.20000,-2.00000 +floor,0.000,0.000 +floor,1.200,1.000 +floor,-1.200,-2.000 floor,1L%3L,0L floor,(-1L)%4L,-1L floor,1+:2,__failed__ floor,-1+:2,__failed__ floor,1+:-2,__failed__ -floor,-1.20000+:4.30000,__failed__ -floor,1.20000+:-4.30000,__failed__ +floor,-1.200+:4.300,__failed__ +floor,1.200+:-4.300,__failed__ floor,1L%2L+:1,__failed__ floor,1L%2L+:3L%4L,__failed__ floor,3<:1,__failed__ -floor,3<:-2.14159,__failed__ -floor,3.00000<:-3,__failed__ -floor,3.10000<:2.50000,__failed__ +floor,3<:-2.142,__failed__ +floor,3.000<:-3,__failed__ +floor,3.100<:2.500,__failed__ floor,2L%3L<:2,__failed__ floor,1L%2L<:3L%4L,__failed__ floor,-inf,-inf @@ -784,22 +784,22 @@ round,1,1 round,-1,-1 round,0,0 -round,0.00000,0.00000 -round,1.20000,1.00000 -round,-1.20000,-1.00000 +round,0.000,0.000 +round,1.200,1.000 +round,-1.200,-1.000 round,1L%3L,0L round,(-1L)%4L,0L round,1+:2,__failed__ round,-1+:2,__failed__ round,1+:-2,__failed__ -round,-1.20000+:4.30000,__failed__ -round,1.20000+:-4.30000,__failed__ +round,-1.200+:4.300,__failed__ +round,1.200+:-4.300,__failed__ round,1L%2L+:1,__failed__ round,1L%2L+:3L%4L,__failed__ round,3<:1,__failed__ -round,3<:-2.14159,__failed__ -round,3.00000<:-3,__failed__ -round,3.10000<:2.50000,__failed__ +round,3<:-2.142,__failed__ +round,3.000<:-3,__failed__ +round,3.100<:2.500,__failed__ round,2L%3L<:2,__failed__ round,1L%2L<:3L%4L,__failed__ round,-inf,-inf @@ -807,22 +807,22 @@ frac,1,0 frac,-1,0 frac,0,0 -frac,0.00000,0.00000 -frac,1.20000,0.200000 -frac,-1.20000,-0.200000 +frac,0.000,0.000 +frac,1.200,0.2000 +frac,-1.200,-0.2000 frac,1L%3L,1L%3L frac,(-1L)%4L,(-1L)%4L frac,1+:2,__failed__ frac,-1+:2,__failed__ frac,1+:-2,__failed__ -frac,-1.20000+:4.30000,__failed__ -frac,1.20000+:-4.30000,__failed__ +frac,-1.200+:4.300,__failed__ +frac,1.200+:-4.300,__failed__ frac,1L%2L+:1,__failed__ frac,1L%2L+:3L%4L,__failed__ frac,3<:1,__failed__ -frac,3<:-2.14159,__failed__ -frac,3.00000<:-3,__failed__ -frac,3.10000<:2.50000,__failed__ +frac,3<:-2.142,__failed__ +frac,3.000<:-3,__failed__ +frac,3.100<:2.500,__failed__ frac,2L%3L<:2,__failed__ frac,1L%2L<:3L%4L,__failed__ frac,-inf,nan @@ -830,22 +830,22 @@ complexp,1,0 complexp,-1,0 complexp,0,0 -complexp,0.00000,0 -complexp,1.20000,0 -complexp,-1.20000,0 +complexp,0.000,0 +complexp,1.200,0 +complexp,-1.200,0 complexp,1L%3L,0 complexp,(-1L)%4L,0 complexp,1+:2,1 complexp,-1+:2,1 complexp,1+:-2,1 -complexp,-1.20000+:4.30000,1 -complexp,1.20000+:-4.30000,1 +complexp,-1.200+:4.300,1 +complexp,1.200+:-4.300,1 complexp,1L%2L+:1,1 complexp,1L%2L+:3L%4L,1 complexp,3<:1,1 -complexp,3<:-2.14159,1 -complexp,3.00000<:-3,1 -complexp,3.10000<:2.50000,1 +complexp,3<:-2.142,1 +complexp,3.000<:-3,1 +complexp,3.100<:2.500,1 complexp,2L%3L<:2,1 complexp,1L%2L<:3L%4L,1 complexp,-inf,0 @@ -853,22 +853,22 @@ realp,1,1 realp,-1,1 realp,0,1 -realp,0.00000,1 -realp,1.20000,1 -realp,-1.20000,1 +realp,0.000,1 +realp,1.200,1 +realp,-1.200,1 realp,1L%3L,1 realp,(-1L)%4L,1 realp,1+:2,0 realp,-1+:2,0 realp,1+:-2,0 -realp,-1.20000+:4.30000,0 -realp,1.20000+:-4.30000,0 +realp,-1.200+:4.300,0 +realp,1.200+:-4.300,0 realp,1L%2L+:1,0 realp,1L%2L+:3L%4L,0 realp,3<:1,0 -realp,3<:-2.14159,0 -realp,3.00000<:-3,0 -realp,3.10000<:2.50000,0 +realp,3<:-2.142,0 +realp,3.000<:-3,0 +realp,3.100<:2.500,0 realp,2L%3L<:2,0 realp,1L%2L<:3L%4L,0 realp,-inf,1 @@ -876,22 +876,22 @@ rationalp,1,0 rationalp,-1,0 rationalp,0,0 -rationalp,0.00000,0 -rationalp,1.20000,0 -rationalp,-1.20000,0 +rationalp,0.000,0 +rationalp,1.200,0 +rationalp,-1.200,0 rationalp,1L%3L,1 rationalp,(-1L)%4L,1 rationalp,1+:2,0 rationalp,-1+:2,0 rationalp,1+:-2,0 -rationalp,-1.20000+:4.30000,0 -rationalp,1.20000+:-4.30000,0 +rationalp,-1.200+:4.300,0 +rationalp,1.200+:-4.300,0 rationalp,1L%2L+:1,0 rationalp,1L%2L+:3L%4L,0 rationalp,3<:1,0 -rationalp,3<:-2.14159,0 -rationalp,3.00000<:-3,0 -rationalp,3.10000<:2.50000,0 +rationalp,3<:-2.142,0 +rationalp,3.000<:-3,0 +rationalp,3.100<:2.500,0 rationalp,2L%3L<:2,0 rationalp,1L%2L<:3L%4L,0 rationalp,-inf,0 @@ -899,22 +899,22 @@ numberp,1,1 numberp,-1,1 numberp,0,1 -numberp,0.00000,1 -numberp,1.20000,1 -numberp,-1.20000,1 +numberp,0.000,1 +numberp,1.200,1 +numberp,-1.200,1 numberp,1L%3L,1 numberp,(-1L)%4L,1 numberp,1+:2,1 numberp,-1+:2,1 numberp,1+:-2,1 -numberp,-1.20000+:4.30000,1 -numberp,1.20000+:-4.30000,1 +numberp,-1.200+:4.300,1 +numberp,1.200+:-4.300,1 numberp,1L%2L+:1,1 numberp,1L%2L+:3L%4L,1 numberp,3<:1,1 -numberp,3<:-2.14159,1 -numberp,3.00000<:-3,1 -numberp,3.10000<:2.50000,1 +numberp,3<:-2.142,1 +numberp,3.000<:-3,1 +numberp,3.100<:2.500,1 numberp,2L%3L<:2,1 numberp,1L%2L<:3L%4L,1 numberp,-inf,1 @@ -922,22 +922,22 @@ exactp,1,1 exactp,-1,1 exactp,0,1 -exactp,0.00000,0 -exactp,1.20000,0 -exactp,-1.20000,0 +exactp,0.000,0 +exactp,1.200,0 +exactp,-1.200,0 exactp,1L%3L,1 exactp,(-1L)%4L,1 exactp,1+:2,1 exactp,-1+:2,1 exactp,1+:-2,1 -exactp,-1.20000+:4.30000,0 -exactp,1.20000+:-4.30000,0 +exactp,-1.200+:4.300,0 +exactp,1.200+:-4.300,0 exactp,1L%2L+:1,1 exactp,1L%2L+:3L%4L,1 exactp,3<:1,0 -exactp,3<:-2.14159,0 -exactp,3.00000<:-3,0 -exactp,3.10000<:2.50000,0 +exactp,3<:-2.142,0 +exactp,3.000<:-3,0 +exactp,3.100<:2.500,0 exactp,2L%3L<:2,0 exactp,1L%2L<:3L%4L,0 exactp,-inf,0 @@ -945,22 +945,22 @@ inexactp,1,0 inexactp,-1,0 inexactp,0,0 -inexactp,0.00000,1 -inexactp,1.20000,1 -inexactp,-1.20000,1 +inexactp,0.000,1 +inexactp,1.200,1 +inexactp,-1.200,1 inexactp,1L%3L,0 inexactp,(-1L)%4L,0 inexactp,1+:2,0 inexactp,-1+:2,0 inexactp,1+:-2,0 -inexactp,-1.20000+:4.30000,1 -inexactp,1.20000+:-4.30000,1 +inexactp,-1.200+:4.300,1 +inexactp,1.200+:-4.300,1 inexactp,1L%2L+:1,0 inexactp,1L%2L+:3L%4L,0 inexactp,3<:1,1 -inexactp,3<:-2.14159,1 -inexactp,3.00000<:-3,1 -inexactp,3.10000<:2.50000,1 +inexactp,3<:-2.142,1 +inexactp,3.000<:-3,1 +inexactp,3.100<:2.500,1 inexactp,2L%3L<:2,1 inexactp,1L%2L<:3L%4L,1 inexactp,-inf,1 @@ -968,22 +968,22 @@ infp,1,0 infp,-1,0 infp,0,0 -infp,0.00000,0 -infp,1.20000,0 -infp,-1.20000,0 +infp,0.000,0 +infp,1.200,0 +infp,-1.200,0 infp,1L%3L,0 infp,(-1L)%4L,0 infp,1+:2,0 infp,-1+:2,0 infp,1+:-2,0 -infp,-1.20000+:4.30000,0 -infp,1.20000+:-4.30000,0 +infp,-1.200+:4.300,0 +infp,1.200+:-4.300,0 infp,1L%2L+:1,0 infp,1L%2L+:3L%4L,0 infp,3<:1,0 -infp,3<:-2.14159,0 -infp,3.00000<:-3,0 -infp,3.10000<:2.50000,0 +infp,3<:-2.142,0 +infp,3.000<:-3,0 +infp,3.100<:2.500,0 infp,2L%3L<:2,0 infp,1L%2L<:3L%4L,0 infp,-inf,1 @@ -991,22 +991,22 @@ nanp,1,0 nanp,-1,0 nanp,0,0 -nanp,0.00000,0 -nanp,1.20000,0 -nanp,-1.20000,0 +nanp,0.000,0 +nanp,1.200,0 +nanp,-1.200,0 nanp,1L%3L,0 nanp,(-1L)%4L,0 nanp,1+:2,0 nanp,-1+:2,0 nanp,1+:-2,0 -nanp,-1.20000+:4.30000,0 -nanp,1.20000+:-4.30000,0 +nanp,-1.200+:4.300,0 +nanp,1.200+:-4.300,0 nanp,1L%2L+:1,0 nanp,1L%2L+:3L%4L,0 nanp,3<:1,0 -nanp,3<:-2.14159,0 -nanp,3.00000<:-3,0 -nanp,3.10000<:2.50000,0 +nanp,3<:-2.142,0 +nanp,3.000<:-3,0 +nanp,3.100<:2.500,0 nanp,2L%3L<:2,0 nanp,1L%2L<:3L%4L,0 nanp,-inf,0 @@ -1015,1080 +1015,1080 @@ (+),1,1,2 (+),1,-1,0 (+),1,0,1 -(+),1,0.00000,1.00000 -(+),1,1.20000,2.20000 -(+),1,-1.20000,-0.200000 +(+),1,0.000,1.000 +(+),1,1.200,2.200 +(+),1,-1.200,-0.2000 (+),1,1L%3L,4L%3L (+),1,(-1L)%4L,3L%4L (+),1,1+:2,2+:2 (+),1,-1+:2,0+:2 (+),1,1+:-2,2+:-2 -(+),1,-1.20000+:4.30000,-0.200000+:4.30000 -(+),1,1.20000+:-4.30000,2.20000+:-4.30000 +(+),1,-1.200+:4.300,-0.2000+:4.300 +(+),1,1.200+:-4.300,2.200+:-4.300 (+),1,1L%2L+:1,3L%2L+:1 (+),1,1L%2L+:3L%4L,3L%2L+:3L%4L -(+),1,3<:1,2.62091+:2.52441 -(+),1,3<:-2.14159,-0.620907+:-2.52441 -(+),1,3.00000<:-3,-1.96998+:-0.423360 -(+),1,3.10000<:2.50000,-1.48355+:1.85526 -(+),1,2L%3L<:2,0.722569+:0.606198 -(+),1,1L%2L<:3L%4L,1.36584+:0.340819 +(+),1,3<:1,2.621+:2.524 +(+),1,3<:-2.142,-0.6209+:-2.524 +(+),1,3.000<:-3,-1.970+:-0.4234 +(+),1,3.100<:2.500,-1.484+:1.855 +(+),1,2L%3L<:2,0.7226+:0.6062 +(+),1,1L%2L<:3L%4L,1.366+:0.3408 (+),1,-inf,-inf (+),1,nan,nan (+),-1,1,0 (+),-1,-1,-2 (+),-1,0,-1 -(+),-1,0.00000,-1.00000 -(+),-1,1.20000,0.200000 -(+),-1,-1.20000,-2.20000 +(+),-1,0.000,-1.000 +(+),-1,1.200,0.2000 +(+),-1,-1.200,-2.200 (+),-1,1L%3L,(-2L)%3L (+),-1,(-1L)%4L,(-5L)%4L (+),-1,1+:2,0+:2 (+),-1,-1+:2,-2+:2 (+),-1,1+:-2,0+:-2 -(+),-1,-1.20000+:4.30000,-2.20000+:4.30000 -(+),-1,1.20000+:-4.30000,0.200000+:-4.30000 +(+),-1,-1.200+:4.300,-2.200+:4.300 +(+),-1,1.200+:-4.300,0.2000+:-4.300 (+),-1,1L%2L+:1,(-1L)%2L+:1 (+),-1,1L%2L+:3L%4L,(-1L)%2L+:3L%4L -(+),-1,3<:1,0.620907+:2.52441 -(+),-1,3<:-2.14159,-2.62091+:-2.52441 -(+),-1,3.00000<:-3,-3.96998+:-0.423360 -(+),-1,3.10000<:2.50000,-3.48355+:1.85526 -(+),-1,2L%3L<:2,-1.27743+:0.606198 -(+),-1,1L%2L<:3L%4L,-0.634156+:0.340819 +(+),-1,3<:1,0.6209+:2.524 +(+),-1,3<:-2.142,-2.621+:-2.524 +(+),-1,3.000<:-3,-3.970+:-0.4234 +(+),-1,3.100<:2.500,-3.484+:1.855 +(+),-1,2L%3L<:2,-1.277+:0.6062 +(+),-1,1L%2L<:3L%4L,-0.6342+:0.3408 (+),-1,-inf,-inf (+),-1,nan,nan (+),0,1,1 (+),0,-1,-1 (+),0,0,0 -(+),0,0.00000,0.00000 -(+),0,1.20000,1.20000 -(+),0,-1.20000,-1.20000 +(+),0,0.000,0.000 +(+),0,1.200,1.200 +(+),0,-1.200,-1.200 (+),0,1L%3L,1L%3L (+),0,(-1L)%4L,(-1L)%4L (+),0,1+:2,1+:2 (+),0,-1+:2,-1+:2 (+),0,1+:-2,1+:-2 -(+),0,-1.20000+:4.30000,-1.20000+:4.30000 -(+),0,1.20000+:-4.30000,1.20000+:-4.30000 +(+),0,-1.200+:4.300,-1.200+:4.300 +(+),0,1.200+:-4.300,1.200+:-4.300 (+),0,1L%2L+:1,1L%2L+:1 (+),0,1L%2L+:3L%4L,1L%2L+:3L%4L -(+),0,3<:1,1.62091+:2.52441 -(+),0,3<:-2.14159,-1.62091+:-2.52441 -(+),0,3.00000<:-3,-2.96998+:-0.423360 -(+),0,3.10000<:2.50000,-2.48355+:1.85526 -(+),0,2L%3L<:2,-0.277431+:0.606198 -(+),0,1L%2L<:3L%4L,0.365844+:0.340819 +(+),0,3<:1,1.621+:2.524 +(+),0,3<:-2.142,-1.621+:-2.524 +(+),0,3.000<:-3,-2.970+:-0.4234 +(+),0,3.100<:2.500,-2.484+:1.855 +(+),0,2L%3L<:2,-0.2774+:0.6062 +(+),0,1L%2L<:3L%4L,0.3658+:0.3408 (+),0,-inf,-inf (+),0,nan,nan -(+),0.00000,1,1.00000 -(+),0.00000,-1,-1.00000 -(+),0.00000,0,0.00000 -(+),0.00000,0.00000,0.00000 -(+),0.00000,1.20000,1.20000 -(+),0.00000,-1.20000,-1.20000 -(+),0.00000,1L%3L,0.333333 -(+),0.00000,(-1L)%4L,-0.250000 -(+),0.00000,1+:2,1.00000+:2 -(+),0.00000,-1+:2,-1.00000+:2 -(+),0.00000,1+:-2,1.00000+:-2 -(+),0.00000,-1.20000+:4.30000,-1.20000+:4.30000 -(+),0.00000,1.20000+:-4.30000,1.20000+:-4.30000 -(+),0.00000,1L%2L+:1,0.500000+:1 -(+),0.00000,1L%2L+:3L%4L,0.500000+:3L%4L -(+),0.00000,3<:1,1.62091+:2.52441 -(+),0.00000,3<:-2.14159,-1.62091+:-2.52441 -(+),0.00000,3.00000<:-3,-2.96998+:-0.423360 -(+),0.00000,3.10000<:2.50000,-2.48355+:1.85526 -(+),0.00000,2L%3L<:2,-0.277431+:0.606198 -(+),0.00000,1L%2L<:3L%4L,0.365844+:0.340819 -(+),0.00000,-inf,-inf -(+),0.00000,nan,nan -(+),1.20000,1,2.20000 -(+),1.20000,-1,0.200000 -(+),1.20000,0,1.20000 -(+),1.20000,0.00000,1.20000 -(+),1.20000,1.20000,2.40000 -(+),1.20000,-1.20000,0.00000 -(+),1.20000,1L%3L,1.53333 -(+),1.20000,(-1L)%4L,0.950000 -(+),1.20000,1+:2,2.20000+:2 -(+),1.20000,-1+:2,0.200000+:2 -(+),1.20000,1+:-2,2.20000+:-2 -(+),1.20000,-1.20000+:4.30000,0.00000+:4.30000 -(+),1.20000,1.20000+:-4.30000,2.40000+:-4.30000 -(+),1.20000,1L%2L+:1,1.70000+:1 -(+),1.20000,1L%2L+:3L%4L,1.70000+:3L%4L -(+),1.20000,3<:1,2.82091+:2.52441 -(+),1.20000,3<:-2.14159,-0.420907+:-2.52441 -(+),1.20000,3.00000<:-3,-1.76998+:-0.423360 -(+),1.20000,3.10000<:2.50000,-1.28355+:1.85526 -(+),1.20000,2L%3L<:2,0.922569+:0.606198 -(+),1.20000,1L%2L<:3L%4L,1.56584+:0.340819 -(+),1.20000,-inf,-inf -(+),1.20000,nan,nan -(+),-1.20000,1,-0.200000 -(+),-1.20000,-1,-2.20000 -(+),-1.20000,0,-1.20000 -(+),-1.20000,0.00000,-1.20000 -(+),-1.20000,1.20000,0.00000 -(+),-1.20000,-1.20000,-2.40000 -(+),-1.20000,1L%3L,-0.866667 -(+),-1.20000,(-1L)%4L,-1.45000 -(+),-1.20000,1+:2,-0.200000+:2 -(+),-1.20000,-1+:2,-2.20000+:2 -(+),-1.20000,1+:-2,-0.200000+:-2 -(+),-1.20000,-1.20000+:4.30000,-2.40000+:4.30000 -(+),-1.20000,1.20000+:-4.30000,0.00000+:-4.30000 -(+),-1.20000,1L%2L+:1,-0.700000+:1 -(+),-1.20000,1L%2L+:3L%4L,-0.700000+:3L%4L -(+),-1.20000,3<:1,0.420907+:2.52441 -(+),-1.20000,3<:-2.14159,-2.82091+:-2.52441 -(+),-1.20000,3.00000<:-3,-4.16998+:-0.423360 -(+),-1.20000,3.10000<:2.50000,-3.68355+:1.85526 -(+),-1.20000,2L%3L<:2,-1.47743+:0.606198 -(+),-1.20000,1L%2L<:3L%4L,-0.834156+:0.340819 -(+),-1.20000,-inf,-inf -(+),-1.20000,nan,nan +(+),0.000,1,1.000 +(+),0.000,-1,-1.000 +(+),0.000,0,0.000 +(+),0.000,0.000,0.000 +(+),0.000,1.200,1.200 +(+),0.000,-1.200,-1.200 +(+),0.000,1L%3L,0.3333 +(+),0.000,(-1L)%4L,-0.2500 +(+),0.000,1+:2,1.000+:2 +(+),0.000,-1+:2,-1.000+:2 +(+),0.000,1+:-2,1.000+:-2 +(+),0.000,-1.200+:4.300,-1.200+:4.300 +(+),0.000,1.200+:-4.300,1.200+:-4.300 +(+),0.000,1L%2L+:1,0.5000+:1 +(+),0.000,1L%2L+:3L%4L,0.5000+:3L%4L +(+),0.000,3<:1,1.621+:2.524 +(+),0.000,3<:-2.142,-1.621+:-2.524 +(+),0.000,3.000<:-3,-2.970+:-0.4234 +(+),0.000,3.100<:2.500,-2.484+:1.855 +(+),0.000,2L%3L<:2,-0.2774+:0.6062 +(+),0.000,1L%2L<:3L%4L,0.3658+:0.3408 +(+),0.000,-inf,-inf +(+),0.000,nan,nan +(+),1.200,1,2.200 +(+),1.200,-1,0.2000 +(+),1.200,0,1.200 +(+),1.200,0.000,1.200 +(+),1.200,1.200,2.400 +(+),1.200,-1.200,0.000 +(+),1.200,1L%3L,1.533 +(+),1.200,(-1L)%4L,0.9500 +(+),1.200,1+:2,2.200+:2 +(+),1.200,-1+:2,0.2000+:2 +(+),1.200,1+:-2,2.200+:-2 +(+),1.200,-1.200+:4.300,0.000+:4.300 +(+),1.200,1.200+:-4.300,2.400+:-4.300 +(+),1.200,1L%2L+:1,1.700+:1 +(+),1.200,1L%2L+:3L%4L,1.700+:3L%4L +(+),1.200,3<:1,2.821+:2.524 +(+),1.200,3<:-2.142,-0.4209+:-2.524 +(+),1.200,3.000<:-3,-1.770+:-0.4234 +(+),1.200,3.100<:2.500,-1.284+:1.855 +(+),1.200,2L%3L<:2,0.9226+:0.6062 +(+),1.200,1L%2L<:3L%4L,1.566+:0.3408 +(+),1.200,-inf,-inf +(+),1.200,nan,nan +(+),-1.200,1,-0.2000 +(+),-1.200,-1,-2.200 +(+),-1.200,0,-1.200 +(+),-1.200,0.000,-1.200 +(+),-1.200,1.200,0.000 +(+),-1.200,-1.200,-2.400 +(+),-1.200,1L%3L,-0.8667 +(+),-1.200,(-1L)%4L,-1.450 +(+),-1.200,1+:2,-0.2000+:2 +(+),-1.200,-1+:2,-2.200+:2 +(+),-1.200,1+:-2,-0.2000+:-2 +(+),-1.200,-1.200+:4.300,-2.400+:4.300 +(+),-1.200,1.200+:-4.300,0.000+:-4.300 +(+),-1.200,1L%2L+:1,-0.7000+:1 +(+),-1.200,1L%2L+:3L%4L,-0.7000+:3L%4L +(+),-1.200,3<:1,0.4209+:2.524 +(+),-1.200,3<:-2.142,-2.821+:-2.524 +(+),-1.200,3.000<:-3,-4.170+:-0.4234 +(+),-1.200,3.100<:2.500,-3.684+:1.855 +(+),-1.200,2L%3L<:2,-1.477+:0.6062 +(+),-1.200,1L%2L<:3L%4L,-0.8342+:0.3408 +(+),-1.200,-inf,-inf +(+),-1.200,nan,nan (+),1L%3L,1,4L%3L (+),1L%3L,-1,(-2L)%3L (+),1L%3L,0,1L%3L -(+),1L%3L,0.00000,0.333333 -(+),1L%3L,1.20000,1.53333 -(+),1L%3L,-1.20000,-0.866667 +(+),1L%3L,0.000,0.3333 +(+),1L%3L,1.200,1.533 +(+),1L%3L,-1.200,-0.8667 (+),1L%3L,1L%3L,2L%3L (+),1L%3L,(-1L)%4L,1L%12L (+),1L%3L,1+:2,4L%3L+:2 (+),1L%3L,-1+:2,(-2L)%3L+:2 (+),1L%3L,1+:-2,4L%3L+:-2 -(+),1L%3L,-1.20000+:4.30000,-0.866667+:4.30000 -(+),1L%3L,1.20000+:-4.30000,1.53333+:-4.30000 +(+),1L%3L,-1.200+:4.300,-0.8667+:4.300 +(+),1L%3L,1.200+:-4.300,1.533+:-4.300 (+),1L%3L,1L%2L+:1,5L%6L+:1 (+),1L%3L,1L%2L+:3L%4L,5L%6L+:3L%4L -(+),1L%3L,3<:1,1.95424+:2.52441 -(+),1L%3L,3<:-2.14159,-1.28757+:-2.52441 -(+),1L%3L,3.00000<:-3,-2.63664+:-0.423360 -(+),1L%3L,3.10000<:2.50000,-2.15021+:1.85526 -(+),1L%3L,2L%3L<:2,0.0559021+:0.606198 -(+),1L%3L,1L%2L<:3L%4L,0.699178+:0.340819 +(+),1L%3L,3<:1,1.954+:2.524 +(+),1L%3L,3<:-2.142,-1.288+:-2.524 +(+),1L%3L,3.000<:-3,-2.637+:-0.4234 +(+),1L%3L,3.100<:2.500,-2.150+:1.855 +(+),1L%3L,2L%3L<:2,0.05590+:0.6062 +(+),1L%3L,1L%2L<:3L%4L,0.6992+:0.3408 (+),1L%3L,-inf,-inf (+),1L%3L,nan,nan (+),(-1L)%4L,1,3L%4L (+),(-1L)%4L,-1,(-5L)%4L (+),(-1L)%4L,0,(-1L)%4L -(+),(-1L)%4L,0.00000,-0.250000 -(+),(-1L)%4L,1.20000,0.950000 -(+),(-1L)%4L,-1.20000,-1.45000 +(+),(-1L)%4L,0.000,-0.2500 +(+),(-1L)%4L,1.200,0.9500 +(+),(-1L)%4L,-1.200,-1.450 (+),(-1L)%4L,1L%3L,1L%12L (+),(-1L)%4L,(-1L)%4L,(-1L)%2L (+),(-1L)%4L,1+:2,3L%4L+:2 (+),(-1L)%4L,-1+:2,(-5L)%4L+:2 (+),(-1L)%4L,1+:-2,3L%4L+:-2 -(+),(-1L)%4L,-1.20000+:4.30000,-1.45000+:4.30000 -(+),(-1L)%4L,1.20000+:-4.30000,0.950000+:-4.30000 +(+),(-1L)%4L,-1.200+:4.300,-1.450+:4.300 +(+),(-1L)%4L,1.200+:-4.300,0.9500+:-4.300 (+),(-1L)%4L,1L%2L+:1,1L%4L+:1 (+),(-1L)%4L,1L%2L+:3L%4L,1L%4L+:3L%4L -(+),(-1L)%4L,3<:1,1.37091+:2.52441 -(+),(-1L)%4L,3<:-2.14159,-1.87091+:-2.52441 -(+),(-1L)%4L,3.00000<:-3,-3.21998+:-0.423360 -(+),(-1L)%4L,3.10000<:2.50000,-2.73355+:1.85526 -(+),(-1L)%4L,2L%3L<:2,-0.527431+:0.606198 -(+),(-1L)%4L,1L%2L<:3L%4L,0.115844+:0.340819 +(+),(-1L)%4L,3<:1,1.371+:2.524 +(+),(-1L)%4L,3<:-2.142,-1.871+:-2.524 +(+),(-1L)%4L,3.000<:-3,-3.220+:-0.4234 +(+),(-1L)%4L,3.100<:2.500,-2.734+:1.855 +(+),(-1L)%4L,2L%3L<:2,-0.5274+:0.6062 +(+),(-1L)%4L,1L%2L<:3L%4L,0.1158+:0.3408 (+),(-1L)%4L,-inf,-inf (+),(-1L)%4L,nan,nan (+),1+:2,1,2+:2 (+),1+:2,-1,0+:2 (+),1+:2,0,1+:2 -(+),1+:2,0.00000,1.00000+:2 -(+),1+:2,1.20000,2.20000+:2 -(+),1+:2,-1.20000,-0.200000+:2 +(+),1+:2,0.000,1.000+:2 +(+),1+:2,1.200,2.200+:2 +(+),1+:2,-1.200,-0.2000+:2 (+),1+:2,1L%3L,4L%3L+:2 (+),1+:2,(-1L)%4L,3L%4L+:2 (+),1+:2,1+:2,2+:4 (+),1+:2,-1+:2,0+:4 (+),1+:2,1+:-2,2+:0 -(+),1+:2,-1.20000+:4.30000,-0.200000+:6.30000 -(+),1+:2,1.20000+:-4.30000,2.20000+:-2.30000 +(+),1+:2,-1.200+:4.300,-0.2000+:6.300 +(+),1+:2,1.200+:-4.300,2.200+:-2.300 (+),1+:2,1L%2L+:1,3L%2L+:3 (+),1+:2,1L%2L+:3L%4L,3L%2L+:11L%4L -(+),1+:2,3<:1,2.62091+:4.52441 -(+),1+:2,3<:-2.14159,-0.620907+:-0.524413 -(+),1+:2,3.00000<:-3,-1.96998+:1.57664 -(+),1+:2,3.10000<:2.50000,-1.48355+:3.85526 -(+),1+:2,2L%3L<:2,0.722569+:2.60620 -(+),1+:2,1L%2L<:3L%4L,1.36584+:2.34082 +(+),1+:2,3<:1,2.621+:4.524 +(+),1+:2,3<:-2.142,-0.6209+:-0.5244 +(+),1+:2,3.000<:-3,-1.970+:1.577 +(+),1+:2,3.100<:2.500,-1.484+:3.855 +(+),1+:2,2L%3L<:2,0.7226+:2.606 +(+),1+:2,1L%2L<:3L%4L,1.366+:2.341 (+),1+:2,-inf,-inf+:2 (+),1+:2,nan,nan+:2 (+),-1+:2,1,0+:2 (+),-1+:2,-1,-2+:2 (+),-1+:2,0,-1+:2 -(+),-1+:2,0.00000,-1.00000+:2 -(+),-1+:2,1.20000,0.200000+:2 -(+),-1+:2,-1.20000,-2.20000+:2 +(+),-1+:2,0.000,-1.000+:2 +(+),-1+:2,1.200,0.2000+:2 +(+),-1+:2,-1.200,-2.200+:2 (+),-1+:2,1L%3L,(-2L)%3L+:2 (+),-1+:2,(-1L)%4L,(-5L)%4L+:2 (+),-1+:2,1+:2,0+:4 (+),-1+:2,-1+:2,-2+:4 (+),-1+:2,1+:-2,0+:0 -(+),-1+:2,-1.20000+:4.30000,-2.20000+:6.30000 -(+),-1+:2,1.20000+:-4.30000,0.200000+:-2.30000 +(+),-1+:2,-1.200+:4.300,-2.200+:6.300 +(+),-1+:2,1.200+:-4.300,0.2000+:-2.300 (+),-1+:2,1L%2L+:1,(-1L)%2L+:3 (+),-1+:2,1L%2L+:3L%4L,(-1L)%2L+:11L%4L -(+),-1+:2,3<:1,0.620907+:4.52441 -(+),-1+:2,3<:-2.14159,-2.62091+:-0.524413 -(+),-1+:2,3.00000<:-3,-3.96998+:1.57664 -(+),-1+:2,3.10000<:2.50000,-3.48355+:3.85526 -(+),-1+:2,2L%3L<:2,-1.27743+:2.60620 -(+),-1+:2,1L%2L<:3L%4L,-0.634156+:2.34082 +(+),-1+:2,3<:1,0.6209+:4.524 +(+),-1+:2,3<:-2.142,-2.621+:-0.5244 +(+),-1+:2,3.000<:-3,-3.970+:1.577 +(+),-1+:2,3.100<:2.500,-3.484+:3.855 +(+),-1+:2,2L%3L<:2,-1.277+:2.606 +(+),-1+:2,1L%2L<:3L%4L,-0.6342+:2.341 (+),-1+:2,-inf,-inf+:2 (+),-1+:2,nan,nan+:2 (+),1+:-2,1,2+:-2 (+),1+:-2,-1,0+:-2 (+),1+:-2,0,1+:-2 -(+),1+:-2,0.00000,1.00000+:-2 -(+),1+:-2,1.20000,2.20000+:-2 -(+),1+:-2,-1.20000,-0.200000+:-2 +(+),1+:-2,0.000,1.000+:-2 +(+),1+:-2,1.200,2.200+:-2 +(+),1+:-2,-1.200,-0.2000+:-2 (+),1+:-2,1L%3L,4L%3L+:-2 (+),1+:-2,(-1L)%4L,3L%4L+:-2 (+),1+:-2,1+:2,2+:0 (+),1+:-2,-1+:2,0+:0 (+),1+:-2,1+:-2,2+:-4 -(+),1+:-2,-1.20000+:4.30000,-0.200000+:2.30000 -(+),1+:-2,1.20000+:-4.30000,2.20000+:-6.30000 +(+),1+:-2,-1.200+:4.300,-0.2000+:2.300 +(+),1+:-2,1.200+:-4.300,2.200+:-6.300 (+),1+:-2,1L%2L+:1,3L%2L+:-1 (+),1+:-2,1L%2L+:3L%4L,3L%2L+:(-5L)%4L -(+),1+:-2,3<:1,2.62091+:0.524413 -(+),1+:-2,3<:-2.14159,-0.620907+:-4.52441 -(+),1+:-2,3.00000<:-3,-1.96998+:-2.42336 -(+),1+:-2,3.10000<:2.50000,-1.48355+:-0.144736 -(+),1+:-2,2L%3L<:2,0.722569+:-1.39380 -(+),1+:-2,1L%2L<:3L%4L,1.36584+:-1.65918 +(+),1+:-2,3<:1,2.621+:0.5244 +(+),1+:-2,3<:-2.142,-0.6209+:-4.524 +(+),1+:-2,3.000<:-3,-1.970+:-2.423 +(+),1+:-2,3.100<:2.500,-1.484+:-0.1447 +(+),1+:-2,2L%3L<:2,0.7226+:-1.394 +(+),1+:-2,1L%2L<:3L%4L,1.366+:-1.659 (+),1+:-2,-inf,-inf+:-2 (+),1+:-2,nan,nan+:-2 -(+),-1.20000+:4.30000,1,-0.200000+:4.30000 -(+),-1.20000+:4.30000,-1,-2.20000+:4.30000 -(+),-1.20000+:4.30000,0,-1.20000+:4.30000 -(+),-1.20000+:4.30000,0.00000,-1.20000+:4.30000 -(+),-1.20000+:4.30000,1.20000,0.00000+:4.30000 -(+),-1.20000+:4.30000,-1.20000,-2.40000+:4.30000 -(+),-1.20000+:4.30000,1L%3L,-0.866667+:4.30000 -(+),-1.20000+:4.30000,(-1L)%4L,-1.45000+:4.30000 -(+),-1.20000+:4.30000,1+:2,-0.200000+:6.30000 -(+),-1.20000+:4.30000,-1+:2,-2.20000+:6.30000 -(+),-1.20000+:4.30000,1+:-2,-0.200000+:2.30000 -(+),-1.20000+:4.30000,-1.20000+:4.30000,-2.40000+:8.60000 -(+),-1.20000+:4.30000,1.20000+:-4.30000,0.00000+:0.00000 -(+),-1.20000+:4.30000,1L%2L+:1,-0.700000+:5.30000 -(+),-1.20000+:4.30000,1L%2L+:3L%4L,-0.700000+:5.05000 -(+),-1.20000+:4.30000,3<:1,0.420907+:6.82441 -(+),-1.20000+:4.30000,3<:-2.14159,-2.82091+:1.77559 -(+),-1.20000+:4.30000,3.00000<:-3,-4.16998+:3.87664 -(+),-1.20000+:4.30000,3.10000<:2.50000,-3.68355+:6.15526 -(+),-1.20000+:4.30000,2L%3L<:2,-1.47743+:4.90620 -(+),-1.20000+:4.30000,1L%2L<:3L%4L,-0.834156+:4.64082 -(+),-1.20000+:4.30000,-inf,-inf+:4.30000 -(+),-1.20000+:4.30000,nan,nan+:4.30000 -(+),1.20000+:-4.30000,1,2.20000+:-4.30000 -(+),1.20000+:-4.30000,-1,0.200000+:-4.30000 -(+),1.20000+:-4.30000,0,1.20000+:-4.30000 -(+),1.20000+:-4.30000,0.00000,1.20000+:-4.30000 -(+),1.20000+:-4.30000,1.20000,2.40000+:-4.30000 -(+),1.20000+:-4.30000,-1.20000,0.00000+:-4.30000 -(+),1.20000+:-4.30000,1L%3L,1.53333+:-4.30000 -(+),1.20000+:-4.30000,(-1L)%4L,0.950000+:-4.30000 -(+),1.20000+:-4.30000,1+:2,2.20000+:-2.30000 -(+),1.20000+:-4.30000,-1+:2,0.200000+:-2.30000 -(+),1.20000+:-4.30000,1+:-2,2.20000+:-6.30000 -(+),1.20000+:-4.30000,-1.20000+:4.30000,0.00000+:0.00000 -(+),1.20000+:-4.30000,1.20000+:-4.30000,2.40000+:-8.60000 -(+),1.20000+:-4.30000,1L%2L+:1,1.70000+:-3.30000 -(+),1.20000+:-4.30000,1L%2L+:3L%4L,1.70000+:-3.55000 -(+),1.20000+:-4.30000,3<:1,2.82091+:-1.77559 -(+),1.20000+:-4.30000,3<:-2.14159,-0.420907+:-6.82441 -(+),1.20000+:-4.30000,3.00000<:-3,-1.76998+:-4.72336 -(+),1.20000+:-4.30000,3.10000<:2.50000,-1.28355+:-2.44474 -(+),1.20000+:-4.30000,2L%3L<:2,0.922569+:-3.69380 -(+),1.20000+:-4.30000,1L%2L<:3L%4L,1.56584+:-3.95918 -(+),1.20000+:-4.30000,-inf,-inf+:-4.30000 -(+),1.20000+:-4.30000,nan,nan+:-4.30000 +(+),-1.200+:4.300,1,-0.2000+:4.300 +(+),-1.200+:4.300,-1,-2.200+:4.300 +(+),-1.200+:4.300,0,-1.200+:4.300 +(+),-1.200+:4.300,0.000,-1.200+:4.300 +(+),-1.200+:4.300,1.200,0.000+:4.300 +(+),-1.200+:4.300,-1.200,-2.400+:4.300 +(+),-1.200+:4.300,1L%3L,-0.8667+:4.300 +(+),-1.200+:4.300,(-1L)%4L,-1.450+:4.300 +(+),-1.200+:4.300,1+:2,-0.2000+:6.300 +(+),-1.200+:4.300,-1+:2,-2.200+:6.300 +(+),-1.200+:4.300,1+:-2,-0.2000+:2.300 +(+),-1.200+:4.300,-1.200+:4.300,-2.400+:8.600 +(+),-1.200+:4.300,1.200+:-4.300,0.000+:0.000 +(+),-1.200+:4.300,1L%2L+:1,-0.7000+:5.300 +(+),-1.200+:4.300,1L%2L+:3L%4L,-0.7000+:5.050 +(+),-1.200+:4.300,3<:1,0.4209+:6.824 +(+),-1.200+:4.300,3<:-2.142,-2.821+:1.776 +(+),-1.200+:4.300,3.000<:-3,-4.170+:3.877 +(+),-1.200+:4.300,3.100<:2.500,-3.684+:6.155 +(+),-1.200+:4.300,2L%3L<:2,-1.477+:4.906 +(+),-1.200+:4.300,1L%2L<:3L%4L,-0.8342+:4.641 +(+),-1.200+:4.300,-inf,-inf+:4.300 +(+),-1.200+:4.300,nan,nan+:4.300 +(+),1.200+:-4.300,1,2.200+:-4.300 +(+),1.200+:-4.300,-1,0.2000+:-4.300 +(+),1.200+:-4.300,0,1.200+:-4.300 +(+),1.200+:-4.300,0.000,1.200+:-4.300 +(+),1.200+:-4.300,1.200,2.400+:-4.300 +(+),1.200+:-4.300,-1.200,0.000+:-4.300 +(+),1.200+:-4.300,1L%3L,1.533+:-4.300 +(+),1.200+:-4.300,(-1L)%4L,0.9500+:-4.300 +(+),1.200+:-4.300,1+:2,2.200+:-2.300 +(+),1.200+:-4.300,-1+:2,0.2000+:-2.300 +(+),1.200+:-4.300,1+:-2,2.200+:-6.300 +(+),1.200+:-4.300,-1.200+:4.300,0.000+:0.000 +(+),1.200+:-4.300,1.200+:-4.300,2.400+:-8.600 +(+),1.200+:-4.300,1L%2L+:1,1.700+:-3.300 +(+),1.200+:-4.300,1L%2L+:3L%4L,1.700+:-3.550 +(+),1.200+:-4.300,3<:1,2.821+:-1.776 +(+),1.200+:-4.300,3<:-2.142,-0.4209+:-6.824 +(+),1.200+:-4.300,3.000<:-3,-1.770+:-4.723 +(+),1.200+:-4.300,3.100<:2.500,-1.284+:-2.445 +(+),1.200+:-4.300,2L%3L<:2,0.9226+:-3.694 +(+),1.200+:-4.300,1L%2L<:3L%4L,1.566+:-3.959 +(+),1.200+:-4.300,-inf,-inf+:-4.300 +(+),1.200+:-4.300,nan,nan+:-4.300 (+),1L%2L+:1,1,3L%2L+:1 (+),1L%2L+:1,-1,(-1L)%2L+:1 (+),1L%2L+:1,0,1L%2L+:1 -(+),1L%2L+:1,0.00000,0.500000+:1 -(+),1L%2L+:1,1.20000,1.70000+:1 -(+),1L%2L+:1,-1.20000,-0.700000+:1 +(+),1L%2L+:1,0.000,0.5000+:1 +(+),1L%2L+:1,1.200,1.700+:1 +(+),1L%2L+:1,-1.200,-0.7000+:1 (+),1L%2L+:1,1L%3L,5L%6L+:1 (+),1L%2L+:1,(-1L)%4L,1L%4L+:1 (+),1L%2L+:1,1+:2,3L%2L+:3 (+),1L%2L+:1,-1+:2,(-1L)%2L+:3 (+),1L%2L+:1,1+:-2,3L%2L+:-1 -(+),1L%2L+:1,-1.20000+:4.30000,-0.700000+:5.30000 -(+),1L%2L+:1,1.20000+:-4.30000,1.70000+:-3.30000 +(+),1L%2L+:1,-1.200+:4.300,-0.7000+:5.300 +(+),1L%2L+:1,1.200+:-4.300,1.700+:-3.300 (+),1L%2L+:1,1L%2L+:1,1L%1L+:2 (+),1L%2L+:1,1L%2L+:3L%4L,1L%1L+:7L%4L -(+),1L%2L+:1,3<:1,2.12091+:3.52441 -(+),1L%2L+:1,3<:-2.14159,-1.12091+:-1.52441 -(+),1L%2L+:1,3.00000<:-3,-2.46998+:0.576640 -(+),1L%2L+:1,3.10000<:2.50000,-1.98355+:2.85526 -(+),1L%2L+:1,2L%3L<:2,0.222569+:1.60620 -(+),1L%2L+:1,1L%2L<:3L%4L,0.865844+:1.34082 +(+),1L%2L+:1,3<:1,2.121+:3.524 +(+),1L%2L+:1,3<:-2.142,-1.121+:-1.524 +(+),1L%2L+:1,3.000<:-3,-2.470+:0.5766 +(+),1L%2L+:1,3.100<:2.500,-1.984+:2.855 +(+),1L%2L+:1,2L%3L<:2,0.2226+:1.606 +(+),1L%2L+:1,1L%2L<:3L%4L,0.8658+:1.341 (+),1L%2L+:1,-inf,-inf+:1 (+),1L%2L+:1,nan,nan+:1 (+),1L%2L+:3L%4L,1,3L%2L+:3L%4L (+),1L%2L+:3L%4L,-1,(-1L)%2L+:3L%4L (+),1L%2L+:3L%4L,0,1L%2L+:3L%4L -(+),1L%2L+:3L%4L,0.00000,0.500000+:3L%4L -(+),1L%2L+:3L%4L,1.20000,1.70000+:3L%4L -(+),1L%2L+:3L%4L,-1.20000,-0.700000+:3L%4L +(+),1L%2L+:3L%4L,0.000,0.5000+:3L%4L +(+),1L%2L+:3L%4L,1.200,1.700+:3L%4L +(+),1L%2L+:3L%4L,-1.200,-0.7000+:3L%4L (+),1L%2L+:3L%4L,1L%3L,5L%6L+:3L%4L (+),1L%2L+:3L%4L,(-1L)%4L,1L%4L+:3L%4L (+),1L%2L+:3L%4L,1+:2,3L%2L+:11L%4L (+),1L%2L+:3L%4L,-1+:2,(-1L)%2L+:11L%4L (+),1L%2L+:3L%4L,1+:-2,3L%2L+:(-5L)%4L -(+),1L%2L+:3L%4L,-1.20000+:4.30000,-0.700000+:5.05000 -(+),1L%2L+:3L%4L,1.20000+:-4.30000,1.70000+:-3.55000 +(+),1L%2L+:3L%4L,-1.200+:4.300,-0.7000+:5.050 +(+),1L%2L+:3L%4L,1.200+:-4.300,1.700+:-3.550 (+),1L%2L+:3L%4L,1L%2L+:1,1L%1L+:7L%4L (+),1L%2L+:3L%4L,1L%2L+:3L%4L,1L%1L+:3L%2L -(+),1L%2L+:3L%4L,3<:1,2.12091+:3.27441 -(+),1L%2L+:3L%4L,3<:-2.14159,-1.12091+:-1.77441 -(+),1L%2L+:3L%4L,3.00000<:-3,-2.46998+:0.326640 -(+),1L%2L+:3L%4L,3.10000<:2.50000,-1.98355+:2.60526 -(+),1L%2L+:3L%4L,2L%3L<:2,0.222569+:1.35620 -(+),1L%2L+:3L%4L,1L%2L<:3L%4L,0.865844+:1.09082 +(+),1L%2L+:3L%4L,3<:1,2.121+:3.274 +(+),1L%2L+:3L%4L,3<:-2.142,-1.121+:-1.774 +(+),1L%2L+:3L%4L,3.000<:-3,-2.470+:0.3266 +(+),1L%2L+:3L%4L,3.100<:2.500,-1.984+:2.605 +(+),1L%2L+:3L%4L,2L%3L<:2,0.2226+:1.356 +(+),1L%2L+:3L%4L,1L%2L<:3L%4L,0.8658+:1.091 (+),1L%2L+:3L%4L,-inf,-inf+:3L%4L (+),1L%2L+:3L%4L,nan,nan+:3L%4L -(+),3<:1,1,2.62091+:2.52441 -(+),3<:1,-1,0.620907+:2.52441 -(+),3<:1,0,1.62091+:2.52441 -(+),3<:1,0.00000,1.62091+:2.52441 -(+),3<:1,1.20000,2.82091+:2.52441 -(+),3<:1,-1.20000,0.420907+:2.52441 -(+),3<:1,1L%3L,1.95424+:2.52441 -(+),3<:1,(-1L)%4L,1.37091+:2.52441 -(+),3<:1,1+:2,2.62091+:4.52441 -(+),3<:1,-1+:2,0.620907+:4.52441 -(+),3<:1,1+:-2,2.62091+:0.524413 -(+),3<:1,-1.20000+:4.30000,0.420907+:6.82441 -(+),3<:1,1.20000+:-4.30000,2.82091+:-1.77559 -(+),3<:1,1L%2L+:1,2.12091+:3.52441 -(+),3<:1,1L%2L+:3L%4L,2.12091+:3.27441 -(+),3<:1,3<:1,6.00000<:1.00000 -(+),3<:1,3<:-2.14159,8.00593e-16<:2.55359 -(+),3<:1,3.00000<:-3,2.49688<:2.14159 -(+),3<:1,3.10000<:2.50000,4.46382<:1.76527 -(+),3<:1,2L%3L<:2,3.40671<:1.16542 -(+),3<:1,1L%2L<:3L%4L,3.48665<:0.964514 -(+),3<:1,-inf,-inf+:2.52441 -(+),3<:1,nan,nan+:2.52441 -(+),3<:-2.14159,1,-0.620907+:-2.52441 -(+),3<:-2.14159,-1,-2.62091+:-2.52441 -(+),3<:-2.14159,0,-1.62091+:-2.52441 -(+),3<:-2.14159,0.00000,-1.62091+:-2.52441 -(+),3<:-2.14159,1.20000,-0.420907+:-2.52441 -(+),3<:-2.14159,-1.20000,-2.82091+:-2.52441 -(+),3<:-2.14159,1L%3L,-1.28757+:-2.52441 -(+),3<:-2.14159,(-1L)%4L,-1.87091+:-2.52441 -(+),3<:-2.14159,1+:2,-0.620907+:-0.524413 -(+),3<:-2.14159,-1+:2,-2.62091+:-0.524413 -(+),3<:-2.14159,1+:-2,-0.620907+:-4.52441 -(+),3<:-2.14159,-1.20000+:4.30000,-2.82091+:1.77559 -(+),3<:-2.14159,1.20000+:-4.30000,-0.420907+:-6.82441 -(+),3<:-2.14159,1L%2L+:1,-1.12091+:-1.52441 -(+),3<:-2.14159,1L%2L+:3L%4L,-1.12091+:-1.77441 -(+),3<:-2.14159,3<:1,8.00593e-16<:2.55359 -(+),3<:-2.14159,3<:-2.14159,6.00000<:-2.14159 -(+),3<:-2.14159,3.00000<:-3,5.45578<:-2.57080 -(+),3<:-2.14159,3.10000<:2.50000,4.15864<:-2.97998 -(+),3<:-2.14159,2L%3L<:2,2.69875<:-2.35099 -(+),3<:-2.14159,1L%2L<:3L%4L,2.51858<:-2.09246 -(+),3<:-2.14159,-inf,-inf+:-2.52441 -(+),3<:-2.14159,nan,nan+:-2.52441 -(+),3.00000<:-3,1,-1.96998+:-0.423360 -(+),3.00000<:-3,-1,-3.96998+:-0.423360 -(+),3.00000<:-3,0,-2.96998+:-0.423360 -(+),3.00000<:-3,0.00000,-2.96998+:-0.423360 -(+),3.00000<:-3,1.20000,-1.76998+:-0.423360 -(+),3.00000<:-3,-1.20000,-4.16998+:-0.423360 -(+),3.00000<:-3,1L%3L,-2.63664+:-0.423360 -(+),3.00000<:-3,(-1L)%4L,-3.21998+:-0.423360 -(+),3.00000<:-3,1+:2,-1.96998+:1.57664 -(+),3.00000<:-3,-1+:2,-3.96998+:1.57664 -(+),3.00000<:-3,1+:-2,-1.96998+:-2.42336 -(+),3.00000<:-3,-1.20000+:4.30000,-4.16998+:3.87664 -(+),3.00000<:-3,1.20000+:-4.30000,-1.76998+:-4.72336 -(+),3.00000<:-3,1L%2L+:1,-2.46998+:0.576640 -(+),3.00000<:-3,1L%2L+:3L%4L,-2.46998+:0.326640 -(+),3.00000<:-3,3<:1,2.49688<:2.14159 -(+),3.00000<:-3,3<:-2.14159,5.45578<:-2.57080 -(+),3.00000<:-3,3.00000<:-3,6.00000<:-3.00000 -(+),3.00000<:-3,3.10000<:2.50000,5.63837<:2.88482 -(+),3.00000<:-3,2L%3L<:2,3.25255<:3.08535 -(+),3.00000<:-3,1L%2L<:3L%4L,2.60544<:-3.10991 -(+),3.00000<:-3,-inf,-inf+:-0.423360 -(+),3.00000<:-3,nan,nan+:-0.423360 -(+),3.10000<:2.50000,1,-1.48355+:1.85526 -(+),3.10000<:2.50000,-1,-3.48355+:1.85526 -(+),3.10000<:2.50000,0,-2.48355+:1.85526 -(+),3.10000<:2.50000,0.00000,-2.48355+:1.85526 -(+),3.10000<:2.50000,1.20000,-1.28355+:1.85526 -(+),3.10000<:2.50000,-1.20000,-3.68355+:1.85526 -(+),3.10000<:2.50000,1L%3L,-2.15021+:1.85526 -(+),3.10000<:2.50000,(-1L)%4L,-2.73355+:1.85526 -(+),3.10000<:2.50000,1+:2,-1.48355+:3.85526 -(+),3.10000<:2.50000,-1+:2,-3.48355+:3.85526 -(+),3.10000<:2.50000,1+:-2,-1.48355+:-0.144736 -(+),3.10000<:2.50000,-1.20000+:4.30000,-3.68355+:6.15526 -(+),3.10000<:2.50000,1.20000+:-4.30000,-1.28355+:-2.44474 -(+),3.10000<:2.50000,1L%2L+:1,-1.98355+:2.85526 -(+),3.10000<:2.50000,1L%2L+:3L%4L,-1.98355+:2.60526 -(+),3.10000<:2.50000,3<:1,4.46382<:1.76527 -(+),3.10000<:2.50000,3<:-2.14159,4.15864<:-2.97998 -(+),3.10000<:2.50000,3.00000<:-3,5.63837<:2.88482 -(+),3.10000<:2.50000,3.10000<:2.50000,6.20000<:2.50000 -(+),3.10000<:2.50000,2L%3L<:2,3.69889<:2.41348 -(+),3.10000<:2.50000,1L%2L<:3L%4L,3.05081<:2.33803 -(+),3.10000<:2.50000,-inf,-inf+:1.85526 -(+),3.10000<:2.50000,nan,nan+:1.85526 -(+),2L%3L<:2,1,0.722569+:0.606198 -(+),2L%3L<:2,-1,-1.27743+:0.606198 -(+),2L%3L<:2,0,-0.277431+:0.606198 -(+),2L%3L<:2,0.00000,-0.277431+:0.606198 -(+),2L%3L<:2,1.20000,0.922569+:0.606198 -(+),2L%3L<:2,-1.20000,-1.47743+:0.606198 -(+),2L%3L<:2,1L%3L,0.0559021+:0.606198 -(+),2L%3L<:2,(-1L)%4L,-0.527431+:0.606198 -(+),2L%3L<:2,1+:2,0.722569+:2.60620 -(+),2L%3L<:2,-1+:2,-1.27743+:2.60620 -(+),2L%3L<:2,1+:-2,0.722569+:-1.39380 -(+),2L%3L<:2,-1.20000+:4.30000,-1.47743+:4.90620 -(+),2L%3L<:2,1.20000+:-4.30000,0.922569+:-3.69380 -(+),2L%3L<:2,1L%2L+:1,0.222569+:1.60620 -(+),2L%3L<:2,1L%2L+:3L%4L,0.222569+:1.35620 -(+),2L%3L<:2,3<:1,3.40671<:1.16542 -(+),2L%3L<:2,3<:-2.14159,2.69875<:-2.35099 -(+),2L%3L<:2,3.00000<:-3,3.25255<:3.08535 -(+),2L%3L<:2,3.10000<:2.50000,3.69889<:2.41348 -(+),2L%3L<:2,2L%3L<:2,1.33333<:2.00000 -(+),2L%3L<:2,1L%2L<:3L%4L,0.951136<:1.47771 -(+),2L%3L<:2,-inf,-inf+:0.606198 -(+),2L%3L<:2,nan,nan+:0.606198 -(+),1L%2L<:3L%4L,1,1.36584+:0.340819 -(+),1L%2L<:3L%4L,-1,-0.634156+:0.340819 -(+),1L%2L<:3L%4L,0,0.365844+:0.340819 -(+),1L%2L<:3L%4L,0.00000,0.365844+:0.340819 -(+),1L%2L<:3L%4L,1.20000,1.56584+:0.340819 -(+),1L%2L<:3L%4L,-1.20000,-0.834156+:0.340819 -(+),1L%2L<:3L%4L,1L%3L,0.699178+:0.340819 -(+),1L%2L<:3L%4L,(-1L)%4L,0.115844+:0.340819 -(+),1L%2L<:3L%4L,1+:2,1.36584+:2.34082 -(+),1L%2L<:3L%4L,-1+:2,-0.634156+:2.34082 -(+),1L%2L<:3L%4L,1+:-2,1.36584+:-1.65918 -(+),1L%2L<:3L%4L,-1.20000+:4.30000,-0.834156+:4.64082 -(+),1L%2L<:3L%4L,1.20000+:-4.30000,1.56584+:-3.95918 -(+),1L%2L<:3L%4L,1L%2L+:1,0.865844+:1.34082 -(+),1L%2L<:3L%4L,1L%2L+:3L%4L,0.865844+:1.09082 -(+),1L%2L<:3L%4L,3<:1,3.48665<:0.964514 -(+),1L%2L<:3L%4L,3<:-2.14159,2.51858<:-2.09246 -(+),1L... [truncated message content] |
From: <ag...@us...> - 2008-08-22 12:38:32
|
Revision: 571 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=571&view=rev Author: agraef Date: 2008-08-22 12:38:42 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Round results to 4 digits, to prevent failing tests due to small rounding discrepancies. Modified Paths: -------------- pure/trunk/test/test020.pure Modified: pure/trunk/test/test020.pure =================================================================== --- pure/trunk/test/test020.pure 2008-08-22 12:32:31 UTC (rev 570) +++ pure/trunk/test/test020.pure 2008-08-22 12:38:42 UTC (rev 571) @@ -23,7 +23,7 @@ /* This will print out each operation, arguments and result as a single line. Exceptions are flagged with '__error__', evaluation failures with - '__failed__'. Floating point values are rounded in the output to 6 + '__failed__'. Floating point values are rounded in the output to 4 significant digits, to prevent 'make check' from failing due to small rounding discrepancies. */ @@ -36,7 +36,7 @@ format (f,x,y,z) = str f+","+show x+","+show y+","+show z; format (f,x,z) = str f+","+show x+","+show z; -show x::double = sprintf "%#0.6g" x; +show x::double = sprintf "%#0.4g" x; show (x+:y) = show x+"+:"+show y; show (x<:y) = show x+"<:"+show y; show x = str x otherwise; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |