Menu

Why WxMaxime refuse to plot this function?

Enrico
2016-02-13
2016-02-13
  • Enrico

    Enrico - 2016-02-13

    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
MongoDB Logo MongoDB