Question about function quadric

Messages in english

Modérateur : xcasadmin

GermanXG
Messages : 4
Inscription : mar. déc. 24, 2024 6:24 am

Question about function quadric

Message par GermanXG » ven. janv. 24, 2025 6:14 am

Graphing several quadrics with the function quadric(), I found this problem with this entry:

quadric(x^2-3y^2-2z-2,[x,y,z])

I get the message:

Elliptical paraboloid with center [-0.0,-0.0,(x^2-3*y^2-2*z-2)/2.0]

And the graph is just a plane. Is this a bug? Or am I doing something wrong? I'm using the latest release compiled from source.

Thanks.

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

Re: Question about function quadric

Message par parisse » ven. janv. 24, 2025 12:17 pm

This is a bug, thanks for reporting.
Fix:

Code : Tout sélectionner

diff /shared/tmp/gauss.cc .
959c959
<         gen tmp=normal(subvecteur(multvecteur(-c1/s1,u),multvecteur(c2/s2,v)),contextptr);
---
>         gen tmp=normal(-c1/s1*u-c2/s2*v,contextptr);

GermanXG
Messages : 4
Inscription : mar. déc. 24, 2024 6:24 am

Re: Question about function quadric

Message par GermanXG » sam. janv. 25, 2025 4:04 am

Thanks, it works now :)

Répondre