Skip to content
Snippets Groups Projects
Commit 3fba7c3d authored by nguyed99's avatar nguyed99
Browse files

update README instruction

parent cace8365
No related merge requests found
Checking pipeline status
...@@ -52,7 +52,7 @@ For live experience (meaning you enter the container), run: ...@@ -52,7 +52,7 @@ For live experience (meaning you enter the container), run:
If you change code in `src`, you need to rebuild the image with `bash build/build-image.sh`. The `src` folder can also be mounted in the image, but the assumption is that life is already difficult as it is... If you change code in `src`, you need to rebuild the image with `bash build/build-image.sh`. The `src` folder can also be mounted in the image, but the assumption is that life is already difficult as it is...
### interactive simulation ### interactive simulation
In the `public` directory
- Run `python -m http.server` - Run `python -m http.server`
- Go to `http://localhost:8000/public` - Go to `http://localhost:8000/public`
......
...@@ -102,7 +102,7 @@ def replot_canvas(): ...@@ -102,7 +102,7 @@ def replot_canvas():
COM = np.sum(globals['m']) * (globals['m'][0] * x[0, :] + globals['m'][1] * x[1, :] + globals['m'][2] * x[2, :]) COM = np.sum(globals['m']) * (globals['m'][0] * x[0, :] + globals['m'][1] * x[1, :] + globals['m'][2] * x[2, :])
obs = document.getElementById("angular_mom") obs = document.getElementById("obs")
s = f"L0 = {L0:.6f}Ẑ<br>L1 = {L1:.6f}Ẑ<br>L2 = {L2:.6f}Ẑ<br>L_tot = {L_tot:.6f}Ẑ<br><br>E = {E():.6f}<br> COM = {COM[0]:.6f}X̂, {COM[1]:.6f}Ŷ<br> P_tot = {P_tot[0]:.6f}X̂, {P_tot[1]:.6f}Ŷ" s = f"L0 = {L0:.6f}Ẑ<br>L1 = {L1:.6f}Ẑ<br>L2 = {L2:.6f}Ẑ<br>L_tot = {L_tot:.6f}Ẑ<br><br>E = {E():.6f}<br> COM = {COM[0]:.6f}X̂, {COM[1]:.6f}Ŷ<br> P_tot = {P_tot[0]:.6f}X̂, {P_tot[1]:.6f}Ŷ"
obs.innerHTML = s obs.innerHTML = s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment