Page 1 sur 1

plotting piecewise expressions

Publié : jeu. oct. 11, 2018 6:50 am
par lukamar
Hi,
when I try to plot the piecewise defined expression

Code : Tout sélectionner

f:=piecewise(0.54>x,0,3.0>x,0.1*(x-0.54)+0.016,5.5>x,0.12*(x-3.0)+0.28,8.1>x,-0.18*(x-5.5)+0.57,11.0>=x,-0.041*(x-8.1)+0.1,0)
with

Code : Tout sélectionner

plot(f,x=0..10)
I get only the line segment between x=8 and x=10. Is it an issue in plot command? This happens with 1.5.0 version of Xcas.

Re: plotting piecewise expressions

Publié : jeu. oct. 11, 2018 11:50 am
par parisse
Indeed, I have fixed the bug...