Add a math block syntax for easily creating new units.
Currently new units can be created using the mathjs function createUnit. However, this will throw an error the second (or later) time the code block is evaluated as the unit already exists. {override:true} is only allowed on derived units, not new base units.
Numerals should have a simple syntax for a new type of unit:
Add a
math
block syntax for easily creating new units.Currently new units can be created using the
mathjs
functioncreateUnit
. However, this will throw an error the second (or later) time the code block is evaluated as the unit already exists.{override:true}
is only allowed on derived units, not new base units.Numerals should have a simple syntax for a new type of unit: