歐勒,赫恩和RK4微分方程式解答器

用歐拉法、休恩法和RK4對y′ = f(x, y)進行數值求解並比較。

在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證

…

使用方法

  1. 1
    第1步:開啟歐勒,赫恩和RK4微分方程式解答器並輸入內容

    輸入數字或文字、新增檔案,或選擇所需選項。不會上傳任何內容:一切都保留在您的瀏覽器中。

  2. 2
    第2步:歐勒,赫恩和RK4微分方程式解答器能做什麼

    用歐拉法、休恩法和RK4對y′ = f(x, y)進行數值求解並比較。.

  3. 3
    第3步:查看結果並比較

    結果會立即顯示。更改一個數值,看看答案如何變化,然後保留符合您情況的數字。

  4. 4
    第4步:複製或儲存

    複製結果或下載。做重要決定前,請向官方來源或專業人士確認。

關於此工具

Enter f(x, y), the starting point (x0, y0), the end x and the number of steps. The calculator solves the initial value problem three ways and lists the values side by side, with the error of Euler's method against a fine RK4 reference.

方法

Euler: y ← y + h f(x, y), first order. Heun (improved Euler): averages the slopes at both ends of the step, second order. RK4: the classical fourth-order Runge–Kutta method with four slope evaluations per step.

精確度

Halving the step roughly halves Euler's error, quarters Heun's and divides RK4's by 16. The reference is RK4 with at least 20 times as many steps. Write the function with x, + − * / ^, parentheses, and sin, cos, tan, asin, acos, atan, exp, ln, log (base 10), sqrt, abs, sinh, cosh, tanh, pi and e. Implicit multiplication such as 2x or 3(x+1) works. Use y for the unknown.

計算示例

For y′ = x + y with y(0) = 1 the exact value at x = 1 is 3.43656. With 10 steps Euler gives 3.18, Heun 3.4177 and RK4 3.4365.

獲得最佳結果的提示

在相信結果之前先檢查每一個輸入項,因為一個錯誤的數字就會改變整個答案。請使用工資單、賬單、證書或合同上的準確數字,並記下計算日期。稅率、門檻和規則會不時變化,因此對於稅費和法律事務,請將結果視為估算,並與本頁註明的官方來源核對。您可以嘗試任意多個方案;不會儲存或傳送任何內容,重新整理頁面會清空輸入。

要點

將此計算器嵌入您的網站

複製此程式碼,即可在您的頁面上顯示計算器。包含指向 shobfree.com 的連結。

常見問題

這兩種方法有何不同?

較高級的方法對相同步 ⁇ 尺寸更準確.

How do I enter y′ = x + y?

Type x + y in the f(x, y) box.

還有多少步?

1 to 100,000.

這份報告是否正確?

No, it is a very fine RK4 solution.

完全免費無費用,無需註冊
檔案保持私密一切都在您的瀏覽器中執行
用您的語言輕鬆使用提供多種語言