summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.13/Ex2_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '2409/CH2/EX2.13/Ex2_13.sce')
-rwxr-xr-x2409/CH2/EX2.13/Ex2_13.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2409/CH2/EX2.13/Ex2_13.sce b/2409/CH2/EX2.13/Ex2_13.sce
new file mode 100755
index 000000000..e99472444
--- /dev/null
+++ b/2409/CH2/EX2.13/Ex2_13.sce
@@ -0,0 +1,14 @@
+
+//Variable Declaration
+M=205 //Mean anomaly(degrees)
+e=0.0025 //Eccentricity
+E=%pi //Initial guess value for eccentric anomaly
+
+//Calculation
+
+function [y] = f(E)
+ y=M-E+e*sin(E)
+endfunction
+E=fsolve(3.142,f)
+
+printf("The Eccentric anomaly is: %.4f degrees",E)