资源描述:
《matlab.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、SymbolicComputationCreatingSymbolicExpressionsSymbolicAlgebraSymbolicExpressionOperationsSymbolicCalculusSymbolicIntegralTransformsSolvingEquationsGraphicalApplicationsUsingMapleFunctions------SymbolicMathToolboxCreatingSymbolicExpressions1.symcommandcanconstructsymbolicconstants,variablesande
2、xpressions.sym(‘constant’)sym(constant,para)---d,f,r,esym(‘variable’,para)---positive,real,unrealsym(‘expression’)2.symscommandcanconstructsymbolicvariablesandexpressions.(recommend)syms(‘arg1’,’arg2’,…para)symsarg1arg2…para3.symandsymsalsocanconstructsymbolicmatrices1.OperationSymbolsMatrixOp
3、erations:+-*/^ArrayOperations:.*./..^Transpose:’.’LogicalOperations:==~=2.Functionssincostan,sinhcoshtanh,asinacosatansqrtexplogconjrealimagabsdiagtriutrilinvdetrankpolyeigSymbolicAlgebra3.PrecisionControl1)ArithmetictypesinSMTNumeric:MATLABfloating-pointarithmeticRational:Maple'sexactsymbol
4、icarithmeticVPA:Maple'svariable-precisionarithmetic2)PrecisionControldigits(n):Aglobalparameter,anditsdefaultvalueis32vpa(s,n):Variableprecisionarithmetic3)ComparingdifferenttypesSymbolicAlgebraSymbolicAlgebra4.SymbolicandNumericConversions1)NumerictoSymbolicsym,vpa2)SymbolictoNumericN=double(
5、S)N=numeric(S)evalSymbolicExpressionOperationsTodeterminewhatsymbolicvariablesarepresentinanexpression,usethefindsymcommand.findsym(expression,n)2.SimplificationsprettyPrettyprintsymbolicexpressionscollectCollectcoefficientsexpendSymbolicexpansionhornerHornerpolynomialrepresentationfactorPrime
6、factorssimpleSearchforasymbolicexpression'ssimplestformsimplifySimplifyrepresentations3.GetNumeratoranddenominator[n,d]=numden(f)SymbolicExpressionOperations4.SubstitutionsTwofunctionsforsymbolicsubstitution:subexprandsubssubexpr(s,s1)subs(s)subs(s,new)sub(s,old,new)5.Inversefunctionfinverse(f
7、,v)6.Compositioncompose(f,g)compose(f,g,z)compose(f,g,x,z)compose(f,g,x,y,z)7.ConversionSym2polySymbolic-to-numericpolynomialconversionPoly2symPolynomialcoefficientvectortosymbolicpolynomialSymbolicCalculus1.Limits2.DifferentiationSymbo