Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: SourceForge.net <noreply@so...>  20091015 20:26:08

Bugs item #2880115, was opened at 20091015 22:26 Message generated for change (Tracker Item Submitted) made by riotorto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Plotting Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mario Rodriguez Riotorto (riotorto) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong result given by coercefloatfun Initial Comment: When executing f(k):=integrate(exp(%i*k*x)*sin(x)/x,x,minf,inf)$ plot2d(f,[x,3,3]); The plot does not show anything in [1;1]. The draw package has a similar problem. When the function returned by coercefloatfun is applied to x values in the range [1,1] to get the corresponding ordinate, it returns $%pi, instead of a float. An extra call to $float fixes this problem.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 
From: SourceForge.net <noreply@so...>  20091102 17:30:54

Bugs item #2880115, was opened at 20091015 16:26 Message generated for change (Comment added) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Plotting Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mario Rodriguez Riotorto (riotorto) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong result given by coercefloatfun Initial Comment: When executing f(k):=integrate(exp(%i*k*x)*sin(x)/x,x,minf,inf)$ plot2d(f,[x,3,3]); The plot does not show anything in [1;1]. The draw package has a similar problem. When the function returned by coercefloatfun is applied to x values in the range [1,1] to get the corresponding ordinate, it returns $%pi, instead of a float. An extra call to $float fixes this problem.  >Comment By: Raymond Toy (rtoy) Date: 20091102 12:30 Message: Found the problem. It's in coercemaximafunctionormaximalambda. In this routine, the function does: (if ($numberp result) ($float result) result))) But in this case, result is '$%pi, and ($numberp '$%pi) returns NIL. Perhaps this is a misunderstanding of what $numberp does, but I see no reason why we can't just get rid of the test and always call $float. With this fix, the graph is pi between 1 and 1.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 
From: SourceForge.net <noreply@so...>  20091102 20:40:06

Bugs item #2880115, was opened at 20091015 22:26 Message generated for change (Comment added) made by riotorto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Plotting Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mario Rodriguez Riotorto (riotorto) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong result given by coercefloatfun Initial Comment: When executing f(k):=integrate(exp(%i*k*x)*sin(x)/x,x,minf,inf)$ plot2d(f,[x,3,3]); The plot does not show anything in [1;1]. The draw package has a similar problem. When the function returned by coercefloatfun is applied to x values in the range [1,1] to get the corresponding ordinate, it returns $%pi, instead of a float. An extra call to $float fixes this problem.  >Comment By: Mario Rodriguez Riotorto (riotorto) Date: 20091102 21:40 Message: Thanks for looking at this, draw also works fine with this change. I see the same piece of code in coercelispfunctionorlisplambda, but I don't know of possible implications of changing this function too.  Comment By: Raymond Toy (rtoy) Date: 20091102 18:30 Message: Found the problem. It's in coercemaximafunctionormaximalambda. In this routine, the function does: (if ($numberp result) ($float result) result))) But in this case, result is '$%pi, and ($numberp '$%pi) returns NIL. Perhaps this is a misunderstanding of what $numberp does, but I see no reason why we can't just get rid of the test and always call $float. With this fix, the graph is pi between 1 and 1.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 
From: SourceForge.net <noreply@so...>  20091103 15:36:27

Bugs item #2880115, was opened at 20091015 16:26 Message generated for change (Settings changed) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Plotting Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Mario Rodriguez Riotorto (riotorto) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong result given by coercefloatfun Initial Comment: When executing f(k):=integrate(exp(%i*k*x)*sin(x)/x,x,minf,inf)$ plot2d(f,[x,3,3]); The plot does not show anything in [1;1]. The draw package has a similar problem. When the function returned by coercefloatfun is applied to x values in the range [1,1] to get the corresponding ordinate, it returns $%pi, instead of a float. An extra call to $float fixes this problem.  >Comment By: Raymond Toy (rtoy) Date: 20091103 10:36 Message: Thanks for pointing out the second issue. Both of these are fixed in plot.lisp, rev 1.144. Closing bug report.  Comment By: Mario Rodriguez Riotorto (riotorto) Date: 20091102 15:40 Message: Thanks for looking at this, draw also works fine with this change. I see the same piece of code in coercelispfunctionorlisplambda, but I don't know of possible implications of changing this function too.  Comment By: Raymond Toy (rtoy) Date: 20091102 12:30 Message: Found the problem. It's in coercemaximafunctionormaximalambda. In this routine, the function does: (if ($numberp result) ($float result) result))) But in this case, result is '$%pi, and ($numberp '$%pi) returns NIL. Perhaps this is a misunderstanding of what $numberp does, but I see no reason why we can't just get rid of the test and always call $float. With this fix, the graph is pi between 1 and 1.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2880115&group_id=4933 
Sign up for the SourceForge newsletter:
No, thanks