cgs unit system
See original GitHub issueHi, thank you for your awesome math library!
I am thinking about taking advantage of this library and build a calculator for physicists and astronomers. Since cgs unit system is still widely used in the astronomy community, I’d like to help to add a cgs unit system to this library.
I found UNIT_SYSTEMS.cgs
but didn’t find a .toCGS()
function. Here’s what I plan to do:
- Complete
UNIT_SYSTEMS.cgs
: add a missing basic unit ‘Ba = g/(cm⋅s2)’; implement the ESU units system for Electromagnetics. - Define
Unit.prototype.toCGS
: copyUnit.prototype.toSI
and change every instance ofUNIT_SYSTEMS.si
toUNIT_SYSTEMS.cgs
.
Please let me know what do you think, or what is already in math.js that I missed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Centimetre–gram–second system of units - Wikipedia
The centimetre–gram–second system of units (abbreviated CGS or cgs) is a variant of the metric system based on the centimetre as the unit...
Read more >Cgs System - an overview | ScienceDirect Topics
The basic units of the cgs system are cm (centimeter), g (gram), and s (second). But, the fourth unit depends on whether it...
Read more >CGS and SI (MKS) unit systems
CGS and SI (MKS) unit systems ; electric current, biot, Bi, ampere, A ; electric dipole moment, debye, D · coulomb metre, C...
Read more >Definition of CGS system | PCMag
(Centimeter-Gram-Second system) A metric system of measurement that uses the centimeter, gram and second for length, mass and time. The units of force...
Read more >cgs -- from Eric Weisstein's World of Physics
cgs is the system of units based on measuring lengths in centimeters, mass in grams, and time in seconds. It is a metric...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there any other unit system other than SI, CGS, and US?
We can simply link .toSystem(‘SI’) to .toSI() and .toSystem(‘cgs’) to .toCGS(). The first step is to complete the CGS system. I’ll be working on that soon and make pull requests once finished.
Still looking forward to that day 😎 👍