SlideShare a Scribd company logo
function[dx]=finitediff(x,y)
%it executes forward,backward and central diffrence at two points%
x=[2 3 4];
y=[8 27 64];
n=length(x);
dx(1)=(y(2)-y(1))/(x(2)-x(1));
for i=2:n-1
dx(i)=(y(i+1)-y(i-1))/(x(i+1)-x(i-1));
end
dx(n)=(y(n)-y(n-1))/(x(n)-x(n-1));
-------------
Taimoor Gondal

More Related Content

PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
PPT
Variacion de parametros
PDF
Gaussian quadratures
PDF
Finite Difference Method
PDF
34032 green func
PPT
Area between curves
PDF
Función gamma
PDF
Applied numerical methods lec14
Numerical solution of ordinary differential equations GTU CVNM PPT
Variacion de parametros
Gaussian quadratures
Finite Difference Method
34032 green func
Area between curves
Función gamma
Applied numerical methods lec14

What's hot (20)

PPTX
Integral calculus
PPTX
A brief introduction to finite difference method
PPTX
PRESENTACION GRUPAL CALCULO VECTORIAL UNIDAD 5.pptx
DOCX
PPTX
Interpolation and its applications
PDF
Funcion beta
PDF
Longitud de arco freddy
PDF
Numerical Solution of Ordinary Differential Equations
PDF
Fundamentals of Finite Difference Methods
 
PDF
Euler modificado
PDF
130112719 diferencias-divididas-de-newton
PPT
Gamma function
PPTX
Finite difference method
PDF
Introduction of Partial Differential Equations
PPT
Newton-Raphson Method
PPTX
Investigación de Operaciones: Problema de ruta crítica
PPTX
Runge Kutta Method
PPT
functions limits and continuity
PPTX
Interpolation
DOC
Funciones ortogonales (1)
Integral calculus
A brief introduction to finite difference method
PRESENTACION GRUPAL CALCULO VECTORIAL UNIDAD 5.pptx
Interpolation and its applications
Funcion beta
Longitud de arco freddy
Numerical Solution of Ordinary Differential Equations
Fundamentals of Finite Difference Methods
 
Euler modificado
130112719 diferencias-divididas-de-newton
Gamma function
Finite difference method
Introduction of Partial Differential Equations
Newton-Raphson Method
Investigación de Operaciones: Problema de ruta crítica
Runge Kutta Method
functions limits and continuity
Interpolation
Funciones ortogonales (1)
Ad

More from Taimoor Muzaffar Gondal (20)

PDF
Basics of Computer
PPTX
Lecture 04: Errors During the Measurement Process
PDF
Introduction to Measurements-Lecture 01
PPTX
Updated Lecture 01- History of Atom
PPTX
Heat and Its Transfer
PPTX
Low, Medium and High Frequency Current
PPTX
Rectification and Electrotherapy
PPTX
Applications of EM Waves
PPTX
Electromagnetism Fundamentals
PPTX
Effects of Currents and Type of Cells and Batteries
PPTX
Current Electricity
PPTX
Static Electricity
PPTX
Lecture 01- Atomic Structure
PPTX
An Overview of PLC
TXT
Regula falsi MATLAB Code
TXT
Newton's method for MATLAB Code
TXT
Langrange method for MATLAB Code
TXT
Jacobi method for MATLAB
TXT
Gauss seidal Matlab Code
TXT
Divided difference Matlab code
Basics of Computer
Lecture 04: Errors During the Measurement Process
Introduction to Measurements-Lecture 01
Updated Lecture 01- History of Atom
Heat and Its Transfer
Low, Medium and High Frequency Current
Rectification and Electrotherapy
Applications of EM Waves
Electromagnetism Fundamentals
Effects of Currents and Type of Cells and Batteries
Current Electricity
Static Electricity
Lecture 01- Atomic Structure
An Overview of PLC
Regula falsi MATLAB Code
Newton's method for MATLAB Code
Langrange method for MATLAB Code
Jacobi method for MATLAB
Gauss seidal Matlab Code
Divided difference Matlab code
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
web development for engineering and engineering
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Geodesy 1.pptx...............................................
PDF
Well-logging-methods_new................
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
ETO & MEO Certificate of Competency Questions and Answers
PPT
Project quality management in manufacturing
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PPTX
Lecture Notes Electrical Wiring System Components
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mechanical Engineering MATERIALS Selection
Foundation to blockchain - A guide to Blockchain Tech
Internet of Things (IOT) - A guide to understanding
web development for engineering and engineering
Embodied AI: Ushering in the Next Era of Intelligent Systems
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CYBER-CRIMES AND SECURITY A guide to understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Geodesy 1.pptx...............................................
Well-logging-methods_new................
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CH1 Production IntroductoryConcepts.pptx
ETO & MEO Certificate of Competency Questions and Answers
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Lecture Notes Electrical Wiring System Components

Finite difference Matlab Code