欧勒,赫恩和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?

在 f (x,y) 框中输入 x + y.

现在我们要走几步?

1 to 100,000.

这里是不是说了什么?

它们是非常好的RK4溶液.

完全免费无费用,无需注册
文件保持私密一切都在您的浏览器中运行
用您的语言轻松使用提供多种语言