What is the problem, you get a broken circle?<br><br><div class="gmail_quote">Den 20 februari 2012 17:56 skrev Álvaro Castro-Castilla <span dir="ltr"><<a href="mailto:alvaro.castro.castilla@gmail.com">alvaro.castro.castilla@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was using (* 2 (angle -inf.0))<br>
<br>
But anyway, the problem is elsewhere, precision is double.<br>
<br>
Thanks!<br>
<br>
<br>
<br>
2012/2/20 Bradley Lucier <<a href="mailto:lucier@math.purdue.edu">lucier@math.purdue.edu</a>>:<br>
<div class="HOEnZb"><div class="h5">><br>
> On Feb 20, 2012, at 6:42 AM, Álvaro Castro-Castilla wrote:<br>
><br>
>><br>
>> Hi,<br>
>><br>
>> I want to use the M_PI constant, which is defined in C as #define M_PI<br>
>> 3.14159265358979323846, with 21 decimals. For the Cairo bindings, the<br>
>> full precision is needed, because drawing a circle is done by drawing<br>
>> an arc 2*M_PI long, and the algorithm only considers it a circle when<br>
>> the 2*pi is passed with the proper precision.<br>
><br>
> (* 8 (atan 1)) should give you 2*M_PI to 64-bit double precision, so this should work unless you're working with 80-bit long doubles.<br>
><br>
>> What's the way to support this precision for the FFI bindings, so I<br>
>> can pass that value to the affected functions as it is done in C<br>
>> without a special wrapper function for each case?<br>
>><br>
>> Best regards,<br>
>><br>
>> Álvaro<br>
>> _______________________________________________<br>
>> Gambit-list mailing list<br>
>> <a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
>> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
><br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br>