Jak jednoduse spocitat rosny bod
Jozo
svk421@zoznam.sk
Středa Prosinec 1 11:00:20 CET 2004
>Floating point aritmetika mi problem nedela, ale nevim jak takove 8-bity
>pocitaji logaritmy...prestoze to evidentne NEJAK umeji.
>
>
>
Prave preto je na taketo veci lepsie pouzivat cecko. Pre 16F628 to
skompilovalo jednoduchy prog. takto:
void main(void)
{
double a,b;
b = 45.8;
a = log10(b);
}
Total ROM used 637 words (31.1%)
Total RAM used 41 bytes (18.3%)
<math.h> z hitechu obsahuje:
double fabs(double);
double floor(double);
double ceil(double);
double modf(double, double *);
double sqrt(double);
double atof(const char *);
double sin(double);
double cos(double);
double tan(double);
double asin(double);
double acos(double);
double atan(double);
double atan2(double, double);
double frexp(double, int *);
double ldexp(double, int);
double log(double);
double log10(double);
double pow(double, double);
double exp(double);
double sinh(double);
double cosh(double);
double tanh(double);
double eval_poly(double, const double *, int);
Další informace o konferenci Hw-list