SlideShare a Scribd company logo
1 of 24
MATHEMATICAL MODELING WITH MAPLE
8/4/2015 SFR COLLEGE PRESENTATION
By
Dr. V.GNANARAJ
ASSOCIATE PROFESSOR IN MATHEMATICS
THIAGARAJAR COLLEGE OF ENGINEERING
MADURAI
1
8/4/2015 SFR COLLEGE PRESENTATION 2
Mathematical Modeling with Maple
• Computer algebra systems in scientific computing
• Maple – an interactive system, allowing one to carry out both
numerical and analytical computations. Maple contains 2D and 3D
graphical means, powerful programming language and an extensive
library of mathematical formulae
• A convenient working method, when all stages of mathematical,
physical or engineering research can be stored in a single document
- worksheet
• The worksheet automatically becomes a scientific article, report,
chapter in a book, etc.
8/4/2015 SFR COLLEGE PRESENTATION 3
Document organization in Maple
• One should familiarize oneself with Maple GUI
• The best way is to learn use and syntax of Maple simultaneously
and by examples
• A worksheet (*.mws) consists of logical groups called „execution
groups“ Each group consists of several parts :
- Input Region
- Output Region
- Text Region (e.g. comments)
• The principal objects in Maple: numbers, constants, names
- numbers: integer, real, rational, radicals
- constants: Pi, I, E, Infinity, gamma, true, false
- names: sequences of symbols starting with literal (e.g. new, New,
new_old, etc.)
Maple Startup Menu
8/4/2015 SFR COLLEGE PRESENTATION 4
Maple Worksheet with input and output
Maple Input
Maple Output
Maple Execution
Group
Maple Prompt
Time for
executing the
command
8/4/2015 SFR COLLEGE PRESENTATION 5
Maple Help Menu
8/4/2015 SFR COLLEGE PRESENTATION 6
Syntax and expressions
• After typing a command, you should inform the computer that the
command has ended and must be accepted. There are two types of
terminators: ; and : The colon is needed to suppress Return – the
output is not printed
• The symbol % is called “ditto”, it is used to refer to previous return.
Twofold ditto (%%) refers to the second last return, etc
• Expressions are the main object for the most of commands.
Expressions are composed of constants, variables, signs of
arithmetical and logical operations
8/4/2015 SFR COLLEGE PRESENTATION 7
Typical syntax errors and remedies
• Forgetting a bracket or an operator – the error message comes after
Return (sometimes it appears meaningless)
• It is easier to type the brackets and some operators first, and then
insert functions, variables and parameters, e.g.
> ( )*(sqrt( ) + ( )^( ) )* exp( );
• It is better to start a new worksheet with the command restart –
this resets the system and variables used in a previous worksheet
do not cast their value into the new one
• Not all combinations of symbols are allowed in Maple (e.g. Pi and
I are already used by the system
8/4/2015 SFR COLLEGE PRESENTATION 8
Solving equations with Maple
• Two different methods of finding roots:
1) analytical (symbolic); 2)numerical
• Maple provides two respective built-in functions:
1) solve; 2) fsolve
• Analytical approach: the equation is manipulated up to the form
when the unknown is expressed in terms of the knowns – solve
operates in this way. The variety of equations to be analytically
solved is determined by the set of techniques available in Maple
• Each new Maple version – new commands and packages.
Multipurpose commands of the xsolve type: dsolve for ODE,
pdsolve for PDE, rsolve for difference equations
• New libraries: DEtools, PDEtools, LREtools. Special packages
for implicit solutions: DESol, RESol (difference), RootOf (algebra)
8/4/2015 SFR COLLEGE PRESENTATION 9
Analytical solutions
• The solve command – multipurpose, can be applied to systems of
algebraic equations, inequalities, functional equations, identities.
The form: solve (eqn, var), where eqn is an equation or a system
of equations, var is a variable or a group of variables. If the latter
parameter is absent, solve will look for solutions with respect to
all symbolic variables
• The system of equations and the group of variables are given as
sets (in curly brackets and separated by commas)
• Example: > s:=solve({6*x+y=8, 3*x-2*y=4},{x,y});
• If the equation is written without the equality sign it is viewed as
one part of the equality, the other being considered zero:
> sl:=solve(x^7+8*x,x);
8/4/2015 SFR COLLEGE PRESENTATION 10
• Many equations encountered in science and engineering are hard
to treat analytically – they have to be solved numerically
• To solve differential equations numerically with the help of dsolve
command one must declare the parameter numeric. This can be
done by two manners:
a) dsolve(ODE, var, type=numeric, method)
b) dsolve(ODE, var, numeric, method)
• Equations to be solved and initial (or boundary) conditions are
defined as a set; var are lists of unknown functions; method
parameters define the numerical techniques invoked to solve ODE.
By default, the method is understood as Runge-Kutta-Fehlberg 4/5
(rfk45)
• Also by default, as a result of applying dsolve with the parameter
numeric a procedure is created to compute specific values
Numerical treatment of equations in Maple
8/4/2015 SFR COLLEGE PRESENTATION 11
 s:=D(x)(t)=y(t),D(y)(t)=-a*y(t)-.8*sin(x(t));
 ic:=x(0)=0,y(0)=2;
 F:=dsolve({s,ic},{x(t),y(t)},numeric);
 a:=.2;evalf(F(1.5),5);
