0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Julia 言語公式ではなくチャッピーでスクレイピングしたらバグが解決した

0
Posted at

Julia (プログラミング言語)でエラーが出ました。テストコードにルンゲクッタ法 (RK4) が必要でした。

julia> OrdinaryDiffEq.RK4() ERROR: UndefVarError: RK4 not defined in OrdinaryDiffEq Suggestion: check for spelling errors or missing imports. Stacktrace:

公式を何度読んでも RK4 がパッケージにあると書いてあるんですよ。

OrdinaryDiffEq.jl: ODE solvers and utilities · OrdinaryDiffEq.jl https://docs.sciml.ai/OrdinaryDiffEq/stable/

ODE Solvers · DifferentialEquations.jl https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/

でも何度やってもnot found エラーが出るのでAIでスクレイピングすることにしました。

・まずYahoo・Google、検索してもダメ

・Claude --- RK4 があるはずだが小文字にしたらどうかと頓珍漢なことを出力し出す。

・Gemini --- ほぼGoogleなのでClaudeと同じくだめ。

・ChatGPT --- 正しい答えを出してくれました。なんと別のパッケージに分離されたようです。

コードの説明もチャットの最後にあります。

解決法:

using Pkg
Pkg.add("OrdinaryDiffEqLowOrderRK")

現代ではデータベースのあり方も AI が変えていきそうです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?