fork download
  1. import scala.math._
  2. object Main extends App {
  3. def log2(x: Double) = log(x) / log(2)
  4. def f(x: Double) = pow(x, 3) * pow(E, x - 1) / (pow(x, 3) - x.abs) - log2(sqrt(x) - x)
  5. println(f(300))
  6. }
Success #stdin #stdout 0.37s 322240KB
stdin
Standard input is empty
stdout
NaN