Tell me more ×
Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

Input

var('x')
solve((log((x**2 - x), 6) - log((6*x - 10), 6) == 0), x)

Output

[log(x^2 - x) == log(6*x - 10)]

But real roots are 5 and 2. What I doing wrong?

share|improve this question
2  
The Sage project have also a Q&A site: ask.sagemath.org – Juanlu001 Mar 10 '12 at 12:27

1 Answer

up vote 4 down vote accepted

You need to use the option to_poly_solve=True which have the following semantic:

to_poly_solve- bool (default: False); use Maxima's to_poly_solverpackage to search for more possible solutions, but possibly encounter approximate solutions. This keyword is incompatible withmultiplicities=True``.

So,

solve(..., x, to_poly_solve=True)

should do.

share|improve this answer
Indeed, this works. Using the brand new sagecell server, one can perform computations with Sage on a single cell: aleph.sagemath.org/… – Juanlu001 Mar 10 '12 at 12:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.