[問題] 定積分問題(Explicit integral could not be found)已回收
clear all
syms r1 r2 t1 t2;
R=1;
eq=((r1^2+r2^2-2*r1*r2*cos(t1-t2))^(0.5))*r1*r2;
int(int(int(int(eq,t1,0,2*pi),t2,0,2*pi),r1,0,R),r2,0,R)
以上是我的程式碼,
eq是用來估算"在一個單位圓內任取兩點, 這兩點的平均距離",
我的方法就是用先取一點(r1,t1), r1是長度, t1是角度, 同理取另一點(r2,t2),
然後用內積公式來求兩點距離,
然後因為要求平均距離, 所以針對四個變數的各範圍做積分.
我得到錯誤訊息是
Warning: Explicit integral could not be found.
然後我有試過只寫
int(eq,t1,0,2*pi)
也是得到相同錯誤訊息.
請幫忙看看為何這樣會積不出來.
~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.25.31