Skip to content
Snippets Groups Projects
Commit 7ca79058 authored by Johan Grönqvist's avatar Johan Grönqvist
Browse files

Define variable earlier

parent 6a690cf0
No related merge requests found
...@@ -24,6 +24,9 @@ using LinearAlgebra ...@@ -24,6 +24,9 @@ using LinearAlgebra
using Plots using Plots
using ProgressMeter using ProgressMeter
# %%
ϵ = 1e-4
# %% # %%
function validate(;ζ, ω=1, fixed_P = nothing, ret_P = false) function validate(;ζ, ω=1, fixed_P = nothing, ret_P = false)
...@@ -71,9 +74,6 @@ validate(ζ=.2) ...@@ -71,9 +74,6 @@ validate(ζ=.2)
αs = [validate(ζ=ζ) for ζ in ζs ] αs = [validate(ζ=ζ) for ζ in ζs ]
plot(ζs, αs, label = "", xaxis = "ζ", yaxis = "α") plot(ζs, αs, label = "", xaxis = "ζ", yaxis = "α")
# %%
ϵ = 1e-4
# %% # %%
P = validate(ζ=.1, ret_P=true) P = validate(ζ=.1, ret_P=true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment