Mathematica Mathematica: draw a double integral

  • Thread starter matinking
  • Start date
17
0
I've written a matlab m-file to draw a double integral as below.My problem is how to draw a double integral when the variables are located in the bounds of the integral not under its operator!!!!!!!!!!!
m-file:
tetha = pi/4;
lamb = -1;
h = 4;
tetha0 = 0;
syms x y l

n = [h.*((cos(tetha)).^2)./sin(tetha); h.*abs(cos(tetha)); 0];
ft = ((tetha - pi/2)./sin(tetha)).^4;
Rt = [cos(tetha) -sin(tetha); sin(tetha) cos(tetha)];
zt = [cos(tetha0) -sin(tetha0); sin(tetha0) cos(tetha0)];
lt = [x;y];

integrand = @(x,y)(ft.*h.*((abs(cos(tetha)).* (x.*cos(tetha)-y.*sin(tetha)))-((cos(tetha)).^2/sin(tetha)).*(x.*sin(tetha)+y.*cos(tetha))));
PhiHat = @(a,b)(dblquad(integrand,0,a,0,b));
ezsurfc(PhiHat,[0,5,0,5])
 

Want to reply to this thread?

"Mathematica: draw a double integral" You must log in or register to reply here.

Related Threads for: Mathematica: draw a double integral

Replies
0
Views
2K
Replies
0
Views
1K
Replies
0
Views
4K
Replies
0
Views
3K
Replies
0
Views
5K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top