>plots[odeplot](F,[[t,x(t)],[t,y(t)]],0..30,labels=[t,"x,y"],axes=boxed);
• To visualize numerical solutions of this Cauchy problem, one may
use the graphics commands from the DEtools package
• The obtained solution may serve as a source of all the necessary
information about the system
An example of numerical solution of ODE
8/4/2015 SFR COLLEGE PRESENTATION 12
Functions in Maple
 f := x^2;
 g := x -> 2 * x^3 * f;
 g(x); g(2);
 f := x -> x^2;
 g := 2 * (x -> x^3) * f;
 g(x); g(2);
8/4/2015 SFR COLLEGE PRESENTATION 13
Suppose we want to evaluate our mathematical
function at a point, say at 1.
 f := x^2 - 3*x-10;
 g := x -> x^2-3*x-10;
 subs( x=1, f );
 eval( f, x=1 );
 g(1);
 f(1);
 subs( x=1, g );
8/4/2015 SFR COLLEGE PRESENTATION 14
• eval( f, x=1 ); subs( x=1, f );
• Think of reading eval( f, x=1) as " evaluate f
at x=1" and think of reading subs (x=1,f) as "
substitute x=1 into f".
• factor( f );
• factor( g(x) );
• factor( f (x) );
• factor( g );
8/4/2015 SFR COLLEGE PRESENTATION 15
 diff( f, x );
 D( g );
• diff command needed a reference to x in it but the D
command did not.
 D( f );
 diff( g, x );
