Assignment 2
Assignment 2
Assignment 2
Cosmological Constant
Hubble constant
1. Value:
H3
Method: Measured by using a new
calibration of the peak absolute magnitude of
SNe Type Ia based on the Surface Brightness
Fluctuations (SBF) method.
2. Value:
and
1. Value: ;
2. Method: by the lightcurves of 207
H3
spectroscopically–confirmed Type Ia supernova.
3. Citation: DES Collaboration et al. Cosmological
Constraints from Multiple Probes in the Dark
Energy Survey. Phys. Rev. Lett. 122 , 171301
(2019).
H2
Plot
Static plot
1. I used Mathematica software to make the plot.
The programming language is Wolfram
H3
Language.
2. Code
1 ClearAll
2 \[Integral]1/(1 + x)*1/Sqrt[0.3
(1 + x)^3 + 0.7] \
[DifferentialD]x
3 f[x_] = %
4 Plot[1000/70 (f[z] - f[0]), {z,
0, 10}, PlotRange -> All,
5 AxesOrigin -> {0, 0},
6 AxesLabel -> {"z",
7 "Lookback Time [\!\
(\*SuperscriptBox[\(10\), \
(9\)]\)yrs]"},
8 PlotLabel -> "Lookback Time Vs
Redshift"]
9
10 (* I convert the unit of 1/H0:
[((Mpc*s)/Km)] to years:
[9.8*10^11 \
11 yrs] and take it as [10^12yrs]
for approximation. I put 10^3
into the \
12 integral so the unit of y axis is
[10^9yrs] *)
Dynamic Plot
1. Since you asked to plot with different and
values, I made this dynamic plot. In this plot, we
H3
can change the value of and see how the
curve will change.
2. Code
1 ClearAll;
2 \[Integral]1/(1 + z)*1/Sqrt[a (1
+ z)^3 + 1 - a] \
[DifferentialD]z;
3 m[z_, a_] = %;
4 Manipulate[
5 Plot[1000/70 (m[z, a] - m[0,
a]), {z, 0, 10}, PlotRange ->
All,
6 AxesOrigin -> {0, 0}, AxesLabel
-> {"z", "Lookback Time [yrs]"},
7 PlotLabel -> "Lookback Time Vs
Redshift"], {a, 0, 1}]
3. Plot
H2
Madau plot
Data used in plotting
Data are extracted from paper "Cosmic Star-
Formation History" 1
H3
H3
1 ClearAll;
2 data = Import[
3
"/Users/shengyong/Library/Mobile
\
4 Documents/com~apple~CloudDocs/Gra
duate Study/Fall 2020/Galactic \
5 Astronomy/Assignments/Assignment
2 due on Aug-28/My data/Data part
\
6 one 2.csv", "Data"];
7 dataerror =
8 Table[{Around[Part[Part[data,
n], 1], Part[Part[data, n], 3]],
9 Around[Part[Part[data, n],
2], {Part[Part[data, n], 5],
10 Part[Part[data, n], 4]}]},
{n, 1, 23}];
11 dataplot =
12 ListLogPlot[%,
13 AxesLabel -> {"z",
14 "\!\(\*OverscriptBox[\(\
[Rho]\), \(.\)]\)(z) [\!\
(\*SubscriptBox[\
15 \(M\), \(o\)]\)\!\
(\*SuperscriptBox[\(yr\), \
16 \(-1\)]\)\!\(\*SuperscriptBox[\
(Mpc\), \(-3\)]\)]"},
17 PlotLabel -> "SFRD Vs
Redshift"]
2. Plot outcome
Best fit from the paper
1. Code
H3
1 bestfitting =
2 LogPlot[0.015 (1 + z)^2.7/(1 +
((1 + z)/2.9)^5.6), {z, 0, 8}];
3
4 Show[dataplot, bestfitting,
PlotRange -> All,
5 AxesLabel -> {"z",
6 "\!\(\*OverscriptBox[\(\
[Rho]\), \(.\)]\)(z) \
7 [\!\(\*SubscriptBox[\(M\), \
(o\)]\)\!\(\*SuperscriptBox[\
(yr\), \
8 \(-1\)]\)\!\(\*SuperscriptBox[\
(Mpc\), \(-3\)]\)]"},
9 PlotLabel -> "SFRD Vs Redshift"]
2. Plot outcome
Find the cosmic noon
1. I find the cosmic noon based on the best fit from
the paper "Cosmic Star-Formation History" 1 .
H3
2. Code
1 FindMaximum[0.015 (1 + z)^2.7/(1
+ ((1 + z)/2.9)^5.6), {z, 0}]
3. Outcome
to
1 logdata =
2 Table[{Log[Part[Part[data,
n], 1]],
3 Log[Part[Part[data, n],
2]]}, {n, 1, 23, 1}];
4 fitpartone =
Table[Part[logdata, n], {n,
1, 12}];
5 FindFit[fitpartone, a + n x,
{a, n}, x]
1 eq1 = E^-2.457317430405359`
x^(0.6447922589858917`);
2 fitgraph1 = LogPlot[eq1, {x,
0, 1.8}];
3 Show[ListLogPlot[Table[Part[d
ataerror, n], {n, 1, 12,
1}]], fitgraph1]
Outcome graph:
to
1 fitpartone =
Table[Part[logdata, n], {n,
13, 23, 1}];
2 FindFit[fitpartone, b + m x,
{b, m}, x]
Outcome graph:
Outcome graph:
H2
Reference