Docsity

MuPAD - Computational Methods - Lecture Slides, Slides of Computational Methods

Partial preview of the text

Download MuPAD - Computational Methods - Lecture Slides and more Slides Computational Methods in PDF only on Docsity!

Chp11:

MuPAD

Learning Goals

  • Understand and Open MuPAD “NoteBooks”
  • Work within the NoteBooks to perform SYMBOLIC CALCULATIONS including - Algebra - Transcendental Equations - Calculus - Ordinary Differential Equations

Learning Goals

  • Use MuPAD to create PLOTS of functions

MATLAB Symbolic MATH

  • In Addition to Using NUMBERS MATLAB can Manipulate SYMBOLS
  • Basically, a Mathematics HandBook has been codifed in Software by a group at the University of Paderborn in Germany
  • The MathWORKS Purchased The “MuPAD” Symbolic Math “Engine” (or “Kernal”), and Integrated it into MATLAB - MuPAD uses Pascal-like Syntax

Symbolic Computation

  • The Differences Between Symbolic and Numeric Computation

Numerical Symbolic Variables Represent Numbers

Variables are Symbols; e.g., x, y, z, β, θ, σ Answers can Only be Numbers

Answers can contain Variables and Functions Numeric Computation can be done using Standard Programming Languages

Symbolic computations are not similar to standard programming languages – they use symbolic Manipulations

MuPAD BackGround

  • MuPAD is a part a generic class of Software called a “Computer Algebra System” (CAS). - MuPAD research group at the University of Paderborn, Germany originally developed this symbolic-manipulation software

 The MathWORKS purchased MuPAD to replace the previous “Symbolic Math Kernal” written by MapleSoft

Sample of MuPAD Capabilities

  • Perform SYMBOLIC differentiation and integration
  • Evaluate limits and series SYMBOLICALLY.
  • Obtain SYMBOLIC solutions to Ordinary Differential Equations (ODEs).
  • Solve ORDINARY DIFFERENTIAL EQUATIONS in terms of special functions or series.

MuPAD “NoteBook”

  • MuPAD creates within MATLAB its own working SubWindows Called NoteBooks - The User works/types in the “NoteBooks” - NoteBooks saved with extension: .mn
  • For MuPAD beginers it’s best start at the MuPAD “Welcome” screen
  • At the MATLAB Command Prompt type

mupadwelcome

Go Directly to WorkBook

  • In MATLAB command window type mupad
  • A MuPAD NoteBook

NoteBook Regions Calcs

CALC Regions

NoteBook Regions OutPut

OutPut Regions

Importance of “Evaluation”

  • The CALCULATION regions in MuPAD can be Inserted, Deleted, Edited
  • After Editing, We may have to EVALUATE the edit using the TOOL or PULL DOWN MENU
  • If a change in an OUTPUT Region does NOT happen as expected; then be SURE to EVALUATE the CALC region - “EVALUATE ALL” often works best

Evaluate Options

  • Use the Pull-Down Menu for Different forms of the EVALUATION
  • Use the NOTEBOOK Pull-Down - “Evalute All” works well

MuPAD Syntax & Structure

  • TEXT regions do NOT have a left Bracket
  • CALC & OUTPUT Regions DO have a Left Bracket - Interaction with INTEGERS Produces a SYMBOLIC OutPut - Using a decimal Point Produces a NUMBER Result