std.math.TAU

James Fisher jameshfisher at gmail.com
Tue Jul 5 11:17:55 PDT 2011


On Tue, Jul 5, 2011 at 12:15 PM, Steven Schveighoffer
<schveiguy at yahoo.com>wrote:
>
> I read an article about this recently, it's definitely interesting.  The
> one place where I haven't seen it mentioned is what happens when you want
> the area of a circle, since that necessarily involves the radius.  I'd guess
> you'd have to use τ/2 * r^2, but even then, that's one formula vs. the rest.
>  It's probably a good tradeoff.  I can definitely see the advantage when
> using radians.  Never thought I'd have to re-learn trig again...
>

It embarasses me to say that, after many years, working with radians and pi
still makes my head hurt.  "So I have to multiply -- no wait, divide -- no
wait, multiply that by 2 ..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110705/10992ded/attachment.html>


More information about the Digitalmars-d mailing list