Page 1 sur 1

locus error

Publié : lun. août 22, 2022 11:38 am
par lukamar
locus command in 1.7.0 as well as in 1.9.0 is failing on all examples, e.g.

Code : Tout sélectionner

P:=element(line(i, i+1))
G:=isobarycenter(-1,1,P)
locus(G,P)
This returns an error.

Re: locus error

Publié : mar. août 23, 2022 1:48 pm
par parisse
I can not reproduce in Xcas when each line is in a distinct level (that is the way locus is supposed to be run, from a geometry level).
BTW, can you fix in your source this small bug viewtopic.php?f=4&p=12499

Re: locus error

Publié : mer. août 24, 2022 11:00 pm
par lukamar
Indeed, when the commands are in separate entries it works.
I have fixed the bug, thanks!

Re: locus error

Publié : jeu. août 25, 2022 9:48 am
par lukamar
But why plotinequation fails? This is a single commandline (with official Xcas 1.7.0 in Ubuntu, but also with compiled 1.9.0):

Code : Tout sélectionner

plotinequation(x^2-y^2<3,[x=-2..2,y=-2..2],xstep=0.1,ystep=0.1)
It does not display the graphics, but also not an error:

Code : Tout sélectionner

gl_y=((-14.188818801) .. 14.188818801),gl_ortho=1

Re: locus error

Publié : jeu. août 25, 2022 10:10 am
par lukamar
Also, this command hangs:

Code : Tout sélectionner

interactive_plotode(sin(t*y),[t,y])

Re: locus error

Publié : ven. août 26, 2022 1:31 pm
par parisse
Rounding error bug for plotinequation, branches are not connected correctly.
interactive_plotode is expecting clicks inside a geo level or in the DispG window inside Xcas.

Re: locus error

Publié : sam. août 27, 2022 2:44 pm
par lukamar
This also may be a bug: the command

Code : Tout sélectionner

plot(sin(x),x=-5..5,display=red)
returns an empty list. However, if I remove the second argument (the range for x), all is ok.

Re: locus error

Publié : sam. août 27, 2022 2:45 pm
par lukamar
Another thing: entering comments with Alt+C does not work in xcas anymore. The only effect of Altc+C is that the current entry changes label color to blue.

Re: locus error

Publié : mar. août 30, 2022 1:26 pm
par parisse
lukamar a écrit :
sam. août 27, 2022 2:44 pm
This also may be a bug: the command

Code : Tout sélectionner

plot(sin(x),x=-5..5,display=red)
returns an empty list. However, if I remove the second argument (the range for x), all is ok.
Indeed, fixed in source.

Re: locus error

Publié : mar. août 30, 2022 1:29 pm
par parisse
lukamar a écrit :
sam. août 27, 2022 2:45 pm
Another thing: entering comments with Alt+C does not work in xcas anymore. The only effect of Altc+C is that the current entry changes label color to blue.
There is a shortcut collision here. Alt+C is modifying the interpreter for the level to "Caspy" (that is Xcas compatible Python). Probably the best is to remove the comment shortcut.