8/4/2015 SFR COLLEGE PRESENTATION 16
Let us do an example of combining two mathematical functions f and g by
composing them to make a new function .
For the expression:
 f := x^2 + 3*x;
 g := x + 1;
 h := subs( x=g, f );
 subs(x=1, h);
))(()( xgfxh 
8/4/2015 SFR COLLEGE PRESENTATION 17
Example: representing a mathematical
function of two variables.
• f := (x^2+y^2)/(x+x*y);
• g := (x,y) -> (x^2+y^2)/(x+x*y);
• subs( x=1, y=2, f );
• eval( f, {x=1, y=2} );
• g(1,2);
• simplify( f );
• simplify( g(x,y) );
8/4/2015 SFR COLLEGE PRESENTATION 18
Here is how we compute partial derivatives of
the expression.
• diff( f, x );
• simplify( % );
• diff( f, y );
• simplify( % );
• D[1](g);
• simplify( %(x,y) );
• D[2](g);
• simplify( %(x,y) );
8/4/2015 SFR COLLEGE PRESENTATION 19
8/4/2015 SFR COLLEGE PRESENTATION 20
8/4/2015 SFR COLLEGE PRESENTATION 21
Sl.No Package Name Commands/ Tools
1 CodeGeneration tools for translating Maple code to other languages
2 CurveFitting commands that support curve-fitting
3 DEtools tools for manipulating, solving, and plotting systems
of differential
equations
4 GraphTheory collction of routines for creating, drawing,
manipulating, and testing graphs
5 finance commands for financial computations
6 IntegrationTools tools used for manipulation of integrals
7 LinearAlgebra commands for manipulating Matrices and Vectors
8 IntegrationTools tools used for manipulation of integrals
9 numtheory commands for classic number theory
10 Optimization commands for numerically solving optimization
theory problems
11 PDEtools tools for solving partial differential equations
12 Statistics tools for mathematical statistics and data analysis
Some of the Maple Packages
8/4/2015 SFR COLLEGE PRESENTATION 22
8/4/2015 SFR COLLEGE PRESENTATION 23
Differential Package
Graph Theory Package
Optimization Package
EXPLORING THE PACKAGES
Thank you
for your
attention

More Related Content

What's hot

Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationHeman Pathak
 
Differentiation using First Principle - By Mohd Noor Abdul Hamid
Differentiation using First Principle  - By Mohd Noor Abdul HamidDifferentiation using First Principle  - By Mohd Noor Abdul Hamid
Differentiation using First Principle - By Mohd Noor Abdul HamidMohd. Noor Abdul Hamid
 
Computer graphics question for exam solved
Computer graphics question for exam solvedComputer graphics question for exam solved
Computer graphics question for exam solvedKuntal Bhowmick
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equationsTarun Gehlot
 
Lesson 3: The Concept of Limit
Lesson 3: The Concept of LimitLesson 3: The Concept of Limit
Lesson 3: The Concept of LimitMatthew Leingang
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Muhammad Waqas
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward differenceRaj Parekh
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Viraj Patel
 
Matrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfsMatrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfsFarhana Shaheen
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature FormulaMaitree Patel
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidelarunsmm
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10Yasser Ahmed
 
Lecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationLecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationEric Cochran
 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolationEasyStudy3
 

What's hot (20)

Matrices
MatricesMatrices
Matrices
 
Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix Multiplication
 
Differentiation using First Principle - By Mohd Noor Abdul Hamid
Differentiation using First Principle  - By Mohd Noor Abdul HamidDifferentiation using First Principle  - By Mohd Noor Abdul Hamid
Differentiation using First Principle - By Mohd Noor Abdul Hamid
 
Computer graphics question for exam solved
Computer graphics question for exam solvedComputer graphics question for exam solved
Computer graphics question for exam solved
 
Quine Mc Cluskey Method
Quine Mc Cluskey MethodQuine Mc Cluskey Method
Quine Mc Cluskey Method
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equations
 
Lesson 3: The Concept of Limit
Lesson 3: The Concept of LimitLesson 3: The Concept of Limit
Lesson 3: The Concept of Limit
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
 
Gauss elimination
Gauss eliminationGauss elimination
Gauss elimination
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Matrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfsMatrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfs
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature Formula
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Cours coniques
Cours coniquesCours coniques
Cours coniques
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10
 
Lecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationLecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to Interpolation
 
Demultiplexer
DemultiplexerDemultiplexer
Demultiplexer
 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolation
 

Viewers also liked

Intro to object oriented programming
Intro to object oriented programmingIntro to object oriented programming
Intro to object oriented programmingDavid Giard
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2REHAN IJAZ
 
3.3 programming fundamentals
3.3 programming fundamentals3.3 programming fundamentals
3.3 programming fundamentalsSayed Ahmed
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)jakejakejake2
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming FundamentalsShahriar Hyder
 

Viewers also liked (6)

8- java language basics part2
8- java language basics part28- java language basics part2
8- java language basics part2
 
Intro to object oriented programming
Intro to object oriented programmingIntro to object oriented programming
Intro to object oriented programming
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
3.3 programming fundamentals
3.3 programming fundamentals3.3 programming fundamentals
3.3 programming fundamentals
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming Fundamentals
 

Similar to Mathematical Modeling with Maple

Symbolic Computation and Automated Reasoning in Differential Geometry
Symbolic Computation and Automated Reasoning in Differential GeometrySymbolic Computation and Automated Reasoning in Differential Geometry
Symbolic Computation and Automated Reasoning in Differential GeometryM Reza Rahmati
 
Cypher.PL: an executable specification of Cypher semantics
Cypher.PL: an executable specification of Cypher semanticsCypher.PL: an executable specification of Cypher semantics
Cypher.PL: an executable specification of Cypher semanticsopenCypher
 
Programming in python
Programming in pythonProgramming in python
Programming in pythonIvan Rojas
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2Yasser Ahmed
 
Advanced data structures slide 1 2
Advanced data structures slide 1 2Advanced data structures slide 1 2
Advanced data structures slide 1 2jomerson remorosa
 
Intro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve CulmanIntro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve CulmanNoam Ross
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxAbhishek Tirkey
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxGauravPandey43518
 
Introduction to R.pptx
Introduction to R.pptxIntroduction to R.pptx
Introduction to R.pptxkarthikks82
 
Chapter 1 MATLAB Fundamentals easy .pptx
Chapter 1 MATLAB Fundamentals easy .pptxChapter 1 MATLAB Fundamentals easy .pptx
Chapter 1 MATLAB Fundamentals easy .pptxEyob Adugnaw
 

Similar to Mathematical Modeling with Maple (20)

Symbolic Computation and Automated Reasoning in Differential Geometry
Symbolic Computation and Automated Reasoning in Differential GeometrySymbolic Computation and Automated Reasoning in Differential Geometry
Symbolic Computation and Automated Reasoning in Differential Geometry
 
Cypher.PL: an executable specification of Cypher semantics
Cypher.PL: an executable specification of Cypher semanticsCypher.PL: an executable specification of Cypher semantics
Cypher.PL: an executable specification of Cypher semantics
 
R programmingmilano
R programmingmilanoR programmingmilano
R programmingmilano
 
Computer algebra-system-maple
Computer algebra-system-mapleComputer algebra-system-maple
Computer algebra-system-maple
 
R workshop
R workshopR workshop
R workshop
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2
 
Lec3
Lec3Lec3
Lec3
 
Advanced data structures slide 1 2
Advanced data structures slide 1 2Advanced data structures slide 1 2
Advanced data structures slide 1 2
 
Intro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve CulmanIntro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve Culman
 
Matlab1
Matlab1Matlab1
Matlab1
 
An Intoduction to R
An Intoduction to RAn Intoduction to R
An Intoduction to R
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
Introduction to R.pptx
Introduction to R.pptxIntroduction to R.pptx
Introduction to R.pptx
 
Lesson 18
Lesson 18Lesson 18
Lesson 18
 
AI Lesson 18
AI Lesson 18AI Lesson 18
AI Lesson 18
 
Chapter 1 MATLAB Fundamentals easy .pptx
Chapter 1 MATLAB Fundamentals easy .pptxChapter 1 MATLAB Fundamentals easy .pptx
Chapter 1 MATLAB Fundamentals easy .pptx
 
Dafunctor
DafunctorDafunctor
Dafunctor
 

Recently uploaded

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 

Recently uploaded (20)

Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 

Mathematical Modeling with Maple

  • 1. MATHEMATICAL MODELING WITH MAPLE 8/4/2015 SFR COLLEGE PRESENTATION By Dr. V.GNANARAJ ASSOCIATE PROFESSOR IN MATHEMATICS THIAGARAJAR COLLEGE OF ENGINEERING MADURAI 1
  • 2. 8/4/2015 SFR COLLEGE PRESENTATION 2 Mathematical Modeling with Maple • Computer algebra systems in scientific computing • Maple – an interactive system, allowing one to carry out both numerical and analytical computations. Maple contains 2D and 3D graphical means, powerful programming language and an extensive library of mathematical formulae • A convenient working method, when all stages of mathematical, physical or engineering research can be stored in a single document - worksheet • The worksheet automatically becomes a scientific article, report, chapter in a book, etc.
  • 3. 8/4/2015 SFR COLLEGE PRESENTATION 3 Document organization in Maple • One should familiarize oneself with Maple GUI • The best way is to learn use and syntax of Maple simultaneously and by examples • A worksheet (*.mws) consists of logical groups called „execution groups“ Each group consists of several parts : - Input Region - Output Region - Text Region (e.g. comments) • The principal objects in Maple: numbers, constants, names - numbers: integer, real, rational, radicals - constants: Pi, I, E, Infinity, gamma, true, false - names: sequences of symbols starting with literal (e.g. new, New, new_old, etc.)
  • 4. Maple Startup Menu 8/4/2015 SFR COLLEGE PRESENTATION 4
  • 5. Maple Worksheet with input and output Maple Input Maple Output Maple Execution Group Maple Prompt Time for executing the command 8/4/2015 SFR COLLEGE PRESENTATION 5
  • 6. Maple Help Menu 8/4/2015 SFR COLLEGE PRESENTATION 6
  • 7. Syntax and expressions • After typing a command, you should inform the computer that the command has ended and must be accepted. There are two types of terminators: ; and : The colon is needed to suppress Return – the output is not printed • The symbol % is called “ditto”, it is used to refer to previous return. Twofold ditto (%%) refers to the second last return, etc • Expressions are the main object for the most of commands. Expressions are composed of constants, variables, signs of arithmetical and logical operations 8/4/2015 SFR COLLEGE PRESENTATION 7
  • 8. Typical syntax errors and remedies • Forgetting a bracket or an operator – the error message comes after Return (sometimes it appears meaningless) • It is easier to type the brackets and some operators first, and then insert functions, variables and parameters, e.g. > ( )*(sqrt( ) + ( )^( ) )* exp( ); • It is better to start a new worksheet with the command restart – this resets the system and variables used in a previous worksheet do not cast their value into the new one • Not all combinations of symbols are allowed in Maple (e.g. Pi and I are already used by the system 8/4/2015 SFR COLLEGE PRESENTATION 8
  • 9. Solving equations with Maple • Two different methods of finding roots: 1) analytical (symbolic); 2)numerical • Maple provides two respective built-in functions: 1) solve; 2) fsolve • Analytical approach: the equation is manipulated up to the form when the unknown is expressed in terms of the knowns – solve operates in this way. The variety of equations to be analytically solved is determined by the set of techniques available in Maple • Each new Maple version – new commands and packages. Multipurpose commands of the xsolve type: dsolve for ODE, pdsolve for PDE, rsolve for difference equations • New libraries: DEtools, PDEtools, LREtools. Special packages for implicit solutions: DESol, RESol (difference), RootOf (algebra) 8/4/2015 SFR COLLEGE PRESENTATION 9
  • 10. Analytical solutions • The solve command – multipurpose, can be applied to systems of algebraic equations, inequalities, functional equations, identities. The form: solve (eqn, var), where eqn is an equation or a system of equations, var is a variable or a group of variables. If the latter parameter is absent, solve will look for solutions with respect to all symbolic variables • The system of equations and the group of variables are given as sets (in curly brackets and separated by commas) • Example: > s:=solve({6*x+y=8, 3*x-2*y=4},{x,y}); • If the equation is written without the equality sign it is viewed as one part of the equality, the other being considered zero: > sl:=solve(x^7+8*x,x); 8/4/2015 SFR COLLEGE PRESENTATION 10
  • 11. • Many equations encountered in science and engineering are hard to treat analytically – they have to be solved numerically • To solve differential equations numerically with the help of dsolve command one must declare the parameter numeric. This can be done by two manners: a) dsolve(ODE, var, type=numeric, method) b) dsolve(ODE, var, numeric, method) • Equations to be solved and initial (or boundary) conditions are defined as a set; var are lists of unknown functions; method parameters define the numerical techniques invoked to solve ODE. By default, the method is understood as Runge-Kutta-Fehlberg 4/5 (rfk45) • Also by default, as a result of applying dsolve with the parameter numeric a procedure is created to compute specific values Numerical treatment of equations in Maple 8/4/2015 SFR COLLEGE PRESENTATION 11
  • 12.  s:=D(x)(t)=y(t),D(y)(t)=-a*y(t)-.8*sin(x(t));  ic:=x(0)=0,y(0)=2;  F:=dsolve({s,ic},{x(t),y(t)},numeric);  a:=.2;evalf(F(1.5),5); >plots[odeplot](F,[[t,x(t)],[t,y(t)]],0..30,labels=[t,"x,y"],axes=boxed); • To visualize numerical solutions of this Cauchy problem, one may use the graphics commands from the DEtools package • The obtained solution may serve as a source of all the necessary information about the system An example of numerical solution of ODE 8/4/2015 SFR COLLEGE PRESENTATION 12
  • 13. Functions in Maple  f := x^2;  g := x -> 2 * x^3 * f;  g(x); g(2);  f := x -> x^2;  g := 2 * (x -> x^3) * f;  g(x); g(2); 8/4/2015 SFR COLLEGE PRESENTATION 13
  • 14. Suppose we want to evaluate our mathematical function at a point, say at 1.  f := x^2 - 3*x-10;  g := x -> x^2-3*x-10;  subs( x=1, f );  eval( f, x=1 );  g(1);  f(1);  subs( x=1, g ); 8/4/2015 SFR COLLEGE PRESENTATION 14
  • 15. • eval( f, x=1 ); subs( x=1, f ); • Think of reading eval( f, x=1) as " evaluate f at x=1" and think of reading subs (x=1,f) as " substitute x=1 into f". • factor( f ); • factor( g(x) ); • factor( f (x) ); • factor( g ); 8/4/2015 SFR COLLEGE PRESENTATION 15
  • 16.  diff( f, x );  D( g ); • diff command needed a reference to x in it but the D command did not.  D( f );  diff( g, x ); 8/4/2015 SFR COLLEGE PRESENTATION 16
  • 17. Let us do an example of combining two mathematical functions f and g by composing them to make a new function . For the expression:  f := x^2 + 3*x;  g := x + 1;  h := subs( x=g, f );  subs(x=1, h); ))(()( xgfxh  8/4/2015 SFR COLLEGE PRESENTATION 17
  • 18. Example: representing a mathematical function of two variables. • f := (x^2+y^2)/(x+x*y); • g := (x,y) -> (x^2+y^2)/(x+x*y); • subs( x=1, y=2, f ); • eval( f, {x=1, y=2} ); • g(1,2); • simplify( f ); • simplify( g(x,y) ); 8/4/2015 SFR COLLEGE PRESENTATION 18
  • 19. Here is how we compute partial derivatives of the expression. • diff( f, x ); • simplify( % ); • diff( f, y ); • simplify( % ); • D[1](g); • simplify( %(x,y) ); • D[2](g); • simplify( %(x,y) ); 8/4/2015 SFR COLLEGE PRESENTATION 19
  • 20. 8/4/2015 SFR COLLEGE PRESENTATION 20
  • 21. 8/4/2015 SFR COLLEGE PRESENTATION 21
  • 22. Sl.No Package Name Commands/ Tools 1 CodeGeneration tools for translating Maple code to other languages 2 CurveFitting commands that support curve-fitting 3 DEtools tools for manipulating, solving, and plotting systems of differential equations 4 GraphTheory collction of routines for creating, drawing, manipulating, and testing graphs 5 finance commands for financial computations 6 IntegrationTools tools used for manipulation of integrals 7 LinearAlgebra commands for manipulating Matrices and Vectors 8 IntegrationTools tools used for manipulation of integrals 9 numtheory commands for classic number theory 10 Optimization commands for numerically solving optimization theory problems 11 PDEtools tools for solving partial differential equations 12 Statistics tools for mathematical statistics and data analysis Some of the Maple Packages 8/4/2015 SFR COLLEGE PRESENTATION 22
  • 23. 8/4/2015 SFR COLLEGE PRESENTATION 23 Differential Package Graph Theory Package Optimization Package EXPLORING THE PACKAGES