#!/bin/sh

V0=1e-4

awk -vV0=$V0 'BEGIN{ OFMT=CONVFMT="%16.8f"; }{ print $1/365.25 "	" log($2/V0); }' < lyap2.out > lyap2.log

./linreg.awk < lyap2.log > lyap2.fit

awk '{ print "f(x) = ", $1, " + ", $2, "*x"; }' < lyap2.fit > lyap2.lab
awk '{ print "chi = ", $2, " yr^-1"; print "T_L = ", 1./$2, " yr"; }' < lyap2.fit > lyap2.txt

