Pārlūkot izejas kodu

Reworked example

David Peter 3 gadi atpakaļ
vecāks
revīzija
10cbbf8bcb
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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