Le mer. 3 juin 2026 à 12:21, Waldek Hebisch <[email protected]> a écrit :

> On Wed, Jun 03, 2026 at 08:11:01AM +0200, Grégory Vanuxem wrote:
> > Hello,
> >
> > Any idea why I obtain a huge numerical precision using complexSolve here,
> > at least, displayed?
> >
> > (1) -> complexSolve(x^3+3*x^2+x+17=0, 0.0000000001)
> >
> >    (1)
> >    [x = - 3.8744001380_296332337,
> >     x = 0.4372000690_1481618814_9406395091_6108308765_2840423528 -
> > 2.0485683086_313182244 %i,
> >
> >        x
> >      =
> >          0.4372000690_1481618814_9406395091_6108308765_2840423528
> >        +
> >          2.0485683086_3131822439_9819882819_4290399551_391601562 %i
> >      ]
> >                                                               Type:
> > List(Equation(Polynomial(Complex(Float))))
> > (2) -> precision()$Float
> >
> >    (2)  68
> >
> >              Type: PositiveInteger
> >
> > (3) -> digits()$Float
> >
> >    (3)  20
> >
>
> By default FriCAS displays all computed digits.  If that bothers
> you, you can do:
>
>
Ah ok, I was surprised. I didn't know or do not remember. I better
understand this function now. I remember when you modified the output*
function for Float and that was not very clear to me this function. In
fact, even the documentation tells almost nothing about this feature
("outputGeneral(n) sets the output mode to general notation with n
significant digits displayed.").

Good,

Greg

PS: BTW sorry for the bad pull request this afternoon, I was experimenting
with Julia related category/domain/package GitHub generated documentation
pages (a personal Python script to update github.io).



> (1) -> outputGeneral(20)
>                                                                    Type:
> Void
> (2) -> complexSolve(x^3+3*x^2+x+17=0, 0.0000000001)
>
>    (2)
>    [x = - 3.8744001380_296332337,
>     x = 0.4372000690_1481618815 - 2.0485683086_313182244 %i,
>     x = 0.4372000690_1481618815 + 2.0485683086_313182244 %i]
>                              Type:
> List(Equation(Polynomial(Complex(Float))))
>
> --
>                               Waldek Hebisch
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/fricas-devel/aiAANrVv-Xu71PPN%40fricas.org
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dbsT-njkMQNX%3DPEw7XokwyzBhfoqb5rvvc_M%2B839tw7yw%40mail.gmail.com.

Reply via email to