Summary Files Commits Branches @commit @diff @stats
path: root / Year 4 / Celestial mechanics / Exercise2.R
diff options
context:
space:
mode:
Commit98056ed8a125233f98492152918d9b1678428f9c (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-06-06 08:57:18 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-06-06 08:57:18 +0300
Files436fc44b04ea69b100fcec3bf148157a8eaa9ea0 /Year 4/Celestial mechanics/Exercise2.R
uni-projects-main.tar
uni-projects-main.tar.gz
uni-projects-main.zip
Parent57b94ba37adf8289ad47066e25f3e885d276cf92 (diff)
cm: Fix formula for q HEAD main
This fix was done with a pen when my work was returned, so I could get an immediate excellent grade, on 28.05.25
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Year 4/Celestial mechanics/Exercise2.R6
diff --git a/Year 4/Celestial mechanics/Exercise2.R b/Year 4/Celestial mechanics/Exercise2.R
index 7646b28..7d5af5e 100644
--- a/Year 4/Celestial mechanics/Exercise2.R
+++ b/Year 4/Celestial mechanics/Exercise2.R
@@ -102,8 +102,8 @@ poincare2 <- function() {
result <- rbind(
result,
- c(L, sqrt(2*(L-G)) * cos(g + theta), sqrt(2*(G-Theta)) * cos(theta),
- l + g + theta, -sqrt(2*(L-G)) * sin(g + theta), sqrt(2*(G-Theta)) * sin(theta))
+ c(L, sqrt(2*(L-G)) * cos(g + theta), sqrt(2*(G-Theta)) * cos(theta),
+ l + g + theta, -sqrt(2*(L-G)) * sin(g + theta), -sqrt(2*(G-Theta)) * sin(theta))
)
}
@@ -112,4 +112,4 @@ poincare2 <- function() {
p(delaunayAtBirth())
p(poincare1())
-p(poincare2()) \ No newline at end of file
+p(poincare2())