Pull requests

#2 Merged
Repository
mqk
Branch
default
Repository
birkenfeld
Branch
default

cgs property

Author
  1. Michael Kuhlen
Reviewers
Description

I'm in astrophysics, and cgs is pretty much de rigeur. I've implemented a .cgs property, modeled on .base, which converts to cgs units. There's a whole bunch of cgs variants (see http://goo.gl/7L290), and I've found the emu-cgs system to be most convenient.

Here are some usage examples:

In [3]: Grav.cgs
Out[3]: 6.67384e-08 cm^3/s^2/g

In [4]: c0.cgs
Out[4]: 2.9979246e+10 cm/s

In [5]: (mu0*eps0).cgs * (c0**2).cgs
Out[5]: 1.0
  • Learn about pull requests

Comments (1)