Commit 99599a8b authored by Joachim Bard's avatar Joachim Bard

fixing testcase for daisy

adding '<='-bounds in addition to '<'-bounds
parent 99f512ed
...@@ -23,11 +23,11 @@ object Science { ...@@ -23,11 +23,11 @@ object Science {
def carbonGas(T: Real, a: Real, b: Real, N: Real, p: Real, V: Real): Real = { def carbonGas(T: Real, a: Real, b: Real, N: Real, p: Real, V: Real): Real = {
require(T >= 300 && T <= 300 && a >= 0.401 && a <= 0.401 && b >= 42.7e-6 && b <= 42.7e-6 && N >= 1000 && N <= 1000 && require(T >= 300 && T <= 300 && a >= 0.401 && a <= 0.401 && b >= 42.7e-6 && b <= 42.7e-6 && N >= 1000 && N <= 1000 &&
p >= 3.5e7 && p <= 3.5e7 && 0.1 < V && V < 0.5) p >= 3.5e7 && p <= 3.5e7 && 0.1 <= V && V <= 0.5 && 0.1 < V && V < 0.5)
val k: Real = 1.3806503e-23 val k: Real = 1.3806503e-23
(p + a * (N / V) * (N / V)) * (V - N * b) - k * N * T (p + a * (N / V) * (N / V)) * (V - N * b) - k * N * T
} }
} }
\ 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