From 0124f30e732962476dd1295e337d96dc0446a642 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Mon, 18 Mar 2024 14:53:30 +0100 Subject: [PATCH] 'Added 2nd task for stars;' --- 04_AWK/stars/awk_excercises.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/04_AWK/stars/awk_excercises.txt b/04_AWK/stars/awk_excercises.txt index 02898a0..5412908 100644 --- a/04_AWK/stars/awk_excercises.txt +++ b/04_AWK/stars/awk_excercises.txt @@ -1,10 +1,15 @@ Columns description is in the beginning of the files. -Compute number of black holes formed per every timesteps (column timenr) from files inter-binevoldat and inter-binsin.dat. At the end we should see something like a histogram. +1. Compute number of black holes formed per every timesteps (column timenr) from files inter-binevoldat. At the end we should see something like a histogram. Hints: * column 17 - initial star's type, it has to be smaller than 14 * column 37 - final star's type, it has to be 14 (internal note that we have a black hole(BH)) -So, BH formes if the type was not 14 in column 17, but in the same line, in the column 37 equals 14. Number of such events (rows) have to be computed per every time step (column timenr). \ No newline at end of file +So, BH formes if the type was not 14 in column 17, but in the same line, in the column 37 equals 14. Number of such events (rows) have to be computed per every time step (column timenr). + +2. Compute the same for inter-binsin.dat file and plot both results on the same plot (with anything). These events from inter-binsin.dat should be less. + + +