Browse Source

Reworked example

David Peter 3 years ago
parent
commit
10cbbf8bcb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/earth_mass.ins

+ 3 - 3
examples/earth_mass.ins

@@ -1,6 +1,6 @@
 # Compute the mass of planet earth
 
-let radius = 6378 * 1000 * meter
-let volume = 4/3 * π * radius^3
-let density = 5514 * kilogram / meter^3
+let radius: Length = 6378 * 1000 * meter
+let volume: Volume = 4/3 * π * radius^3
+let density: MassDensity = 5514 * kilogram / meter^3
 volume * density -> kilogram