Skip to content

Add angular frequency #63

Closed
Closed

Description

@cbrunet

Adding angular frequency to the default unit definition could be useful:

hertz = 2 * pi * radian / second

Activity

  1. hgrecco commented on Sep 12, 2013

    @hgrecco
    Owner

    The problem is that it will class with

    hertz = 1 / second
    

    This is sometimes called cycles_per_second. We could also call it angular_hertz, but I have never heard such name.

  2. cbrunet commented on Sep 13, 2013

    @cbrunet
    Author

    I see...

    I was trying to use pint to perform convertions between wavelength (nm), frequencies (THz), angular frequencies (rad/s), and wave number (m**-1). What I realize is that it cannot be done automatically. I can use the units, but I have to explicitly enter the formulas for convertions. This is probably my misunderstanding of what pint is. Sorry for the noise.

  3. hgrecco commented on Sep 13, 2013

    @hgrecco
    Owner

    Thanks for your comments. It is funny that you mention this because I was writing an enhancement proposal in this regard. Take a look at: #65

  4. cbrunet commented on Sep 13, 2013

    @cbrunet
    Author

    I rethought about that, and I think that hertz should be defined as cycle / second instead of 1 / second. Since cycle already is defined as 2 * pi * radian, it would allow to convert hertz to radian / second, to rpm, and to cps.

  5. hgrecco commented on Sep 13, 2013

    @hgrecco
    Owner

    But the problem is that hertz is the inverse of second. It is not a good idea to redefine it in the canonical list included with pint as it will break user expectations. Converting from frequency to angular frequency is not really a unit conversion problem. It is a relation between physical quantities. Both have the same units: 1/second.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions