1. ## calculation

hi guys!

1.) Could somebody tell me how to calculate below mentioned formula in terms of T

R = 10K Exp(3435( (1/(273+T) ) - 1/298)

2.) I read A/D data from a port i get the data

for example 1110111000 after A/D conversion

Now i know that the above is equivalent to 939.6 in decimal.
Pls tell me if i read the data and put in a variable will this variable have value" 939.6 "or first i need to conver it frm 1110111000 to 939.6 if so how should i do it?

cool

2. Use math to solve the problem. I suggest to solve the program by hand the put it to the computer.

3. Here is a place to start.
Code:
```#include <stdlib.h>
#include <stdio.h>
#include <math.h>

double formula(double T)
{
return 10000.0 * exp(3435.0 * ( (1.0 / (273.0 + T)) - 1.0 / 298.0) );
}

int main(void)
{
const char data[] = "1110111000";
double value = strtoul(data, NULL, 2);
printf("formula(%f) = %f\n", value, formula(value));
return 0;
}

/* my output
formula(952.000000) = 1.628365
*/```
How 1110111000 becomes 939.6 I'm not sure. I think you need to provide more information for better advice.