Tgmath.h: Difference between revisions

Content deleted Content added
Line 124:
scanf("%f", &ang);
ans = atan(ang);
printf("%f0.3f\n", ans);
return 0;
}</source>
 
== Notable differences ==
The similar functions defined here have notable difference when it comes to return value of "tricky" numbers. For example, using sqrt to compute [[square root]] of -25 returns -[[NaN|nan]], whereas, csqrt returns 0.000000. Such differences may be noticed in other functions also.