Thread Subject: root finding of Linear equation

Subject: root finding of Linear equation

From: Eldar

Date: 29 Oct, 2009 09:31:01

Message: 1 of 7

I need to find out the roots of an any linear equation like;
y = ax? + bx? + cx + d
or
y = ax? + bx + c

Any suggestions on how to approach such problem?
Consider that I'm just new user of Matlab.

Subject: root finding of Linear equation

From: John D'Errico

Date: 29 Oct, 2009 10:21:01

Message: 2 of 7

"Eldar " <el_osman@mynet.com> wrote in message <hcbncl$aov$1@fred.mathworks.com>...
> I need to find out the roots of an any linear equation like;
> y = ax? + bx? + cx + d
> or
> y = ax? + bx + c
>
> Any suggestions on how to approach such problem?
> Consider that I'm just new user of Matlab.

In "ax? + bx? + cx + d", what is the ?
supposed to do?

If these were meant to indicate a power
operation, then how is it that you call this
a LINEAR equation? It is nonlinear in the
variable of interest.

In the above case, of course, roots may be
of service to you.

If ? means something else, please explain.

John

Subject: root finding of Linear equation

From: Aprisa

Date: 21 Nov, 2009 03:03:03

Message: 3 of 7

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hcbqad$3s7$1@fred.mathworks.com>...
> "Eldar " <el_osman@mynet.com> wrote in message <hcbncl$aov$1@fred.mathworks.com>...
> > I need to find out the roots of an any linear equation like;
> > y = ax? + bx? + cx + d
> > or
> > y = ax? + bx + c
> >
> > Any suggestions on how to approach such problem?
> > Consider that I'm just new user of Matlab.
>
> In "ax? + bx? + cx + d", what is the ?
> supposed to do?
>
> If these were meant to indicate a power
> operation, then how is it that you call this
> a LINEAR equation? It is nonlinear in the
> variable of interest.
>
> In the above case, of course, roots may be
> of service to you.
>
> If ? means something else, please explain.
>
> John

Hi John,

I am a new user of Matlab.
how do you find the roots of the function below using Matlab?
f(x)=a(x^2)+b(x)+c

thank you in advance..

Subject: root finding of Linear equation

From: Greg Heath

Date: 21 Nov, 2009 04:27:14

Message: 4 of 7

On Oct 29, 5:21 am, "John D'Errico" <woodch...@rochester.rr.com>
wrote:
> "Eldar " <el_os...@mynet.com> wrote in message <hcbncl$ao...@fred.mathworks.com>...
> > I need to find out the roots of an any linear equation like;
> > y = ax? + bx? + cx + d
> > or
> > y = ax? + bx + c
>
> > Any suggestions on how to approach such problem?
> > Consider that I'm just new user of Matlab.
>
> In "ax? + bx? + cx + d", what is the ?
> supposed to do?
>
> If these were meant to indicate a power
> operation, then how is it that you call this
> a LINEAR equation? It is nonlinear in the
> variable of interest.

It's linear in the unknown coefficients which,
given data, can be solved using backslash.

Greg

Subject: root finding of Linear equation

From: John D'Errico

Date: 21 Nov, 2009 09:43:10

Message: 5 of 7

Greg Heath <heath@alumni.brown.edu> wrote in message <727cae84-3988-4ae8-aaa7-cc73d80056e3@m33g2000vbi.googlegroups.com>...
> On Oct 29, 5:21?am, "John D'Errico" <woodch...@rochester.rr.com>
> wrote:
> > "Eldar " <el_os...@mynet.com> wrote in message <hcbncl$ao...@fred.mathworks.com>...
> > > I need to find out the roots of an any linear equation like;
> > > y = ax? + bx? + cx + d
> > > or
> > > y = ax? + bx + c
> >
> > > Any suggestions on how to approach such problem?
> > > Consider that I'm just new user of Matlab.
> >
> > In "ax? + bx? + cx + d", what is the ?
> > supposed to do?
> >
> > If these were meant to indicate a power
> > operation, then how is it that you call this
> > a LINEAR equation? It is nonlinear in the
> > variable of interest.
>
> It's linear in the unknown coefficients which,
> given data, can be solved using backslash.
>
> Greg

NO. You can solve for the coefficients using
backslash.

But you cannot solve for the roots of an equation
using backslash!

You can use fzero to find a root, or roots to find
the roots if the equation is quadratic, as it appears
to be.

John

Subject: root finding of Linear equation

From: John D'Errico

Date: 21 Nov, 2009 09:44:05

Message: 6 of 7

"Aprisa " <aprisamd@gmail.com> wrote in message <he7l97$34m$1@fred.mathworks.com>...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message <hcbqad$3s7$1@fred.mathworks.com>...
> > "Eldar " <el_osman@mynet.com> wrote in message <hcbncl$aov$1@fred.mathworks.com>...
> > > I need to find out the roots of an any linear equation like;
> > > y = ax? + bx? + cx + d
> > > or
> > > y = ax? + bx + c
> > >
> > > Any suggestions on how to approach such problem?
> > > Consider that I'm just new user of Matlab.
> >
> > In "ax? + bx? + cx + d", what is the ?
> > supposed to do?
> >
> > If these were meant to indicate a power
> > operation, then how is it that you call this
> > a LINEAR equation? It is nonlinear in the
> > variable of interest.
> >
> > In the above case, of course, roots may be
> > of service to you.
> >
> > If ? means something else, please explain.
> >
> > John
>
> Hi John,
>
> I am a new user of Matlab.
> how do you find the roots of the function below using Matlab?
> f(x)=a(x^2)+b(x)+c
>
> thank you in advance..

Use roots. This is what it does. fzero will also
find a root, but only one root at a time.

John

Subject: root finding of Linear equation

From: Greg Heath

Date: 21 Nov, 2009 18:27:01

Message: 7 of 7

On Nov 21, 4:43 am, "John D'Errico" <woodch...@rochester.rr.com>
wrote:
> Greg Heath <he...@alumni.brown.edu> wrote in message <727cae84-3988-4ae8-aaa7-cc73d8005...@m33g2000vbi.googlegroups.com>...
> > On Oct 29, 5:21?am, "John D'Errico" <woodch...@rochester.rr.com>
> > wrote:
> > > "Eldar " <el_os...@mynet.com> wrote in message <hcbncl$ao...@fred.mathworks.com>...
> > > > I need to find out the roots of an any linear equation like;
> > > > y = ax? + bx? + cx + d
> > > > or
> > > > y = ax? + bx + c
>
> > > > Any suggestions on how to approach such problem?
> > > > Consider that I'm just new user of Matlab.
>
> > > In "ax? + bx? + cx + d", what is the ?
> > > supposed to do?
>
> > > If these were meant to indicate a power
> > > operation, then how is it that you call this
> > > a LINEAR equation? It is nonlinear in the
> > > variable of interest.
>
> > It's linear in the unknown coefficients which,
> > given data, can be solved using backslash.
>
> > Greg
>
> NO. You can solve for the coefficients using
> backslash.
>
> But you cannot solve for the roots of an equation
> using backslash!

 John, please splash your face with water.
I said given data, not given coefficients.

Greg

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
root finding Aprisa 20 Nov, 2009 22:04:22
cubic quadratic... Eldar 29 Oct, 2009 05:34:04
root finding Eldar 29 Oct, 2009 05:34:04
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com