代码搜索:ODE
找到约 2,918 项符合「ODE」的源代码
代码结果 2,918
www.eeworm.com/read/407519/2263107
h ode.h
// Copyright (C) 2003-2008 Johan Jansson and Anders Logg.
// Licensed under the GNU LGPL Version 2.1.
//
// First added: 2003-10-21
// Last changed: 2008-04-08
#ifndef __ODE_H
#define __ODE_H
#incl
www.eeworm.com/read/407519/2263151
cpp ode.cpp
// Copyright (C) 2003-2008 Johan Jansson and Anders Logg.
// Licensed under the GNU LGPL Version 2.1.
//
// First added: 2003-10-21
// Last changed: 2008-04-22
#include
#
www.eeworm.com/read/432936/8561681
m ode_weight.m
% ode_weight.m
% 求解加权函数微分方程组
m1=0.1;m2=0.1;L=1;g=9.81;
% 微分方程的参数
tspan=linspace(0,4,25);
y0=[0;4;2;20;-pi/2;2];
options=odeset('Mass',@mass);
% 求解加权函数微分方程组
[t,y]=ode45(@massode,tspan,y0,option
www.eeworm.com/read/432936/8561891
m ode_options.m
% ode_options.m
% 绝对误差和相对误差的影响
tspan=[0 20];
yo=[2;0];
mu=10;
options=odeset('AbsTol',1e-12,'RelTol',1e-6);
[t_ode45,y_ode45]=ode45(@vdpol,tspan,yo,options,mu);
disp('ode45时间点数目:');
t_45=lengt
www.eeworm.com/read/432936/8561957
asv ode_weight.asv
% ode_weight.m
% 求解加权函数微分方程组
m1=0.1;m2=0.1;L=1;g=9.81;
% 微分方程的参数
tspan=linspace(0,4,25)l
y0=[0;4;2;20;-pi/2;2];
options=odeset('Mass',@mass);
% 求解加权函数微分方程组
theta=y(1,5);X=y(1,1);Y=y(1,3);
xva
www.eeworm.com/read/287361/8690128
m ode_jacob.m
function Jcb = ode_jacob(t,X,P)
Jcb=zeros(3);
Jcb(1,1)=-P(3);
Jcb(1,2)=P(3);
Jcb(1,3)=0;
Jcb(2,1)=-X(3)+P(1);
Jcb(2,2)=-1;
Jcb(2,3)=-X(1);
Jcb(3,1)=X(2);
Jcb(3,2)=X(1);
Jcb(3,3)=-P(2);
www.eeworm.com/read/287361/8690131
m ode_lin.m
function [f] = ode_lin( t, X, P, n, neq, n_exp )
f=zeros(neq,1);
f(1,1)=-P(3)*(X(1)-X(2));
f(2,1)=-X(1)*X(3)+P(1)*X(1)-X(2);
f(3,1)=X(1)*X(2)-P(2)*X(3);
Jcb=zeros(3);
Jcb(1,1)=-P(3);
Jcb(1,2)=
www.eeworm.com/read/287361/8690145
m ode78.m
function [tout,xout] = ode78(odefun,tspan,x0,options,varargin)
% ODE78 is a realization of explicit Runge-Kutta method.
% Integrates a system of ordinary differential equations using
% 7 th order Fe
www.eeworm.com/read/287361/8690155
m ode87.m
function [tout,xout] = ode87(odefun,tspan,x0,options,varargin)
% ODE87 is a realization of explicit Runge-Kutta method.
% Integrates a system of ordinary differential equations using
% 8-7 th order
www.eeworm.com/read/383321/8955239
cpp ode_rungekuttavariationalstep.cpp
//ODE_RungeKuttaVariationalStep.cpp
//变步长积分龙格-库塔法
#include //输入输出流头文件
#include "OrdinaryDifferentialEguation.h" //求解常微分方程(组)头文件
using namespace std; //名字空间
void main(