Hello everyone
I want to numerically integrate a function
1-x^2-y^2
Where x^2+y^2<=1 circular area
What I tired so far is First try:
quad2d(@(x,y) 1-x^2-y^2, -1,1,-1,sqrt(1-x^2))Second try:syms x yint(int(1-x^2-y^2,y, -1,sqrt(1-x^2))x,-1,1)
How can I use sqrt(1-x^2) as the boundary of the integral for y?
I know this can be done with r and theta but I want to calculate the integral by cartesian coordinates.
Could someone offer a solution?
Best Answer