回答編集履歴
1
追記
test
CHANGED
@@ -51,3 +51,49 @@
|
|
51
51
|
plot(U,(x,-0.005,0.005))
|
52
52
|
|
53
53
|
```
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
追記
|
60
|
+
|
61
|
+
係数を簡略化して置換積分すると、どうにか計算可能。
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
```python3
|
66
|
+
|
67
|
+
from sympy import Symbol, integrate, cos, sin, sqrt
|
68
|
+
|
69
|
+
x = Symbol('x')
|
70
|
+
|
71
|
+
s = Symbol('s')
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
t = Symbol('t')
|
76
|
+
|
77
|
+
a = 1 # 9.929180321080256*10**6
|
78
|
+
|
79
|
+
b = 0 # 0.0625
|
80
|
+
|
81
|
+
# t = b+(x-s)**2.0
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
dsdt = -1/2/sqrt(t) # 置換積分用 ds/dt
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
expr=cos(a*sqrt(t))/t*dsdt
|
90
|
+
|
91
|
+
S=integrate(expr, t)
|
92
|
+
|
93
|
+
S
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
![S](a719bacf30fe4c7ceeef29ea909f32e0.png)
|