Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the Becquerel, the measure of radioactivity, and extends the second, metre, electron-volt, Coulomb, ampere and tesla to mostly smaller prefixes for electric and magnetic units. These are used in the areas of electromagnetism and nuclear physics with a couple for problems on optics and large power projects. Tests have been added for the new units in t/units/. It also corrects the spelling of mili to milli (double L).
When writing the test for adding new units with an optional hashref, the tests failed using syntax that I use in working problems. I've wrapped them in exception handling blocks and marked them with TODOs so that they pass, but are available for examination.
One point that might warrant discussion is the milliampere. I've added it as
mamp
which is consistent, but unappealing as it's not obvious what it is. I've also addedmA
which is in line with SI convention.Units added:
microsecond, nanosecond
picometre, femtometre
tera electron-volt
Megawatt, milliwatt
milliCoulomb, microCoulomb, nanoCoulomb
milli-ampere
milli-tesla
Becquerel