Many thanks for your enlightening comments. Certainly "outputFloating()"
and "outputFixed()" provide the behaviour I was wanting, but in different
ways:
(1) -> OutputFixed(10)
(2) -> complexSolve(x^3-6*x-6,1.0e-20)
[x= 2.8473221019 - 0.0000000000 %i, x= - 1.4236610509 - 0.2836060010 %i,
x= - 1.4236610509 + 0.2836060010 %i]
(3) -> OutputFloating(10)
(4) -> complexSolve(x^3-6*x-6,1.0e-20)
[x= 0.2847322102 E 1 - 0.7314861554 E -21 %i,
x= - 0.1423661051 E 1 - 0.2836060010 E 0 %i,
x= - 0.1423661051 E 1 + 0.2836060010 E 0 %i]
Where would I (other than this forum) have found out about these
functions? All I knew about was the function "digits", and although I now
know that these floating* functions are defined in float.spad, and have
been since 1987, there's no way that the documentation (such as it is),
would point the user from "digits" to other functions.
Ah.. we lives and we learns...
On Thursday, 22 October 2015 15:37:21 UTC+11, Alasdair wrote:
>
> If you start a new FriCAS, and then enter:
>
> (1) -> digits 10
> (2) -> complexSolve(x^3-6*x-6=0,1.e-10)
>
> you obtain
>
> [x= 2.8473221018_6307233001_9122091471_217572689 - 0.4188072111 E -10 %i,
> x= - 1.423661051 - 0.283606001 %i,
> x= - 1.423661051 + 0.2836060010_2688149348_7508123507_7232122421 %i]
>
> which as you see contains floating point values with far more the the
> requested 10 digits. How can I ensure that all real and imaginary parts of
> the solution are displayed with only the 10 digits I want?
>
> Thanks,
> Alasdair
>
> --
> [image: http://www.facebook.com/alasdair.mcandrew]
> <http://www.facebook.com/alasdair.mcandrew> [image:
> https://plus.google.com/+AlasdairMcAndrew/posts]
> <https://plus.google.com/+AlasdairMcAndrew/posts> [image:
> https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108]
> <https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108> [image:
> https://twitter.com/amca01] <https://twitter.com/amca01> [image:
> http://numbersandshapes.net] <http://numbersandshapes.net>
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.