# BifurcationKit.jl: Example-1: Method Error

**URL:** <https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936>\
**Category:** Specific Domains\
**Tags:** question\
**Created:** [December 17, 2024, 8:13pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936 "2024-12-17T20:13:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domenico\_Lahaye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/domenico_lahaye/32/203728_2.png) [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Post date:** [December 17, 2024, 8:13pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936/1 "2024-12-17T20:13:48Z")

</div>

Very naively (and after a long day) installing BifurcationKit.jl and trying Example-1

```julia
F(x, p) = @. p[1] + x - x^3/3
prob = BifurcationProblem(F, [-2.], [-1.], 1; record_from_solution = (x,p; k...) -> x[1])

```

I get

```julia
MethodError: no method matching BifurcationProblem(::BifFunction{typeof(F), BifurcationKit.var"#8#24", Nothing, BifurcationKit.var"#6#22", Nothing, BifurcationKit.var"#11#28"{BifurcationKit.var"#d1Fad#26"}, BifurcationKit.var"#13#30", BifurcationKit.var"#15#32", BifurcationKit.var"#17#34", Bool, Float64}, ::Vector{Float64}, ::Vector{Float64}, ::Int64, ::typeof(BifurcationKit.plot_default), ::var"#7#9")
Closest candidates are:
  BifurcationProblem(::Tvf, ::Tu, ::Tp, ::Tl, ::Tplot, ::Trec) where {Tvf, Tu, Tp, Tl<:Lens, Tplot, Trec} at ~/.julia/packages/BifurcationKit/5kgAI/src/Problems.jl:133
  BifurcationProblem(::Any, ::Any, ::Any, ::Any; jvp, vjp, J, Jᵗ, d2F, d3F, issymmetric, record_from_solution, plot_solution, delta, inplace) at ~/.julia/packages/BifurcationKit/5kgAI/src/Problems.jl:178
  BifurcationProblem(::Any, ::Any, ::Any) at ~/.julia/packages/BifurcationKit/5kgAI/src/Problems.jl:178

Stacktrace:
 [1] BifurcationProblem(_F::typeof(F), u0::Vector{Float64}, parms::Vector{Float64}, lens::Int64; jvp::Nothing, vjp::Nothing, J::Nothing, Jᵗ::Nothing, d2F::Nothing, d3F::Nothing, issymmetric::Bool, record_from_solution::Function, plot_solution::typeof(BifurcationKit.plot_default), delta::Float64, inplace::Bool)
   @ BifurcationKit ~/.julia/packages/BifurcationKit/5kgAI/src/Problems.jl:215
 [2] top-level scope
   @ In[10]:2

```

What do I overlook here?

---

<div class="post-metadata">

**Author:** ![Domenico\_Lahaye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/domenico_lahaye/32/203728_2.png) [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Post date:** [December 17, 2024, 8:20pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936/2 "2024-12-17T20:20:57Z")

</div>

Was using Julia 1.8.

Problem disappears on Julia 1.10.

Apologies for the overhead.

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [December 17, 2024, 8:34pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936/3 "2024-12-17T20:34:21Z")

</div>

Out of curiosity, why did you say “after a long day”. BK was difficult to install?

---

<div class="post-metadata">

**Author:** ![Domenico\_Lahaye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/domenico_lahaye/32/203728_2.png) [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Post date:** [December 17, 2024, 9:06pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-example-1-method-error/123936/4 "2024-12-17T21:06:59Z")

</div>

Negative. Install was a breeze. Today had 4 hours of teaching.
