# Matlab and roots

Not what you're looking for?

Hi,

I need help in using Matlab to build an m file for

solving non-linear equations using the Newton-Raphson

method (or another recommended method.) I need a clear

explanation of the process of creating an m file, and

also using it to find the roots of the following two

equations as examples:

1) f(x) = exp(-x) - sin((pi/2)*x)

2) x^5 - 17*x^4 + 124*x^3 - 508*x^2 + 1035*x - 875 = 0

The method must also find complex roots if they exist.

##### Purchase this Solution

##### Solution Summary

This shows how to use Matlab to find roots, including complex roots.

##### Solution Preview

Open MatLab !

Now click File - New - M-file and click

A new window opens. Give a new name and save it to your fav directory.

Now we can give the commands.

Always try to begin by the commands ...

##### Purchase this Solution

##### Free BrainMass Quizzes

##### Solving quadratic inequalities

This quiz test you on how well you are familiar with solving quadratic inequalities.

##### Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

##### Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.

##### Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts

##### Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.