Visitar URL original
Add the value twopi to RIO.Prelude · Issue #185 · commercialhaskell/rio · GitHub
Skip to content

Add the value twopi to RIO.Prelude #185

Open

Description

@karamellpelle

It is more natural to have a symbol for the value 2·π than π. Think about it: A circle is defined from a radius (the circle is all the points having distance radius) and so it it would be nice to have a symbol denoting the value of the circumference of a circle with unit radius (1). At least such a symbol would be more natural than having a symbol for half the circumference (π). Pi is wrong and should be removed from mathematics, that's my opinion.

Suggestion: Since RIO introduces a completely new Prelude, we have a good opportunity to introduce the value twopi :: Floating a => a. That's a value I've been missing.

PS. I just started programming with rio and I love it!

Activity

  1. snoyberg commented on Jun 11, 2019

    @snoyberg
    Collaborator

    Fairly lukewarm on it. We don't typically attempt to add brand new things to rio without a strong motivation. A debate like pi-vs-tau doesn't seem to fit in there. That said, I don't have a lot of experience in doing this kind of work in Haskell and don't feel very strongly about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions