We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc9452 commit d87309aCopy full SHA for d87309a
docs/src/pinn/wave.md
@@ -159,6 +159,9 @@ a_n(k) = 2 / (L * μ_n(k)) * -(L^2 * (((2 * π * L - π) * c * k * sin(π * k) +
159
# Line plots
160
analytic_sol_func(t,x) = sum([sin((k * π * x) / L) * exp(-v^2 * c * t / 2) * (a_n(k) * sin(μ_n(k) * t) + b_n(k) * cos(μ_n(k) * t)) for k in 1:2:100]) # TODO replace 10 with 500
161
162
+using Plots
163
+using Printf
164
+
165
anim = @animate for t ∈ ts
166
@info "Time $t..."
167
sol = [analytic_sol_func(t, x) for x in xs]
0 commit comments