필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Calculate complicated integral many time

조회 수: 2 (최근 30일)
KOZI
KOZI 2018년 11월 1일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello every body. I am trying to integrade a complicated function but with command int, it takes for ever.My code is:
syms x z th1;
y=0;
r=(x^2 + y^2 + z^2)^0.5;
th=acos(z/r);
fh=atan(y/x);
d=2;
a=1;
d1=(a^2)/d;
L=1.5;
R1=(r^2 + d^2 - 2*r*d*(cos(th)*cos(th1) + sin(th)*sin(th1)))^0.5;
R2=(r^2 + d1^2 - 2*r*d1*(cos(th)*cos(th1) + sin(th)*sin(th1)))^0.5;
F1=d/R1;
F2=-(a/R2);
f=F1+F2;
int(f,th1,-L/d,L/d)
I want to compute it and then take the gradient of that.But as long as i wait it does nothing. I dont know anything about matlab, i just need the result.It is very important to calculate it because without it i cant do nothing. I have also have to use surface function,contour function in the above result. Thanks in advance

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by