[OpenSCAD] Why is this so heavy to OpenScad?

Jordan Brown openscad at jordan.maileater.net
Sun Nov 10 17:53:18 EST 2019

On 11/10/2019 2:37 PM, Jordan Brown wrote:
>     function adj(d, sides) = d/cos(360/sides/2);

BTW, trig/computer tidbit of the day:  Alexa gets acos( ) and asin( )
completely wrong.

For instance, she says that asin(0.5) is 0.0087, and that acos(0.5) is
1.5621.  (Correct are 0.52 and 1.05.)  Actually, it appears that all
asin( ) results are about zero, and all acos( ) results are about 1.57. 
Also, for sin(x) and cos(x), x is in degrees, but for asin( ) and acos(
) the answer appears to be in radians.

I guess Alexa was distracted during her high school trig class.

I tentatively suspect that they did acos(degrees_to_radians(x)) instead
of radians_to_degrees(acos(x)).

I filed a bug report.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191110/02d76709/attachment.html>

More information about the Discuss mailing list