1 / 28

Chapter 2: First Steps in MuPAD

Chapter 2: First Steps in MuPAD. MATLAB for Scientist and Engineers Using Symbolic Toolbox. You are going to. See the difference between numerical computing and symbolic computing Say hello to MuPAD notebook Enjoy the kind help system of MuPAD

Download Presentation

Chapter 2: First Steps in MuPAD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 2:First Steps in MuPAD MATLAB for Scientist and Engineers Using Symbolic Toolbox

  2. You are going to • See the difference between numerical computing and symbolic computing • Say hello to MuPAD notebook • Enjoy the kind help system of MuPAD • Taste the sweet power of symbolic computing • Create basic 2-D, 3-D graphs and animations • Beglad to know that MuPAD is there for you

  3. Numerical Computations • Problem solving by number calculations • Approximate solutions as fast as possible • Numbers are stored by floating-point representation. • The only way when no closed form solution

  4. Computer Algebra • Problem solving by symbolic computations • Exact solution as fast as possible • Numbers are stored by integer fractions. • Requires more computing power and storage • Can help numerical computation by simplifying the expressions.

  5. MuPAD Software • Originally developed by the MuPAD research group at the University of Paderborn, Germany. • A computer algebra system to manipulate formulas symbolically • Program packages for linear algebra, differential equations, number theory, statistics, functional programming • An interactive graphic system that supports animations and transparent areas in 3D • Classic and verified numerical analysis in discretionary accuracy • A programming language that supports object orientation and functional programming Ref: http://en.wikipedia.org/wiki/MuPAD

  6. Other Options • Mathematica, www.wolfram.com • Maple, www.maplesoft.com • IDL, www.ittvis.com/ProductServices/IDL.aspx • , www.gnu.org/software/octave/ • M , www.ptc.com/products/mathcad/ • Ref: http://amath.colorado.edu/computing/mmm/

  7. Starting MuPAD • Two ways of starting MuPAD • Type mupadin the command window. • Start button

  8. MuPAD Notebook Format Toolbar Menu Bar >> mupad Command Bar Text Region Ctr-T Input Region Ctr-I Output Region Standard Toolbar

  9. Working with Input Regions Evaluate and show the results. Enter Evaluate but do not show the results. Enter Shift + Enter Enter The expressions continues to the next line

  10. Evaluation after Modification • Once you change the value of variable, you can re-evaluate the other dependent expressions.

  11. Accessing Help • Completing Commands: • Tool Tips: mouse over the command • Complete Help: • right mouse click Ctrl + Space

  12. Computing Numbers Assignment! real number! Change precision. Convert to a real number! delete DIGITS PI E

  13. Complex Numbers magnitude imaginary real in radian

  14. Differentiation D(f) f'

  15. Integration No closed form solution ! Numeric integration

  16. Solving Equations • solve Solve Algebraic Equations Solve Inequalities Solve Ordinary Differential Equations

  17. Graphics • 2-D Function Plotting • 2-D Animation • 3-D Function Plotting • 3-D Animation

  18. Manipulating Expressions • Simplifying the expressions • Factoring, Expanding, Collecting, and etc.

  19. Basic Plotting Options • With plot command, you can • Create 2-D and 3-D function plots • Specify plotting range • Create plots for piecewise functions • Create multiple function plots in one graph • Create animated 2-D and 3-D function plots

  20. Creating 2-D Plots Set range. Parameter assignment. Sequence of plots.

  21. Creating 2-D Plots (cont.) Multiple Plots Piecewise Functions

  22. Creating 3-D Plots Animation Control Sequence of 3D Plots Three Dim.

  23. Animated 2-D Plots Animation parameter 2-D point Additional parameter is regarded as the animation parameter. 2-D curve

  24. Animated 3-D Plots

  25. Key Takeaways • Now, you are able to • tell the differences between numerical computing and symbolic computing, • expand your knowledge on MuPAD by yourself using MuPAD help system, • apply differentiation, indefinite integrals, definite integrals on math expressions and functions, • solve an equation or a set of equations, • manipulate math expressions at your will, • and to create basic 2-D and 3-D graphs and animations

  26. MuPAD Commands Review mupad := : float PI E abs rectform Re Im arg conjugate diff int infinity assuming solve factor expand simplify collect partfrac ode Simplify Ctr Ctr Shift Ctr + + + + I Space T Enter

  27. Notes

  28. Notes

More Related