mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-08 04:59:21 +08:00
fix cpplint issues - lines 117 and 124
This commit is contained in:
@@ -113,8 +113,8 @@ double forward_euler(double dx, double x0, double x_max,
|
||||
/* start integration */
|
||||
std::clock_t t1 = std::clock();
|
||||
double x = x0;
|
||||
do // iterate for each step of independent variable
|
||||
{
|
||||
|
||||
do { // iterate for each step of independent variable
|
||||
if (save_to_file && fp.is_open()) {
|
||||
// write to file
|
||||
fp << x << ",";
|
||||
|
||||
@@ -121,8 +121,7 @@ double midpoint_euler(double dx, double x0, double x_max,
|
||||
/* start integration */
|
||||
std::clock_t t1 = std::clock();
|
||||
double x = x0;
|
||||
do // iterate for each step of independent variable
|
||||
{
|
||||
do { // iterate for each step of independent variable
|
||||
if (save_to_file && fp.is_open()) {
|
||||
// write to file
|
||||
fp << x << ",";
|
||||
|
||||
@@ -120,8 +120,7 @@ double semi_implicit_euler(double dx, double x0, double x_max,
|
||||
/* start integration */
|
||||
std::clock_t t1 = std::clock();
|
||||
double x = x0;
|
||||
do // iterate for each step of independent variable
|
||||
{
|
||||
do { // iterate for each step of independent variable
|
||||
if (save_to_file && fp.is_open()) {
|
||||
// write to file
|
||||
fp << x << ",";
|
||||
|
||||
Reference in New Issue
Block a user