Given the following sets of data, find the curve of best fit
x = -4, -6, 5, -6, -9, -2, 5
y = -4, -7, 3, -12, -2, 5, 7
a) y = a + bx
b) y = a + bx + c cosx
I can do part a by using the formula for least square methods for straight line. But what about part b? One way I can think of is...