I've this block defined function: g1(x):=atan(x/(1-x))-x;
g2(x):=(1+x^(1/3))/(2-x^(1/3));
g(x):=block([],if (x<1/2) then return (g1(x)) else return(g2(x)));
No problem plotting g1(x) and g2(x) but when I try to plot g(x) WxMaxima tells me: return: not within 'block' (hundreds times)
plot2d: expression evaluates to non-numeric value everywhere in plotting range.
plot2d: nothing to plot.
Colud someone explain me why?
Thank you
Last edit: Enrico 2016-02-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've this block defined function:
g1(x):=atan(x/(1-x))-x;
g2(x):=(1+x^(1/3))/(2-x^(1/3));
g(x):=block([],if (x<1/2) then return (g1(x)) else return(g2(x)));
No problem plotting g1(x) and g2(x) but when I try to plot g(x) WxMaxima tells me:
return: not within 'block' (hundreds times)
plot2d: expression evaluates to non-numeric value everywhere in plotting range.
plot2d: nothing to plot.
Colud someone explain me why?
Thank you
Last edit: Enrico 2016-02-13
I've found an explanation there: http://comments.gmane.org/gmane.comp.mathematics.maxima.general/39202