From 6ad3412bc13d3ae7a5f7f68260a90ae1bd536e03 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 16 Apr 2009 14:14:09 +0000 Subject: Fix SF/2763053 * interp/sys-os.boot ($NaNvalue): Remove. (quietDoubleNaN): Import. * include/cfuns.h (quiet_double_NaN): Rename from NANQ. * lib/cfuns-c.c (quiet_double_NaN): Likewise. * algebra/draw.spad.pamphlet: Replace $NaNvalue with quietDoubleNaN. * algebra/plot.spad.pamphlet: Likewise. * algebra/plot3d.spad.pamphlet: Likewise. --- src/algebra/draw.spad.pamphlet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/algebra/draw.spad.pamphlet') diff --git a/src/algebra/draw.spad.pamphlet b/src/algebra/draw.spad.pamphlet index de5dc3e3..52f12b71 100644 --- a/src/algebra/draw.spad.pamphlet +++ b/src/algebra/draw.spad.pamphlet @@ -318,9 +318,9 @@ TopLevelDrawFunctionsForCompiledFunctions(): myTrap1: (SF-> SF, SF) -> SF myTrap1(ff:SF-> SF, f:SF):SF == s := trapNumericErrors(ff(f))$Lisp :: Union(SF, "failed") - s case "failed" => _$NaNvalue$Lisp + s case "failed" => quietDoubleNaN()$Lisp r:=s::SF - r >max()$SF or r < min()$SF => _$NaNvalue$Lisp + r >max()$SF or r < min()$SF => quietDoubleNaN()$Lisp r makePt2: (SF,SF) -> Point SF @@ -493,9 +493,9 @@ TopLevelDrawFunctionsForCompiledFunctions(): myTrap2: ((SF, SF) -> SF, SF, SF) -> SF myTrap2(ff:(SF, SF) -> SF, u:SF, v:SF):SF == s := trapNumericErrors(ff(u, v))$Lisp :: Union(SF, "failed") - s case "failed" => _$NaNvalue$Lisp + s case "failed" => quietDoubleNaN()$Lisp r:SF := s::SF - r >max()$SF or r < min()$SF => _$NaNvalue$Lisp + r >max()$SF or r < min()$SF => quietDoubleNaN()$Lisp r recolor(ptFunc,colFunc) == -- cgit v1.2.3