mean coefficient and amplitude of a sine curve

30 Views Asked by At

I have the following equation $$f(x) = m - A~\cos\left(\frac{2\pi}{P}~x\right)$$ and I know the value of the positive area and the negative area (eg. $m=0$ means: positive = negative); how can I calculate $m$ and $A$?

thanks