We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried README example w/ Julia v 1.6.2:
julia> using EconPDEs julia> stategrid = (;μ = range(-0.05, 0.1, length = 500)) (μ = -0.05:0.0003006012024048096:0.1,) julia> solend = (; V = ones(500)) (V = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 … 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],) julia> function f(state::NamedTuple, sol::NamedTuple) μbar = 0.018 ; ϑ = 0.00073 ; θμ = 0.252 ; νμ = 0.528 ; ρ = 0.025 ; ψ = 1.5 ; γ = 7.5 (; μ) = state (; V, Vμ_up, Vμ_down, Vμμ) = sol # note that pdesolve will directly compute the derivatives of the valuefunction. # up and down correspond to the upward and downard derivative obtained by first difference Vμ = (μ <= μbar) ? Vμ_up : Vμ_down Vt = - (1 - ρ * V + (1 - 1 / ψ) * (μ - 0.5 * γ * ϑ) * V + θμ * (μbar - μ) * Vμ + 0.5 * νμ^2 * ϑ * Vμμ + 0.5 * (1 / ψ - γ) / (1- 1 / ψ) * νμ^2 * ϑ * Vμ^2/V) (; Vt) end ERROR: syntax: invalid assignment location "; μ" around REPL[7]:3 Stacktrace: [1] top-level scope @ REPL[7]:1 julia>
The text was updated successfully, but these errors were encountered:
solved with 9d7ecb7
Sorry, something went wrong.
No branches or pull requests
I tried README example w/ Julia v 1.6.2:
The text was updated successfully, but these errors were encountered: