[EMAIL PROTECTED] wrote:
> I was doing some basic algebra with sage and encountered another
> curiosity. I wish to solve for x in:
> 
> |x^2-x| = 3

Your question is not well-defined.  If you want real solutions then
x^2-x must =+3 and there are two solutions, from solving a quadratic,
(1+sqrt(13))/2 and the (1-sqrt(13))/2.  This hardly needs a computer!

If you want complex solutions then the solutions form a curve in the
complex plane, and what sort of response would you expect?

John Cremona

> 
> My naive attempt in sage wasn't so fruitful
> 
> sage: eqn = maxima('abs(x^2-x)=3')
> sage: eqn.solve('x')
> [abs(x^2 - x) = 3]
> 
> Although, the subproblems are easy enough:
> 
> sage: eqn = maxima('x^2-x=-3')
> sage: eqn.solve('x')
> [x =  - (sqrt(11)*%i - 1)/2,x = (sqrt(11)*%i + 1)/2]
> sage: eqn = maxima('x^2-x=3')
> sage: eqn.solve('x')
> [x =  - (sqrt(13) - 1)/2,x = (sqrt(13) + 1)/2]
> 
> How should such a difficulty be attacked? Is this a deficiency of
> maxima?
> 
> -carson-
> 
> PS: Thanks for the helpful discussion of methods for computing the
> conjugate tranpose of matrices.
> 
> 
> > 
> 


-- 
 Prof. J. E. Cremona             |
 University of Nottingham        | Tel.:  +44-115-9514920
 School of Mathematical Sciences | Fax:   +44-115-9514951
 University Park                 | Email: [EMAIL PROTECTED]
 Nottingham NG7 2RD, UK          |


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to