Use MATLAB to solve the following exercise For x 2 and y2 c
Use MATLAB to solve the following exercise.
For x = 2 and y=2, compute the following:
a. 3xy/x-y
b. 3x/2y
c. 3xy/2
d. 5x/5x-1
Solution
a)
syms s(t) f(x,y)
f(x,y) = 3xy/(x-y)
f(2,2)
b)
syms s(t) f(x,y)
f(x,y) = 3x/2y
f(2,2)
c)
syms s(t) f(x,y)
f(x,y) = 3xy/2
f(2,2)
d)
syms s(t) f(x,y)
f(x,y) = 5x/(5x-1)
f(2,2)
