Re: Formating equation for the use of 'roots'
- From: "John D'Errico" <woodchips@xxxxxxxxxxxxxxxx>
- Date: Wed, 10 Jun 2009 02:14:02 +0000 (UTC)
"Manuel " <reychiquito@xxxxxxxxxxxxxxxxxxxxxx> wrote in message <h0mv7d$848$1@xxxxxxxxxxxxxxxxxx>...
"John D'Errico" <woodchips@xxxxxxxxxxxxxxxx> wrote in message <h0mrj6$k2o$1@xxxxxxxxxxxxxxxxxx>...
Are the coefficients fixed, or are they to be left
as variables? Roots cannot solve a symbolic problem.
It only works on problems with known numeric
coefficients.
By the way, what power is this (a2*x?) ???
John
The coefficients are fixed (specified somewhere in the code) and the power is x^2. Sorry about that.
You will need to expand the terms. I'll bet there
need be no relationship between these subterms
and the roots of the composite expression. As
Steve points out, conv will help you here.
In fact, I'll argue that IF it was possible to solve
this problem by a simpler scheme than expanding
the problem into one large problem and then
applying a tool like roots, then you would be
able to find an analytical solution to a 5th order
(or higher) polynomial. Since we know this to be
impossible in general...
A problem is if n, m, and p are at all large, you
may see serious problems computing the roots
accurately. How large is large here? I don't know,
but I'd be starting to worry if they exceed 3. Even
if N = M = P = 3, the order of the result will be
12.
John
.
- Follow-Ups:
- Re: Formating equation for the use of 'roots'
- From: Bruno Luong
- Re: Formating equation for the use of 'roots'
- References:
- Formating equation for the use of 'roots'
- From: Manuel
- Re: Formating equation for the use of 'roots'
- From: John D'Errico
- Re: Formating equation for the use of 'roots'
- From: Manuel
- Formating equation for the use of 'roots'
- Prev by Date: Re: pick up the different values in every column
- Next by Date: Re: p-value in every coefficient in regstats
- Previous by thread: Re: Formating equation for the use of 'roots'
- Next by thread: Re: Formating equation for the use of 'roots'
- Index(es):
Relevant Pages
|