On 03/03/2017 08:32 AM, Ashutosh Ahelleya wrote:
> 
> No. I guess the back end does return a complex parameter in cases where the 
> answer is a complex solution.  
> This might be an appropriate example:
> { { sage: 
> x = var('x')
> eq = x^2 -3*x + 4
> solve(eq,x)
> [x == -1/2*I*sqrt(7) + 3/2, x == 1/2*I*sqrt(7) + 3/2]
> } } 
> Here, in this example, the parameter used is 'I'.

I was actually curious if Sage ever returns an arbitrary "r1" constant
to refer to a complex number. There is the special case where we turn
"all" into "r1", but there may not be any others.

If it's possible for "r1" to represent a complex number in any other
situation, then the correct course of action is clear: update the
documentation to say that "r1" is complex.

On the other hand, if "r1" is always real except in one specific case
(the "all" result), then maybe it makes more sense to leave the
documentation as-is, and return something else (c1?) for the "all" result.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to