HI! I just started using arduino recently and am trying to program the Arduino Uno board do calculate Dissolved Oxygen from a sensor with analog output. The DO depends on temperature so there is also a temperature equation that has an output of integer T. (The variables used are currently arbitrary numbers in order to get rid of error messages regarding those undefined letters!). Any help with formatting this equation would be great, here is the code:

#include <math.h>

int T (int RawADC) {

double Temp;

Temp=log(10000.0*((1024.0/RawADC-1)));

// = log(10000.0/(1024.0/RawADC-1))

Temp=1/(0.001405+(0.0002368+(0.0000001013*Temp*Temp))*Temp);

Temp= Temp - 273.15;

return Temp;

}

double Oxygen (){

const int U=analogRead(1);

#define X 0.2095

#define N 1013

#define V 2

#define S 5

#define E 3

#define a 11

#define L X/N

#define W 200

#define K 273

float e=2.7182818284590452353602874713527;

b=e^((-173.4292)+((249.6339)(100/T))+(143.3483(ln(T/100)))-((21.8492)((T/100)))+((S)-0.033096+0.014259)-((0.0017)((T/100)^2)));

c=(a((analogRead(U)-V)(E))*((b)/(X(N-W))*K));
i=(a((analogRead(U)-V)(E))*((100%)/(X(L-W))

*K));*

W=(141.082e^((3840.7)/(T))-((216961)/(T^2)));

W=(141.082

}

Thank You!