nick34992
6/28/2017 - 10:45 PM

Elixir: Module: import :math

Elixir: Module: import :math

defmodule Drop do
  def fall_velocity(distance) do
    import :math, only: [sqrt: 1]  
    sqrt(2 * 9.8 * distance)
  end
end