I've got a situation where I can approximate a line by the function:(adsbygoogle = window.adsbygoogle || []).push({});

[tex]y = a_0 + a_1 \sin x + a_2 \sin 2x + b_1 \cos x + b_2 \cos 2x[/tex]

From experimental data I will be able to find certain values for x and y, namely y_{n}and x_{n}for some value of n. Now I can easily write a computer program which could work out the co-efficients in this problem if I have 5 values for y and 5 values for x. However, being a particle situation and wanting as many results as possible or perhaps not being able to gain that many results due to constraints, how would I be able to approximate these co-efficient please?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Approximating co-efficents

**Physics Forums | Science Articles, Homework Help, Discussion**