int m = 0.0;
float vout = 0.0;
float rT = 0.0;
float tempC = 0.0;
float up = 0.0;
float e = 0.0;
float inside = 0.000;
m = analogRead(A9);
Serial.print("M = ");
Serial.println(m);
vout = m*(0.0048828125);
Serial.print("Vout = ");
Serial.println(vout);
rT = (50000/vout)-10000;
Serial.print("rT = ");
Serial.println(rT, 10);
e = exp(1);
up = -3380/25;
Serial.print("up = ");
Serial.println(up);
inside = 10000*(pow(e, up));
Serial.print("inside the parenthesis = ");
Serial.println(inside,60);
tempC = (rT/(inside));
tempC = tempC*(pow(10,55));
Serial.println(tempC);
tempC = log(tempC);
tempC = 3380/tempC;
Serial.print("tempC = ");
I attached an image file of the equation I am trying to do. This equation gives temperature in Celsius based on resistance (rT) which I have already calculated to be around 9200. The issues start when I first try to print tempC and it tells me that it is "inf" when in reality it is just a very large number. Any help would be appreciated.