求的反函数,其中为符号函数。
【重复实验】
实验代码:
load(draw)$
f(x):=if (x>0) then 1+x^2 else if(x<0) then -(1+x^2) else 0;
wxdraw2d(proportional_axes=xy,xlabel="x",ylabel="y",
xrange=[-6,6],yrange=[-6,6],grid=true,
explicit(f(x),x,-6,6),
color=red,
implicit(x=f(y),x,-6,6,y,-6,6)
);
执行结果:
