locus error

Bugs

Modérateur : xcasadmin

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

locus error

Message par lukamar » lun. août 22, 2022 11:38 am

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.

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

Re: locus error

Message par parisse » mar. août 23, 2022 1:48 pm

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

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

Re: locus error

Message par lukamar » mer. août 24, 2022 11:00 pm

Indeed, when the commands are in separate entries it works.
I have fixed the bug, thanks!

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

Re: locus error

Message par lukamar » jeu. août 25, 2022 9:48 am

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

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

Re: locus error

Message par lukamar » jeu. août 25, 2022 10:10 am

Also, this command hangs:

Code : Tout sélectionner

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

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

Re: locus error

Message par parisse » ven. août 26, 2022 1:31 pm

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.

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

Re: locus error

Message par lukamar » 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.

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

Re: locus error

Message par lukamar » 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.

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

Re: locus error

Message par parisse » mar. août 30, 2022 1:26 pm

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.

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

Re: locus error

Message par parisse » mar. août 30, 2022 1:29 pm

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.

Répondre