How to use Euler method to solve the DE一階微分方程,y' = y+hF(x, y),(Cpp code), Python code to analyze (py_code)(py_code_v2),AI LSTM jupyter code (lstm_code)
// Eulers Method to solve a differential equation
#include<iostream>
#include<iomanip>
#include<cmath> // math
#define hmt 1000 // run steps
using namespace std;
void spring( double x, double y, double *dxdt,double *dydt) // spring DEs