如何求解二阶和二阶微分方程(在python中)?

时间:2017-08-01 11:33:59

标签: python differential-equations

我在宇宙膨胀研究中遇到了二阶和二阶微分方程。完整的方程式非常混乱,所以让我给一个原型:

var DataChart = new XamDataChart();

var xAxis = new CategoryXAxis()
{
    ItemsSource = data,
    Label = "Date"
};
var yAxis1 = new NumericYAxis()
{
    LabelLocation = AxisLabelsLocation.OutsideLeft
};
var yAxis2 = new NumericYAxis()
{
    LabelLocation = AxisLabelsLocation.OutsideRight
};
var series1 = new LineSeries()
{
    XAxis = xAxis,
    YAxis = yAxis2,
    ItemsSource=data,
    ValueMemberPath="Volume"
};
var series2 = new FinancialPriceSeries()
{
    XAxis = xAxis,
    YAxis = yAxis1,
    ItemsSource=data,
    CloseMemberPath="Close",
    OpenMemberPath="Open",
    HighMemberPath="High",
    LowMemberPath="Low"
};

DataChart.Axes.Add(yAxis1);
DataChart.Axes.Add(yAxis2);
DataChart.Axes.Add(xAxis);
DataChart.Series.Add(series1);
DataChart.Series.Add(series2);

我通常在这种情况下做的是要求 Mathematica 来解决它。她通常会解决它。但是,有时mathematica会显示一些错误,例如“x = d时的奇点或刚度”。现在,我试图用一些基本语言解决它们(阅读 python )。但是,我们求解二阶微分方程的方法在这里不适用,即将其写成两个一阶微分方程。任何人都可以为我提供解决问题的算法和/或指导我阅读文献,我可以从中了解更多关于这些方法的知识。

提前致谢。

1 个答案:

答案 0 :(得分:0)

我相信" Newmarks Method"是二阶ODE数值积分的一种应用方法。

https://en.wikipedia.org/wiki/Newmark-beta_method

相关问题