Solving Lorenz equation using RK-4 in C++
问题 I wrote the code to solve Lorenz equations using RK-4 method in C++. I have to plot the attractor plot and I have some difficulty in solving the 3 first order coupled differential equation using RK-4 method. Here is my code: /* Solving 3 coupled first order differential equations using RK4 for the Lorentz system dxdt = sig*(y - x) {f} dydt = x*(rho - z) - y {g} dzdt = x*y - bet*z {k} */ #include<iostream> #include<cmath> #include<fstream> #include <iomanip> using namespace std; double sig =