Project DescriptionPhysicalMeasure is a C# library for handling physical quantities by specifing value and unit. Scaling of units and conversions between multiple unit systems are supported.
ConceptThis library is the C# implementation of the concepts of system of physical units. eg. as found on Wikipedia:
http://en.wikipedia.org/wiki/International_System_of_Units.
Requries .NET framework 4.0.
It can be used to represent and handle physical measures and calculations of physical properties.
ExamplesFor example like this
using PhysicalMeasure;
public void CalculateEnergyIn1Gram()
{
PhysicalQuantity m = new PhysicalQuantity(0.001, SI.kg);
PhysicalQuantity c = new PhysicalQuantity(299792458, SI.m / SI.s);
PhysicalQuantity E = m * c.Pow(2);
PhysicalQuantity expected = new PhysicalQuantity(0.001 * 299792458 * 299792458, SI.J);
Assert.AreEqual(expected, E);
}
PhysCalc console applicationPhysCalc is a calculator using PhysicalMeasure to evaluate physical expressions.
LinksAdditional information from Wikipedia on SI units that I have covered in this library:
-
SI base units -
SI derived units -
SI unit prefixes