On Dec 17, 11:41 am, Simon King <k...@mathematik.uni-jena.de> wrote:
> Dear Sage supporters,
<SNIP>
Hi Simon,
> 2. Why does it take so long to return the solution dictionary?
> From the solve-docstring:
> sage: ct=cputime()
> sage: time solve([x^2+y^2 == 1, y^2 == x^3 + x + 1], x, y,
> solution_dict=True)
> CPU times: user 0.07 s, sys: 0.00 s, total: 0.07 s
> Wall time: 0.18 s
> [{y: -sqrt(3 - sqrt(3)*I)/sqrt(2), x: (-sqrt(3)*I - 1)/2},
> {y: sqrt(3 - sqrt(3)*I)/sqrt(2), x: (-sqrt(3)*I - 1)/2},
> {y: -sqrt(sqrt(3)*I + 3)/sqrt(2), x: (sqrt(3)*I - 1)/2},
> {y: sqrt(sqrt(3)*I + 3)/sqrt(2), x: (sqrt(3)*I - 1)/2},
> {y: -1, x: 0},
> {y: 1, x: 0}]
> sage: cputime(ct)
> 2.6121629999999989
>
> So, for computing the solutions 0.07 CPU-seconds suffice, but for
> printing them 2.6 CPU-seconds are needed??
The 0.07 seconds is the CPU time we spend on the Sage side to
communicate with Maxima, the rest is probably starting Maxima,
communicating and then the solve on Maxima's side also. As you well
know there is this general slowdown effect when one communicates with
Maxima from Sage's end, so unless this is a clean session this could
play a role here.
> Best regards,
> Simon
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---