Tgmath.h: Difference between revisions

Content deleted Content added
No edit summary
Line 115:
|}
 
== Usage example ==
<source lang="c">
#include <stdio.h>
#include <tgmath.h>
int main()
{
float ang, ans;
scanf("%f", &ang);
ans = atan(ang);
printf("%f", ans);
return 0;
}</source lang = "c">
== 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.