ʵÑéMATLAB·ûºÅÔËËã ÏÂÔØ±¾ÎÄ

2 2 2 x exp(-t) + (2 x + 1) exp(-t) + (x + 1) x

×¢ÒâÓëÖ±½ÓÊä³öµÄf1ºÍf2¶Ô±È¡£

?¶àÏîʽչ¿ª(expand).Õ¹¿ª(x?1)12³Éx²»Í¬ÃݴεĶàÏîʽ¡£

>> clear all >> syms x; >> f=(x-1)^12;

>> pretty(expand(f)) >> syms x; >> f=(x-1)^12;

>> pretty(expand(f))

12 11 10 9 8 7 6 1 + x - 12 x + 66 x - 220 x + 495 x - 792 x + 924 x - 792 x

4 3 2 + 495 x - 220 x + 66 x - 12 x

Òòʽ·Ö½â(factor)¡£½«±í´ïʽx12?1×÷Òòʽ·Ö½â¡£

>> clear all

>> syms x;f=x^12-1; >> pretty(factor(f)) >> clear all

>> syms x;f=x^12-1; >> pretty(factor(f))

2 2 2 4 (x - 1) (1 + x + x) (1 + x) (1 - x + x ) (x + 1) (x - x + 1)

»¯¼ò(simple»òsimplify).

½«º¯Êýf?1x3?612x2?x?8»¯¼ò¡£ >> clear all,syms x;f=(1/x^3+6/x^2+12/x+8)^(1/3); >> gi=simple(f)

>> clear all,syms x;f=(1/x^3+6/x^2+12/x+8)^(1/3); >> gi=simple(f)

gi =

13 / 18

5 2 (2*x+1)/x

>> g2=simplify(f)

g2 =

((2*x+1)^3/x^3)^(1/3)

6. ·ûºÅ±í´ïʽµÄ±äÁ¿Ìæ»»

subsº¯Êý¿ÉÒÔ¶Ô·ûºÅ±í´ïʽÖеķûºÅ±äÁ¿½øÐÐÌæ»» >> clear

>> f=sym('(x+y)^2+4*x+10') >> f1=subs(f,'x','s') >> f2=subs(f,'x+y','z')

>> clear

>> f=sym('(x+y)^2+4*x+10') f =

(x+y)^2+4*x+10

>> f1=subs(f,'x','s') f1 =

((s)+y)^2+4*(s)+10

>> f2=subs(f,'x+y','z') f2 =

((z))^2+4*x+10

Á·Ï°£º(1) ÒÑÖªf?(ax?bx?c?3)?a(cx?4bx?1)£¬°´ÕÕ×Ô±äÁ¿xºÍ×Ô±äÁ¿a£¬¶Ô±í ´ïʽf·Ö±ð½øÐнµÃÝÅÅÁС£

(2)ÒÑÖª·ûºÅ±í´ïʽf?1?sinx,g?2x?1£¬¼ÆËãx?0.5ʽ£¬fµÄÖµ£»¼ÆË㸴ºÏº¯ Êýf(g(x)). 7. ·ûºÅ¼«ÏÞ¡¢·ûºÅ»ý·ÖÓë΢·Ö

1) Çó¼«ÏÞº¯ÊýµÄµ÷Óøñʽ >> limit(F,x,a) >> limit(F,a) >> limit(F)

>> limit(F,x,a,'right') >> limit(F,x,a,'left') ÀýÒ» >> clear

14 / 18

2222>> f=sym('sin(x)/x+a*x') >> limit(f,'x',0) >> limit(f,'a',0) >> limit(f) >> findsym(f)

>> f=sym('sin(x)/x+a*x') f =

sin(x)/x+a*x

>> limit(f,'x',0) ans = 1

>> limit(f,'a',0) ans = sin(x)/x

>> limit(f) ans = 1

>> fndsym(f)

??? Undefined function or method 'fndsym' for input arguments of type 'sym'.

>> findsym(f) ans = a, x Àý¶þ >> clear

>> f=sym('sqrt(1+1/n)'); >> limit(f,n,inf)

2) Çó»ý·Öº¯ÊýµÄµ÷Óøñʽ

>> int(F) >> int(F,v) >> int(F,a,b) >> int(F,v,a,b)

3) Çó΢·Öº¯ÊýµÄµ÷Óøñʽ >> diff(F) >> diff(F,v) >> diff(F,n) >> diff(F,v,n)

15 / 18

8. ·ûºÅ·½³ÌµÄÇó½â

1) ³£¹æ·½³ÌÇó½âº¯ÊýµÄµ÷Óøñʽ >> g=solve(eq) >> g=solve(eq,var)

>> g=solve(eq1,eq2,...,var1,var2,...,varn)

ÇóÒ»Ôª¶þ´Î·½³Ìax?bx?x?0µÄ½â¡£ÆäÇó½â·½·¨ÓжàÖÖÐÎʽ 2?>> Seq=solve('a*x^2+b*x+c') ?>> Seq=solve('a*x^2+b*x+c=0') ?>> eq='a*x^2+b*x+c'; »ò

>> eq='a*x^2+b*x+c=0'; >> Seq=solve(eq) >> syms x a b c;

>> eq=a*x^2+b*x+c; >> Seq=solve(eq)

>> Seq=solve('a*x^2+b*x+c') Seq =

-1/2*(b-(b^2-4*a*c)^(1/2))/a -1/2*(b+(b^2-4*a*c)^(1/2))/a

>> Seq=solve('a*x^2+b*x+c=0') Seq =

-1/2*(b-(b^2-4*a*c)^(1/2))/a -1/2*(b+(b^2-4*a*c)^(1/2))/a >> eq='a*x^2+b*x+c'; >> eq='a*x^2+b*x+c=0'; >> Seq=solve(eq) Seq =

-1/2*(b-(b^2-4*a*c)^(1/2))/a -1/2*(b+(b^2-4*a*c)^(1/2))/a

>> syms x a b c;

>> eq=a*x^2+b*x+c; >> Seq=solve(eq)

16 / 18