summaryrefslogtreecommitdiff
path: root/1172/CH9/EX9.1
diff options
context:
space:
mode:
Diffstat (limited to '1172/CH9/EX9.1')
-rwxr-xr-x1172/CH9/EX9.1/9_1.txt4
-rwxr-xr-x1172/CH9/EX9.1/Example9_1.sce11
2 files changed, 15 insertions, 0 deletions
diff --git a/1172/CH9/EX9.1/9_1.txt b/1172/CH9/EX9.1/9_1.txt
new file mode 100755
index 000000000..aff440139
--- /dev/null
+++ b/1172/CH9/EX9.1/9_1.txt
@@ -0,0 +1,4 @@
+ # Problem 1 #
+Standard formula used
+ M = m - 2.5log(L/L_0)
+ In two days novas brightness is increased by 160000 times nearly
diff --git a/1172/CH9/EX9.1/Example9_1.sce b/1172/CH9/EX9.1/Example9_1.sce
new file mode 100755
index 000000000..5af7d8f50
--- /dev/null
+++ b/1172/CH9/EX9.1/Example9_1.sce
@@ -0,0 +1,11 @@
+clc
+//Given that
+m_i = 15 // initial magnitude of supernova
+m_f = 2 // final magnitude of supernova
+// sample problem 1 page No. 332
+printf("\n # Problem 1 # \n")
+
+printf("Standard formula used \n\t M = m - 2.5log(L/L_0) ")
+del_m = m_i - m_f // calculation of change in magnitude
+brightness_ratio = 100^(del_m/5) // calculation of increment in brightness ratio.
+printf ("\n In two days novas brightness is increased by %d times nearly", ceil(brightness_ratio / 10000)*10000 )