Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Factor a solve output

I am new to sage. So, sorry if my question is too trivial.

I can not factor the output of "solve". For instance, this very simple example

x= var('x')
sols=solve(x==6, x)

gives me


Why I am not getting the following?

2 * 3

which of course is the output of


PS: I guess that the "type" is a crucial thing here, but anyways I'd need to factor 'sage.symbolic.expression.Expression'