Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## [Maxima-bugs] [ maxima-Bugs-3528329 ] Define functions and plotting

 [Maxima-bugs] [ maxima-Bugs-3528329 ] Define functions and plotting From: SourceForge.net - 2012-05-20 09:34:35 ```Bugs item #3528329, was opened at 2012-05-19 22:49 Message generated for change (Comment added) made by willisbl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&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: Invalid Priority: 5 Private: No Submitted By: Shalva (shalvaz) Assigned to: Nobody/Anonymous (nobody) Summary: Define functions and plotting Initial Comment: We define a function f as f(x):=block([],if(x>=-1 and x<-1/4) then return(2),if(x>=-1/4 and x<0) then return(-1),if(x>=0 and x<1/4) then return(1),if(x>=1/4 and x<1) then return(-2)); If I try plot2d(f,[x,-1,1]); appears: "plot2d: expression evaluates to non-numeric value somewhere in plotting range." but plotting window appears and graphic of the function f is correct. If I try plot2d(f(x),[x,-1,1]); appears: return: not within 'block' return: not within 'block' return: not within 'block' ... plot2d: expression evaluates to non-numeric value somewhere in plotting range. plotting window not appears in this case. ---------------------------------------------------------------------- >Comment By: Barton Willis (willisbl) Date: 2012-05-20 02:34 Message: You want plot2d('(f(x)),[x,-1,1]); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&group_id=4933 ```

 [Maxima-bugs] [ maxima-Bugs-3528329 ] Define functions and plotting From: SourceForge.net - 2012-05-20 05:49:02 ```Bugs item #3528329, was opened at 2012-05-19 22:49 Message generated for change (Tracker Item Submitted) made by shalvaz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&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: Shalva (shalvaz) Assigned to: Nobody/Anonymous (nobody) Summary: Define functions and plotting Initial Comment: We define a function f as f(x):=block([],if(x>=-1 and x<-1/4) then return(2),if(x>=-1/4 and x<0) then return(-1),if(x>=0 and x<1/4) then return(1),if(x>=1/4 and x<1) then return(-2)); If I try plot2d(f,[x,-1,1]); appears: "plot2d: expression evaluates to non-numeric value somewhere in plotting range." but plotting window appears and graphic of the function f is correct. If I try plot2d(f(x),[x,-1,1]); appears: return: not within 'block' return: not within 'block' return: not within 'block' ... plot2d: expression evaluates to non-numeric value somewhere in plotting range. plotting window not appears in this case. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&group_id=4933 ```
 [Maxima-bugs] [ maxima-Bugs-3528329 ] Define functions and plotting From: SourceForge.net - 2012-05-20 09:34:35 ```Bugs item #3528329, was opened at 2012-05-19 22:49 Message generated for change (Comment added) made by willisbl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&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: Invalid Priority: 5 Private: No Submitted By: Shalva (shalvaz) Assigned to: Nobody/Anonymous (nobody) Summary: Define functions and plotting Initial Comment: We define a function f as f(x):=block([],if(x>=-1 and x<-1/4) then return(2),if(x>=-1/4 and x<0) then return(-1),if(x>=0 and x<1/4) then return(1),if(x>=1/4 and x<1) then return(-2)); If I try plot2d(f,[x,-1,1]); appears: "plot2d: expression evaluates to non-numeric value somewhere in plotting range." but plotting window appears and graphic of the function f is correct. If I try plot2d(f(x),[x,-1,1]); appears: return: not within 'block' return: not within 'block' return: not within 'block' ... plot2d: expression evaluates to non-numeric value somewhere in plotting range. plotting window not appears in this case. ---------------------------------------------------------------------- >Comment By: Barton Willis (willisbl) Date: 2012-05-20 02:34 Message: You want plot2d('(f(x)),[x,-1,1]); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3528329&group_id=4933 ```