mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-15 07:06:05 +00:00
1 line
456 B
C++
Executable File
1 line
456 B
C++
Executable File
/* Conformance Test 19.4.0.1: Verification of exp, log, log10 functions */
|
|
|
|
#include <math.h>
|
|
|
|
main ()
|
|
{
|
|
double d1;
|
|
|
|
d1 = exp (0);
|
|
if (fabs(d1 - 1.0) > 0.00001)
|
|
goto Fail;
|
|
|
|
d1 = log (1.0);
|
|
if (fabs(d1) > 0.00001)
|
|
goto Fail;
|
|
|
|
d1 = log10 (100.00);
|
|
if (fabs(d1 - 2.0) > 0.00001)
|
|
goto Fail;
|
|
|
|
|
|
printf ("Passed Conformance Test 19.4.0.1\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Conformance Test 19.4.0.1\n");
|
|
}
|