Transcription of Symbolic Math Toolbox User's Guide
1 For Use with matlab User s GuideVersion 3 Symbolic MathToolboxHow to Contact The Technical Product enhancement Bug Documentation error Order status, license renewals, Sales, pricing, and general information508-647-7000 Phone508-647-7001 FaxThe MathWorks, Apple Hill DriveNatick, MA 01760-2098 For contact information about worldwide offices, see the MathWorks Web Math Toolbox User s Guide COPYRIGHT 1993 - 2004 by The MathWorks, Inc. The software described in this document is furnished under a license agreement.
2 The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro-duced in any form without prior written consent from The MathWorks, ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by, for, or through the federal government of the United States. By accepting delivery of the Program or Documentation, the government hereby agrees that this software or documentation qualifies as commercial computer software or commercial computer software documentation as such terms are used or defined in FAR , DFARS Part , and DFARS Accordingly, the terms and conditions of this Agreement and only those rights specified in this Agreement, shall pertain to and govern the use, modification, reproduction, release, performance, display.
3 And disclosure of the Program and Documentation by the federal government (or other entity acquiring for or through the federal government) and shall supersede any conflicting contractual terms or conditions. If this License fails to meet the government's needs or is inconsistent in any respect with federal procurement law, the government agrees to return the Program and Documentation, unused, to The MathWorks, Inc. matlab , Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and TargetBox is a trademark of The MathWorks, product or brand names are trademarks or registered trademarks of their respective.
4 August 1993 First printingOctober 1994 Second printingMay 1997 Third printingRevised for Version 2 May 2000 Fourth printing Minor changesJune 2001 Fifth printingMinor changesJuly 2002 Online onlyRevised for Version (Release 13)October 2002 Online onlyRevised for Version December 2002 Sixth printingJune 2004 Seventh printing Revised for Version (Release 14)October 2004 Online onlyRevised for Version (Release 14SP1)iContents1 Getting StartedWhat Are the Symbolic Math Toolboxes? .. 1-2 The Symbolic Math Toolboxes.
5 1-3 Symbolic Objects .. 1-4 Creating Symbolic Variables and Expressions .. 1-6 The findsym Command .. 1-8 The subs Command .. 1-9 The Default Symbolic Variable .. 1-10 Symbolic and Numeric Conversions .. 1-11 Constructing Real and Complex Variables .. 1-13 Creating Abstract Functions .. 1-14 Creating Symbolic Math Functions .. 1-16 Using Symbolic Expressions .. 1-16 Creating an M-File .. 1-162 Using the Symbolic Math ToolboxCalculus .. 2-2 Differentiation .. 2-2 Limits.
6 2-8 Integration .. 2-11 Symbolic Summation .. 2-18 Taylor Series .. 2-18 Calculus Example .. 2-20 Extended Calculus Example .. 2-28iiContentsSimplifications and Substitutions .. 2-41 Simplifications .. 2-41 Substitutions .. 2-50 Variable-Precision Arithmetic .. 2-58 Overview .. 2-58 Example: Using the Different Kinds of Arithmetic .. 2-59 Another Example .. 2-61 Linear Algebra .. 2-63 Basic Algebraic Operations .. 2-63 Linear Algebraic Operations .. 2-64 Eigenvalues .. 2-68 Jordan Canonical Form.
7 2-74 Singular Value Decomposition .. 2-75 Eigenvalue Trajectories .. 2-78 Solving Equations .. 2-89 Solving Algebraic Equations .. 2-89 Several Algebraic Equations .. 2-90 Single Differential Equation .. 2-93 Several Differential Equations .. 2-95 Special Mathematical Functions .. 2-98 Diffraction .. 2-100 Using Maple Functions .. 2-103 Simple Example .. 2-103 Vectorized Example .. 2-105 Debugging .. 2-107 Extended Symbolic Math Toolbox .. 2-109 Packages of Library Functions .. 2-109 Procedure Example.
8 2-111iii3 ReferenceFunctions Categorical List .. 3-2 Calculus .. 3-2 Linear Algebra .. 3-2 Simplification .. 3-3 Solution of Equations .. 3-3 Variable Precision Arithmetic .. 3-3 Arithmetic Operations .. 3-3 Special Functions .. 3-4 Access To Maple .. 3-4 Pedagogical and Graphical Applications .. 3-5 Conversions .. 3-5 Basic Operations .. 3-6 Integral Transforms .. 3-6 Functions Alphabetical List .. 3-7 IndexivContents 1 Getting Started This section introduces you to the Symbolic Math Toolbox , and describes how to create and use Symbolic objects.
9 The section covers the following topics:What Are the Symbolic Math Toolboxes? (p. 1-2)Overview of the toolboxesSymbolic Objects (p. 1-4)Describes Symbolic objects and how they differ from standard matlab data typesCreating Symbolic Variables and Expressions (p. 1-6)How to create Symbolic objectsThe subs Command (p. 1-9)How to substitute numbers for variablesSymbolic and Numeric Conversions (p. 1-11)How to convert between Symbolic objects and numeric valuesCreating Symbolic Math Functions (p. 1-16)How to create functions that operate on Symbolic objects1 Getting Started1-2 What Are the Symbolic Math Toolboxes?
10 The Symbolic Math Toolboxes incorporate Symbolic computation into the numeric environment of matlab . These toolboxes supplement matlab numeric and graphical facilities with several other types of mathematical computation, which are summarized in following computational engine underlying the toolboxes is the kernel of Maple , a system developed primarily at the University of Waterloo, Canada and, more recently, at the Eidgen ssiche Technische Hochschule, Z rich, Switzerland. Maple is marketed and supported by Waterloo Maple, Inc.