Commit 1147fdb5 authored by Heiko Becker's avatar Heiko Becker

Add let Binding to Benchmark as an example

parent 874397ea
......@@ -17,7 +17,9 @@ object RigidBody {
require(-15.0 <= x1 && x1 <= 15 && -15.0 <= x2 && x2 <= 15.0 &&
-15.0 <= x3 && x3 <= 15)
2*(x1*x2*x3) + (3*x3*x3) - x2*(x1*x2*x3) + (3*x3*x3) - x2
val x_tmp=x1 * x2 * x3
2*(x_tmp) + (3*x3*x3) - x2*(x_tmp) + (3*x3*x3) - x2
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment