plotting piecewise expressions

Bugs

Modérateur : xcasadmin

lukamar
Messages : 331
Inscription : ven. juin 30, 2017 9:55 am
Localisation : Zagreb, Croatia

plotting piecewise expressions

Message par lukamar » jeu. oct. 11, 2018 6:50 am

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.

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: plotting piecewise expressions

Message par parisse » jeu. oct. 11, 2018 11:50 am

Indeed, I have fixed the bug...

Répondre