1. simple() simplify(S)
MatLa simple() simplify(S). simplify(S) S, , , . , simpl(S), , , . , . :
>>syms a b x >>V = [sin()^2 + s()^2 log(a*b)]; >>simplify(V) ans = [ 1, log(a*b)] >>simplify((a^2 - 2*a*b + b^2) / (a - b)) ans = a b >> |
2. expand(S)
( ) expand(S). , S. , . . . :
>>syms a b x >>S=[(x + 2)*(x + 3)*(x + 4) sin(2*x)]; >>expand(S) ans = [ x^3 + 9*x^2 + 26*x + 24, 2*sin(x)*cos(x)] >>expand(sin(a + b)) ans = sin(a)*cos(b) + cos(a)*sin(b) >>expand((a + b)^:3) ans = ^3 + 3*^2* + 3**^2 + ^3 >> |
3. subs()
. subs(), :
subs(S) S , MatLa.
subs(S,NEW) S NEW.
subs (S, OLD, NEW) OLD NEW S. OLD NEW . S OLD - , a NEW , .
>> syms a b x >>subs(x - y, y, l) ans = x - l >> subs(sin(x) + cos(y), [x,y], [a,b]) ans = sin(a)+cos(b) >> |
4. finverse
, f. Symbolic inverse:
g = finverse(f) , f. , f , ''. g(f(x)) = .
g = finverse(f,v) , f, v, g(f(v)) = v. , f .
>> sym ; >> finverse(sinh(x)) ans = asnnh(x) >> finverse(exp(x)) ans = log(x) |
5. compose()
compose(f, g) f(g(y)), f = f(x) g = g(y). findsym().
|
|
6. taylor taylor ()