sketch_nov14a.ino: In function 'void setup()':
sketch_nov14a.ino:21:43: error: expected ')' before ';' token
sketch_nov14a.ino: In function 'void loop()':
sketch_nov14a.ino:59:40: error: expected ')' before numeric constant
sketch_nov14a.ino:59:89: error: expected ')' before ';' token
sketch_nov14a.ino:59:89: error: invalid operands of types 'long int' and 'double(double)' to binary 'operator*'
sketch_nov14a.ino:69:37: error: expected ')' before numeric constant
sketch_nov14a.ino:69:87: error: expected ')' before ';' token
sketch_nov14a.ino:69:87: error: invalid operands of types 'long int' and 'double(double)' to binary 'operator*'
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
binary operator can't work with float. i suspect you are trying to implement "raise to the power" using '^'
operator. trying to use pow() because there in no in built operator for power in c.
That is not how you raise a value to a power in C. Look at the pow() function.
What do you want to do with 108534.81 ? Are you trying to multiply by it ?
These errors are repeated later in the program.
Apart from the above mentioned issues, an unsigned long can only hold a value upto 4,294,967,295 which sadly falls short of the number of picometers in a centimeter.