Kamis, 31 Maret 2011

Contoh Kerja Matlab

h = cos(x)^4*sin(x)^6

h =

cos(x)^4*sin(x)^6

>> pretty(h)

4 6
cos(x) sin(x)
>> pretty(diff(h,2))

2 8 4 6 6 4
12 cos(x) sin(x) - 58 cos(x) sin(x) + 30 cos(x) sin(x)


>> pretty(sin(x)^3 / (x^2 - 1))


3
sin(x)
-------
2
x - 1


g = sin(x)^3 / (x^2 - 1)

g =

sin(x)^3/(x^2-1)

>> pretty(g)

3
sin(x)
-------
2
x - 1



diff(g)

ans =

3*sin(x)^2/(x^2-1)*cos(x)-2*sin(x)^3/(x^2-1)^2*x

>> pretty(diff(g))

2 3
sin(x) cos(x) sin(x) x
3 -------------- - 2 ---------
2 2 2
x - 1 (x - 1)




m = x^3*(x^2 + 1)/(x-4)

m =

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

>> pretty(m)

3 2
x (x + 1)
-----------
x - 4
>> pretty(diff(m))

2 2 4 3 2
x (x + 1) x x (x + 1)
3 ----------- + 2 ----- - -----------
x - 4 x - 4 2
(x - 4)
Read More..

Template by : kendhin x-template.blogspot.com