代码搜索:kutta
找到约 406 项符合「kutta」的源代码
代码结果 406
www.eeworm.com/read/162290/10318636
m kutta.m
%四阶龙格库塔方法
function[T,U]=kutta(a,b,h,c)
%计算点的个数
n=round((b-a)/h)+1;
%定义T,U的维数
t=zeros(n,1);
u=zeros(n,1);
%微分方程的初始条件
t(1)=a;
u(1)=c;
%显示微分方程的初始条件
str=sprintf('t0=%g, u0=%g\n',t(1),u(1));
di
www.eeworm.com/read/387757/8656065
txt runge-kutta.txt
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! Runge-Kutta算法 !!!!!!!
!!!! !!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
www.eeworm.com/read/386257/8759225
m myrunge_kutta.m
function [x,y] = MyRunge_Kutta(fun,x0,xt,y0,PointNum,varargin)
%Runge-Kutta 方法解微分方程形为 y’(t) = f(x,y(x))
%此程序可解高阶的微分方程。只要将其形式写为上述微分方程的向量形式
% x范围为[x0,xt],初值为 y0, PointNum为离散点数,varargin为可选输入项可传适当参数给函数
www.eeworm.com/read/419798/10838135
suo runge_kutta.suo
www.eeworm.com/read/419798/10838137
sln runge_kutta.sln
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Runge_Kutta", "Runge_Kutta\Runge_Kutta.vcproj", "{E8688229-D55
www.eeworm.com/read/419798/10838144
cpp runge_kutta.cpp
#include
using namespace std;
#include
double f(double t,double y)
{
return -0.6*0.1*0.1*sqrt(64.2)*pow(y,-1.5);
}
double rungekutta(double a,double b,int N,double alpha)
{
www.eeworm.com/read/419798/10838150
obj runge_kutta.obj
www.eeworm.com/read/419798/10838164
ilk runge_kutta.ilk
www.eeworm.com/read/419798/10838166