Problems with is_cospheric

Messages in english

Modérateur : xcasadmin

belanger
Messages : 59
Inscription : jeu. juil. 27, 2017 3:26 pm

Problems with is_cospheric

Message par belanger » dim. déc. 23, 2018 6:35 pm

The is_cospheric documentation that you get from the help index in Xcas says:

Test if 5 points are on the same sphere.
is_cospheric(Pnt,Pnt,Pnt,Pnt)
is_cospheric([-1,0,0],[1,0,0],[0,1,0],[0,-1,0],[0,0,1])

It states it test five points but the template shows four.
But the bigger issue is that it doesn't evaluate; if I enter

is_cospheric([-1,0,0],[1,0,0],[0,1,0],[0,-1,0],[0,0,1])

in return I get the same thing, unevaluated.

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

Re: Problems with is_cospheric

Message par parisse » lun. déc. 24, 2018 6:01 pm

It seems there is a type somewhere, I see is_cospherical in the source. What is the right English word?

belanger
Messages : 59
Inscription : jeu. juil. 27, 2017 3:26 pm

Re: Problems with is_cospheric

Message par belanger » lun. déc. 24, 2018 10:30 pm

I've seen cospherical in English, but not cospheric. So I would say that cospherical is preferable.

The is_cospherical command works as it should, then; it's just that the documentation (including the help index and the command highlighting in Xcas) has is_cospheric.

Jay

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

Re: Problems with is_cospheric

Message par parisse » mar. déc. 25, 2018 6:58 am

Yes. My question was should we keep is_cospheric or is_cospherical?

belanger
Messages : 59
Inscription : jeu. juil. 27, 2017 3:26 pm

Re: Problems with is_cospheric

Message par belanger » mar. déc. 25, 2018 11:16 pm

I would think
is_cospherical
would be better.

compsystems
Messages : 562
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: Problems with is_cospheric

Message par compsystems » mer. déc. 26, 2018 1:31 pm

and as a suggestion, all is_* commands return the "constant" true/false instead of the numerical values synonymous (1/0) since we are in a symbolic environment

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

Re: Problems with is_cospheric

Message par parisse » mer. déc. 26, 2018 2:21 pm

belanger a écrit :
mar. déc. 25, 2018 11:16 pm
I would think
is_cospherical
would be better.
Ok, I'm updating the documentation. Thank you!

Répondre