Page 1 sur 1

Question about function quadric

Publié : ven. janv. 24, 2025 6:14 am
par GermanXG
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.

Re: Question about function quadric

Publié : ven. janv. 24, 2025 12:17 pm
par parisse
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);

Re: Question about function quadric

Publié : sam. janv. 25, 2025 4:04 am
par GermanXG
Thanks, it works now :)