I have this
Xt =
{{1., 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1.5, 1.5,1.5, 2, 2, 2.2, 2.4, 2.5, 2.5, 2.8, 2.8, 3, 3, 3.2, 3.3}};
Yt =
{101.4, 117.4, 117.1, 106.2, 131.9, 146.9, 146.8, 133.9, 111.3, 123, 125.1, 145.2, 134.3, 144.5, 143.7, 146.9};
N[Inverse[Xt.Transpose[Xt]].Xt.Yt, 5]
and the last evaluation returns the same result as if there was no N[..,..]; i.e.,
{93.3422, 15.6485}
Why and how do I get output to five decimals?
Nhas no effect on machine precision numbers, which are the kind of numbers you are using. – m_goldberg Feb 09 '19 at 09:07N, which is a more sophisticated function than most beginners think it is. – m_goldberg Feb 09 '19 at 09:21