Error in solving double integration
Show older comments
Hello all i have been trying to solve this double integration with respect to x and y . i have defined all the input parameters and used syms for unknown variables x and y
Problem is that it is not executing fun2 in code and showing error please help me correct the syntax and logic if possible
Code is given below
i=input('\n Input value of i from 1 to infinity : ' );
j=input('\n Input value of j from 1 to infinity : ' );
L1=input('\n Input value of lenth 1 x direction of plate ');
L2=input('\n Input value of lenth 2 y direction of plate ');
h=input('\n Input value of plate thickness ');
a=input('\n Input value of half crack length ');
b=input('\n Input value of angle of crack ');
d=input('\n Input value of crack depth ') ;
u=input('\n Input value of poissons ratio of plate material ');
E=input('\n Input value of Youngs modulus of plate material ');
p=input('\n Input value of density of plate material ');
Cbt=-2.216;
Cbb=-4.4277;
Ctt=11.4870;
z=d/h
Att=(z^2)*Ctt*(z^2)
Abb=(z^2)*Cbb*z
Abt=(z^2)*Cbt*z
D=(E*(h^3))/(12*(1-(u^2)))
syms x
syms y
X=sin((i*3.14*(x))/L1)
Y=sin((i*3.14*(y))/L2)
Xi=diff(X)
Yi=diff(Y)
Xii=diff(Xi)
Yii=diff(Yi)
Xiii=diff(Xii)
Yiii=diff(Yii)
Xiv=diff(Xiii)
Yiv=diff(Yiii)
fun1= (((p*h)/D)*((X^2)*(Y^2)))
fun2= {{{((Xiv)*Y)+(2*(Xii)*(Yii)+(Yiv)*X)}-{((a)*(1+cosd(b))*((Yiv*X)+(u(Xii)*(Yii))))/(((((3)*((Abt/6)+Abb)*(3+u)*(1-u)))*h)+(2*a))}+{(((2*a)*sind(b))*(((Xi)*(Yiii))+(u(Xiii)*(Yi))))/(((3)*((Cbt/6)+Cbb)*(1+u)*h)+(2*a))}}*X*Y}
M=dblquad(fun1,0,L2,0,L1);
M=dblquad(fun2,0,L2,0,L1);
Accepted Answer
More Answers (0)
Categories
Find more on Formula Manipulation and Simplification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!