Scilab/C4/Solving-Non-linear-Equations/English
Title of script: Solving Nonlinear Equations using Numerical Methods
Author: Shamika
Keywords: Nonlinear equation, root, zero
|
|
---|---|
Slide 1 | Dear Friends,
Welcome to the spoken tutorial on “Solving Nonlinear Equations using Numerical Methods” |
Slide 2,3 -Objectives | At the end of this tutorial, you will learn how to:
|
Slide 4-System Requirements | To record this tutorial, I am using
|
Slide 5- Prerequisites | Before practising this tutorial, a learner should have
For Scilab, please refer to the Scilab tutorials available on the Spoken Tutorial website. |
Slide 6 | For a given function f , we have to find the value of x for which f of x is equal to zero.
This solution x is called root of equation or zero of function f This process is called root finding or zero finding |
Slide 7 | We begin by studying Bisection Method.
|
Slide 8 | Let us solve this function using Bisection method
function f equal to two sin x minus e to the power of x divided by four minus one in the interval minus five and minus three. |
Open Bisection.sci on Scilab Editor | * Open Bisection dot sci on Scilab editor
|
Click on Execute and select Save and Execute | Let us solve the problem using this code.
|
Switch to Scilab console
a=-5 Press enter b=-3 Press enter
Press enter
Press enter Bisection(a,b,f,Tol) Press enter |
Switch to Scilab console
Press enter
Press enter
We type deff open paranthesis open single quote open square bracket y close square bracket equal to f of x close single quote comma open single quote y equal to two asterisk sin of x minus open paranthesis open paranthesis percentage e to the power of x close paranthesis divided by four close paranthesis minus one close single quote close paranthesis
Press enter
Press enter
Press enter
|
Slide 12 | Let us study Secant's method.
difference using two successive iteration values. |
Slide 13 | Let us solve this example using Secant method
The function is f equal to x square minus six.
|
Open Secant.sci on Scilab Editor | Before we solve the problem, let us look at the code for Secant meethod.
|
Click on Execute and select Save and Execute | Let me save and execute the code. |
Switch to Scilab console
Type on Scilab console
Press enter
Press enter
Press enter
Press enter
Press enter |
Switch to Scilab console
Press enter
a equal to 2 Press enter
b equal to 3 Press enter
Type deff open paranthesis open single quote open square bracket y close square bracket equal to g of x close single quote comma open single quote y equal to open paranthesis x to the power of two close paranthesis minus six close single quote close paranthesis Press enter
Secant open paranthesis a comma b comma g close paranthesis. Press enter
|
Slide 14 | Let us summarize this tutorial
In this tutorial we have learnt to:
|
Slide 15- Assignment | Solve this problem on your own using the two methods we learnt today. |
Show Slide 16
Title: About the Spoken Tutorial Project
|
* Watch the video available at the following link
|
Show Slide 17
Title: Spoken Tutorial Workshops The Spoken Tutorial Project Team
|
The Spoken Tutorial Project Team
|
Show Slide 18
Title: Acknowledgement
|
* Spoken Tutorial Project is a part of the Talk to a Teacher project
|
On previous slide | This is Ashwini Patil signing off. Thanks for joining. |