1require_relative "../physics"23question :the_density_of_an_iron_nucleus do4 kind :numerical5 describes "Given the mass of iron nucleus as %{mass} and A = %{nucleons}, and taking R₀ as %{size}, %{density}, in " \6 "kg/m³?"7 given mass: "55.85 u"8 given nucleons: "56"9 given size: "1.2 fm"10 asks density: "what is the nuclear density"11end
1require_relative "../questions/the_density_of_an_iron_nucleus"2require_relative "../science/nuclei/nuclear_size"34solve :the_density_of_an_iron_nucleus, using: NuclearSize do5 objects :iron67 take mass: iron.mass8 take nucleons: iron.mass_number9 take size: R_01011 density = iron.nuclear_density12 answer density:, in: "kg/m3", figures: 31314 conclusion "A nucleus's volume grows with the number of nucleons, so every nucleus has about the same " \15 "enormous density, whatever the element."16end
1require_relative "../solutions/the_density_of_an_iron_nucleus"23play_with :the_density_of_an_iron_nucleus do4 title "The Density of an Iron Nucleus"5end