summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.11/Ex2_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '2409/CH2/EX2.11/Ex2_11.sce')
-rwxr-xr-x2409/CH2/EX2.11/Ex2_11.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2409/CH2/EX2.11/Ex2_11.sce b/2409/CH2/EX2.11/Ex2_11.sce
new file mode 100755
index 000000000..37a8c5a0d
--- /dev/null
+++ b/2409/CH2/EX2.11/Ex2_11.sce
@@ -0,0 +1,14 @@
+
+//Variable Declaration
+
+JDref=2415020 //Reference Julian days
+JC=36525
+JD=2451897.0417 //Julian days with reference from Example 2.10
+
+//Calculation
+
+T=(JD-JDref)/JC //Time in julian Centuries
+
+//Result
+
+printf("The time for given date is : %.8f Julian Centuries",T)