The higher order symbolic differential operators ', ', … can be used to solve higher order equations.. Over 50 special functions of classical applied mathematics are available in the Sym
Trang 1The result D is a solution in the variable [, and E is a solution in \ To solve an equation whose right-hand side
is not , use a quoted string Some examples are:
YSD;
YSD;
This solves for the variable D:
and this solves the same equation for E:
The function VROYH can also compute the solutions of systems of general algebraic equations To solve, for example, the nonlinear system below, it is convenient to first express the equations as strings
The solutions are then computed by:
>;<=@ VROYH666
If you alter 6 to:
then the solution computed by:
>;<=@ VROYH666
Trang 2will be given in terms of square roots
The VROYH function can take quoted strings or symbolic expressions as input arguments, but you cannot mix the two types of inputs
14.10 Solving differential equations
The function GVROYH attempts to solve ordinary
differential equations The symbolic differential operator
is ', so that:
differential equation y’ = x2 y The solution to an initial
value problem can be computed by adding a second symbolic expression giving the initial condition
Notice that in both examples above, the final input argument, , is the independent variable of the differential equation If no independent variable is supplied to GVROYH, then it is assumed to be W The higher order symbolic differential operators ', ', … can be used to solve higher order equations Explore the following:
< VLPSOH<
Trang 3Systems of differential equations can also be solved For example,
The solutions are then computed with:
>[\]@ GVROYH(((
SUHWW\[
SUHWW\\
SUHWW\]
You can explore further details with KHOSGVROYH
14.11 Further Maple access
The following features are not available in the Student Version of MATLAB
Over 50 special functions of classical applied
mathematics are available in the Symbolic Math Toolbox Enter KHOSPIXQOLVW to see a list of them These functions can be accessed with the function PIXQ, for which you are referred to KHOSPIXQ for further details The PDSOH function allows you to use expressions and programming constructs in Maple’s native language, which gives you full access to Maple’s functionality See KHOSPDSOH, or PKHOSWRSLF, which displays Maple’s help text for the specified topic The Extended Symbolic Math Toolbox provides access to a number of Maple’s specialized libraries of procedures It also provides for use of Maple programming features
Trang 415 Help topics
There are many MATLAB functions and features that cannot be included in this Primer Listed in the following tables are some of the MATLAB functions and operators, grouped by subject area.6 You can browse through these lists and use the online help facility, or consult the online
documents MATLAB Functions: Volumes 1 through 3 for
more detailed information on the functions, operators, and special characters
Typing KHOS at the MATLAB command prompt will provide a listing of the major MATLAB directories, similar to the following table Typing KHOSWRSLF, where WRSLF is an entry in the left column of the table, will display a description of the topic For example, KHOSJHQHUDO will display on your Command window a plain text version of Section 15.1 Typing KHOSRSV will display Section 15.2, starting on page 99, and so on Each topic is discussed in a single subsection The page number for each subsection is also listed in the following table
6
Source: MATLAB 6.1 KHOS command, Release R12.1
Trang 5Help topics page
Trang 615.1 General
KHOSJHQHUDO
General information
KHOSEURZVHU Bring up the help browser
GRF Complete online help, displayed in the help browser (KHOSGHVNin Version
6.0)
window
browser
page
version information
Managing the workspace
memory
Trang 7Managing commands and functions
(P-file)
Managing the search path
scope
Controlling the Command window
window
Operating system commands
(continued on next page)
Trang 8Operating system commands (continued)
result
MATLAB
Debugging M-files
Profiling M-files
Trang 9Locate dependent functions of an M-file
M-file
15.2 Operators and special characters
KHOSRSV
Arithmetic operators (help arith, help slash)
Relational operators (help relop)
Trang 10Logical operators
Special characters
FWUDQVSRVH Complex conjugate transpose
^`
^` VXEVLQGH[ Subscript index
Trang 11Bitwise operators
Set operators
15.3 Programming language constructs
KHOSODQJ
Control flow
VZLWFK, WU\ and LI statements
times
of times
loop (continued on next page)
Trang 12Control flow (continued)
FRQWLQXH Pass control to the next iteration of IRU
or ZKLOH loop
expression
Evaluation and execution
expression
capture
overloaded method
Scripts, functions, and variables
SHUVLVWHQW Define persistent variable
defined
(continued on next page)
Trang 13Scripts, functions, and variables (cont.)
Argument handling
YDUDUJRXW Variable length output argument list
Message display
Interactive input
XLFRQWURO Create user interface control
Trang 1415.4 Elementary matrices and matrix manipulation
KHOSHOPDW
Elementary matrices
response
matrix
Basic array information
Trang 15Matrix manipulation
matrix
Special variables and constants
Trang 16Specialized matrices
problem
15.5 Elementary math functions
KHOSHOIXQ
Trigonometric
(continued on next page)
Trang 17Trigonometric (continued)
Exponential
floating-point number
number
Complex
imaginary parts
pairs
... topicsThere are many MATLAB functions and features that cannot be included in this Primer Listed in the following tables are some of the MATLAB functions and operators, grouped...
documents MATLAB Functions: Volumes through for
more detailed information on the functions, operators, and special characters
Typing KHOS at the MATLAB command prompt... workspace
memory
Trang 7< /span>Managing commands and functions
(P-file)
Managing