Home > other >  The sine unanswered? A cycle take non-zero (X1, Y1), two points (X2, Y2), o y=Asin (Wx) coefficient
The sine unanswered? A cycle take non-zero (X1, Y1), two points (X2, Y2), o y=Asin (Wx) coefficient

Time:11-22

Made A sinusoidal cycle (X1, Y1), two points (X2, Y2), o y=Asin (Wx) coefficient of A and W, W, namely the amplitude A and cycle through the practical problems in engineering, the amplitude and cycle, can ensure A cycle to N points, due to the requirements, the computing speed and precision of not fitting,

CodePudding user response:

Equation constraints, there are a lot of the solution, can simply set y1=0, y2=1.0 to solve, there will be multiple solutions
Another measure two data calculation results, even if has a solution, the actual precision will be very low
Simple rectifier can be used commonly, 0 to solve, can also be FFT

CodePudding user response:

Brother explanation is in place, in fact we this to the calculated frequency, so the rectifier is washed-up, FFT and fitting speed microcontroller is not to come over, fitting degree is 0.998, the highest amounted to less than one over ten thousand of the request, actually project can guarantee at least 400 sampling points per cycle, FFT is also considering, but sampling last cycle may not be an integer cycle, FFT frequency leak causing possible error increases a lot,,, now is such analysis,
  • Related