trouble in integral solving [SOLVED]
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi dear friends.
I am to compute biot-savart law integration form to find magnetic field. I am stucked in integrating. I get some hypergeom and limit functions etc. this my code:
clear all
I = 8e-3; % A in z direction
syms z
P = [2 3 4]; % measure point
dl = [0 0 1]; % distance diferential segment
ar = [2 3 (4-z)]; % unit vector through line segment to point
R = sqrt(ar(1)^2 + ar(2)^2 + ar(3)^2); % radial distance from the line
intIcerik = ((cross(dl,ar)) ./ (R^(3/2)));
fun = intIcerik(1); % fun = intIcerik(2) and fun = intIcerik(3); also needed x,y,z components
q = int(fun,[-Inf Inf])
% H = -294ax + 196ay mA/m is the answer
so how can I fix it. thanks in advance.
댓글 수: 0
답변 (1개)
Torsten
2019년 3월 13일
편집: Torsten
2019년 3월 13일
q = vpa ( int(fun,[-Inf Inf]) )
댓글 수: 2
Torsten
2019년 3월 14일
From Octave I get
q = int(fun,[-Inf Inf]);
q = (sym)
3/4 ____
-3*13 * \/ pi * Gamma(1/4)
----------------------------------------
13*Gamma(3/4)
qq = vpa(q)
qq = (sym) -8.2852884441119270961330163677715
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!