3 Nov 2008 18:51
Re: Selection of roots
Bill Page <bill.page <at> newsynthesis.org>
2008-11-03 17:51:22 GMT
2008-11-03 17:51:22 GMT
On Thu, Oct 30, 2008 at 8:39 AM, Alejandro Jakubi wrote:
> I wonder how it is done in Axiom the selection of roots of a polynomial
> with some property. As in this example, select the positive roots out
> of the list of three roots generated by:
>
> radicalSolve(p^3-p+1/10=0,p)
>
Since the discriminant is positive we know all roots are real, so in
principle we should be able to solve the problem like this:
(1) -> discriminant(p^3-p+1/10)
373
(1) ---
100
Type: Fraction(Integer)
(2) -> select(p+->rhs(p)::AlgebraicNumber>0,radicalSolve(p^3-p+1/10=0,p))
+------------------+2
| +-+ +-----+
+---+ |- 3\|3 + \|- 373
(- 3\|- 3 - 3) |------------------ + 2
3| +-+
\| 60\|3
(2) [p= -----------------------------------------]
+------------------+
| +-+ +-----+
+---+ |- 3\|3 + \|- 373
(Continue reading)
Regards,
Bill Page.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
I agree that tutorial documentation is
a problem. If you haven't already seen it, perhaps you would be
interested in:
RSS Feed