Skip to content

Instantly share code, notes, and snippets.

@globby
Last active December 26, 2015 14:28
Show Gist options
  • Save globby/7165393 to your computer and use it in GitHub Desktop.
Save globby/7165393 to your computer and use it in GitHub Desktop.
DailyProgrammer #138 Scala
import math._
val g = () => Console.readLine("Params: ").split(' ') map ((x) => x.toFloat)
val a = g()
val b = g()
println(pow(a(0), 2)/(pow(a(1)-b(1), 2) + pow(a(2)-b(2), 2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment