正在加载图片...
f=x*(x*(x-6)+12)*t collect(f) collect(f, t) t*x^3-6*t*x^2+12*t*x ans x*(x*(x-6)+12)*t COLLECT Collect coefficients COLLECT(S, v) regards each element of the symbolic matrix s as a polynomial in v and rewrites S in terms of the powers of v COLLECT(S)uses the default variable determined by FINDSYM (4).符号表达式的化简( Simplifying of symbolic expression) 符号表达式的两个化简函数: simplify, simple, simplify:化简函数可用于化简各种表达式 例1:对表达式f=sin(x)+cos2(x)进行化简 SVns X f=sin(x)2+cos(x) 2; simplify(f Ir,how= simple(S)函数可寻找符号表达式S的最简型,r为返回的 简化形式,how为化简过程中使用的主要方法, simple函数综合使用了下 列化简方法: simplify函数对表达式进行化简 eradsimp函数对含根式(surd的表达式进行化简 combine函数对表达式中以求和、乘积、幂运算等形式出现的项 进行合并 collect合并同类项 factor函数实现因式分解 convert函数完成表达式形式的转换f=x*(x*(x-6)+12)*t; collect(f) collect(f,t) ans = t*x^3-6*t*x^2+12*t*x ans = x*(x*(x-6)+12)*t COLLECT Collect coefficients. COLLECT(S,v) regards each element of the symbolic matrix S as a polynomial in v and rewrites S in terms of the powers of v. COLLECT(S) uses the default variable determined by FINDSYM. (4). 符号表达式的化简(Simplifying of symbolic expression) 符号表达式的两个化简函数:simplify, simple , simplify:化简函数,可用于化简各种表达式 例 1:对表达式 f=sin2 (x)+cos2 (x)进行化简. syms x f=sin(x)^2+cos(x)^2; simplify(f) ans = 1 [r,how]=simple(S) 函数可寻找符号表达式 S 的最简型, r 为返回的 简化形式,how 为化简过程中使用的主要方法,simple 函数综合使用了下 列化简方法: *simplify 函数对表达式进行化简 *radsimp 函数对含根式(surd)的表达式进行化简 *combine 函数对表达式中以求和、乘积、幂运算等形式出现的项 进行合并 *collect 合并同类项 *factor 函数实现因式分解 *convert 函数完成表达式形式的转换
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有