-
-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add tau to racket/math #2180
base: master
Are you sure you want to change the base?
add tau to racket/math #2180
Conversation
If A safe alternative would be to make a new module, like |
I agree with Ben. I honestly don't care one way or the other about adding |
If we're going to go crazy with these things, then somewhere in Locally (researchwise), however, |
2018-07-21 23:15 GMT+02:00 William G Hatch <[email protected]>:
I want to add tau to racket/math.
For an in-depth look at why tau is better than pi, see the tau manifesto
<https://tauday.com/tau-manifesto>. The biggest obvious and practical
benefit for Racket users is probably doing rotations and such. A quarter
turn of an image is τ/4 rather than π/2, so you don't have to keep track
of the extra factor of 2, or whether to multiply it or divide it.
I am not fond of the idea - mostly based on my impression that tau is not
standard mathematical notation.
Besides tau is used to denote other mathematical concepts:
http://mathworld.wolfram.com/Tau.html
A litmus test: Would you use tau in a paper without explaining its meaning?
/Jens Axel
|
As a purely anecdotal data point, I was personally already familiar with the use of tau to mean “twice pi”, and I would personally find such a definition useful. Including that definition in the standard library of a programming language is rare, but it is also not completely unheard of: Python has included |
|
I'm not terribly worried about modules that use Honestly, I think it would be best to have a constants module that includes numbers like |
Honestly, I suspect Pi being in |
In terms of "the best way to calculate
|
Being a professional mathematician, I can confirm that |
As a non-mathematician, but someone who occasionally programs games in Racket for fun, I often define |
Note that it is common practise to use tau to denote time in physics:
https://en.wikipedia.org/wiki/Time_constant
Den tor. 18. okt. 2018 kl. 15.30 skrev Alex Knauth <[email protected]
…:
As a non-mathematician, but someone who occasionally programs games in
Racket for fun, I often define tau, or sometimes turn, as (* 2 pi) and
then use turn to do rotation and trigonometry calculations for the game.
It's much easier to see that something is being rotated a 1/4 turn when
it says (* 1/4 turn), and using tau (* 1/4 tau) is just as easy.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2180 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAcLxYBippiL0kglyBP1PQlBC1ZO3zXZks5umIJ2gaJpZM4VZw_i>
.
--
--
Jens Axel Søgaard
|
I didn't explicitly say this earlier, but I was also previously familiar with I also see a practical benefit to including On the other hand, I do know |
As another point in the design space, the Elm standard library includes a function |
As a compromise, how about just naming it |
@LiberalArtist I think the |
I mean, I frequently find myself wanting to multiply it by |
Even when you're multiplying by |
The point is that |
(By |
I want to add
tau
to racket/math.For an in-depth look at why
tau
is better thanpi
, see the tau manifesto. The biggest obvious and practical benefit for Racket users is probably doing rotations and such. A quarter turn of an image isτ/4
rather thanπ/2
, so you don't have to keep track of the extra factor of 2, or whether to multiply it or divide it.The biggest potential problem is that people could already be using the name
tau
in modules using racket/math. Perhaps it would be better to use the unicode symbolτ
, but that could also be used.This PR isn't really ready. I haven't added documentation and I'm not really sure that this is the best way to calculate
tau
. But I want to float the idea and see what people think, especially of the naming issue.