0% found this document useful (0 votes)
54 views5 pages

Assignment 3

The document contains code for symbolic math operations in MATLAB. It defines functions y in terms of x, computes integrals of y, and displays the results. It performs these operations for two different functions of x: y=(4*x - 1)^(1/2) and y=(x+1)*(x^2+2*x+5)^12. The integrals are computed and displayed in simplified symbolic form.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views5 pages

Assignment 3

The document contains code for symbolic math operations in MATLAB. It defines functions y in terms of x, computes integrals of y, and displays the results. It performs these operations for two different functions of x: y=(4*x - 1)^(1/2) and y=(x+1)*(x^2+2*x+5)^12. The integrals are computed and displayed in simplified symbolic form.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

%Viernes, Marben L.

BSCE-4A
%CNSC/CoEng/Cam Prelim/Activity 3
syms x y syms x y
y=sqrt(4*x-1) y=exp(1-x)

y =(4*x - 1)^(1/2) y =

pretty(y)
exp(1 - x)
sqrt(4 x - 1)
pretty(y)
int(y)
exp(1 - x)

ans = int(y)

(4*x - 1)^(3/2)/6 ans =

pretty(ans)
-exp(1 - x)
3/2
(4 x - 1) pretty(ans)
------------ -exp(1 - x)
6
syms x y
y=(x+1)*(x^2+2*x+5)^12

y =

(x + 1)*(x^2 + 2*x + 5)^12

pretty(y)
2 12
(x + 1) (x + 2 x + 5)

int(y)

ans =

x^26/26 + x^25 + (29*x^24)/2 + 148*x^23 + 1175*x^22 + 7634*x^21 + 41899*x^20 + 198308*x^19 + (1642399*x^18)/2 + 3005695*x^17 +
(19590703*x^16)/2 + 28568744*x^15 + 74825258*x^14 + (2292306316*x^13)/13 + 374126290*x^12 + 714218600*x^11 + (2448837875*x^10)/2 +
1878559375*x^9 + (5132496875*x^8)/2 + 3098562500*x^7 + 3273359375*x^6 + 2982031250*x^5 + 2294921875*x^4 + 1445312500*x^3 +
(1416015625*x^2)/2 + 244140625*x

You might also like