Update Tutorial.md

This commit is contained in:
jmpenn 2021-03-30 10:39:30 -05:00 committed by GitHub
parent cfc7210f52
commit 334f8859da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -533,7 +533,7 @@ The listing below is a simulation of a relatively small asteroid flying past the
<a id=listing-Flyby.cpp></a>
### Listing - Flyby.cpp
```
```C++
#include <math.h>
#include <stdio.h>
#include "SAIntegrator.hh"
@ -781,7 +781,7 @@ A function of type **RootErrorFunc** should:
## Side Note 1
```integ.integrate()``` is a convenience function. It's implemented as simply:
```
```C++
void SA::Integrator::integrate() {
load();
step();
@ -792,7 +792,7 @@ so,
```integ.integrate();``` could be replaced with:
```
```C++
integ.load();
integ.step();
integ.unload();
@ -800,4 +800,4 @@ so,
with identical results.
Rather than constantly unloading and then reloading our last result, we load from One reason is ```load_from_outState()```.
``
``