I'm trying to develop a system to calculate the moisture present in a seed.
My project is:
I have several samples of seeds that I know humidity (ranging from 0 to 100%). I scan these seeds with a sensor connected to my Arduino, and I save these values ??in a table. Once this data is obtained, Arduino calculates me an equation of the form ax ² + bx + c with which I can calculate the moisture in any seed.
The problem is as follows:
I do not know how to write a program to calculate an equation of the form ax ² + bx + c, I know Taylor's theorem facilitate my job, but I do not know at all how to write in C.
Can someone help me to transcribe the Taylor formula in C?
Thank you in advance for your response. ;)