#include #include #include #include #include #include #include int sgn(double x) { int temp; if(x>0)temp=1; …
Runge函数 源代码
汇集 Runge函数 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! Runge-Kutta算法 !!!!!!! !!!! …
//黄泳晞 2003402054529 四阶Runge-Kutta算法 //按照课本P192页例题 #include #include class Runge_Kutta { public: float F(floa…
#include #include #include #include #include #include #include int sgn(double x) { int temp; if(x>0)temp=1; …
#include #include #include #include #include #include #include int sgn(double x) { int temp; if(x>0)temp=1; …
#include "iostream.h" #include "math.h" rungekutta(double h, double xstart, double y, double xend) { double x = xstart, k1,…
#include #include #define n 100 double h,k1,k2,k3,k4; double y[n]={0},x[0]={0}; void init() { FILE *f; f=fopen("rk…
%4级runge-kutta法编写成子函数 %函数的输入变量为:T为x的取值上限,n为把[0,T]区间等份的数目,u0为方程的初始值 function u=rk(T,n,u0) h=T/n; u=[]; u(1)=u0; for i=1:n-1 …
函数 WPARENT([WindowName]) 功能 父窗函数