Commit 300199b3 authored by Morten Welinder's avatar Morten Welinder

Constants: add print statements for 180/pi and pi/180

This answers the question whether those constants can be computed
accurately using double math.  Evidently they can.
parent a788421a
......@@ -253,6 +253,8 @@ main (int argc, char **argv)
go_quad_init (&qc, 180);
go_quad_div (&qc, &qc, &go_quad_pi);
examine_constant ("180/pi", &qc);
g_printerr ("180/pi computed as double: %.55g\n", 180 / M_PI);
g_printerr ("pi/180 computed as double: %.55g\n", M_PI / 180);
go_quad_end (state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment