Commit 01bb3977 by Anastasiia

### fix ranges for kepler; x2,x4 were =0

parent d45cbc25
 ... @@ -10,8 +10,8 @@ import Real._ ... @@ -10,8 +10,8 @@ import Real._ object Kepler { object Kepler { def kepler0(x1: Real, x2: Real, x3: Real, x4: Real, x5: Real, x6: Real): Real = { def kepler0(x1: Real, x2: Real, x3: Real, x4: Real, x5: Real, x6: Real): Real = { require(4 <= x1 && x1 <= 6.36 && 0 <= x2 && x2 <= 0 && 40 <= x3 && x3 <= 63.6 && require(4 <= x1 && x1 <= 6.36 && 0.0001 <= x2 && x2 <= 0.00011 && 40 <= x3 && x3 <= 63.6 && 0 <= x4 && x4 <= 0 && 4 <= x5 && x5 <= 6.36 && 4 <= x6 && x6 <= 6.36) -6.36 <= x4 && x4 <= -4 && 4 <= x5 && x5 <= 6.36 && 4 <= x6 && x6 <= 6.36) x2 * x5 + x3 * x6 - x2 * x3 - x5 * x6 + x1 * (-x1 + x2 + x3 - x4 + x5 + x6) x2 * x5 + x3 * x6 - x2 * x3 - x5 * x6 + x1 * (-x1 + x2 + x3 - x4 + x5 + x6) ... @@ -20,7 +20,7 @@ object Kepler { ... @@ -20,7 +20,7 @@ object Kepler { def kepler1(x1: Real, x2: Real, x3: Real, x4: Real): Real = { def kepler1(x1: Real, x2: Real, x3: Real, x4: Real): Real = { require(4 <= x1 && x1 <= 6.36 && 0.04 <= x2 && x2 <= 0.0636 && 40 <= x3 && x3 <= 63.6 && require(4 <= x1 && x1 <= 6.36 && 0.04 <= x2 && x2 <= 0.0636 && 40 <= x3 && x3 <= 63.6 && 0 <= x4 && x4 <= 0) -6.36 <= x4 && x4 <= -4) x1 * x4 * (-x1 + x2 + x3 - x4) + x2 * (x1 - x2 + x3 + x4) + x3 * (x1 + x2 - x3 + x4) - x1 * x4 * (-x1 + x2 + x3 - x4) + x2 * (x1 - x2 + x3 + x4) + x3 * (x1 + x2 - x3 + x4) - x2 * x3 * x4 - x1 * x3 - x1 * x2 - x4 x2 * x3 * x4 - x1 * x3 - x1 * x2 - x4 ... @@ -28,8 +28,8 @@ object Kepler { ... @@ -28,8 +28,8 @@ object Kepler { } // 4.50e–13 } // 4.50e–13 def kepler2(x1: Real, x2: Real, x3: Real, x4: Real, x5: Real, x6: Real): Real = { def kepler2(x1: Real, x2: Real, x3: Real, x4: Real, x5: Real, x6: Real): Real = { require(4 <= x1 && x1 <= 6.36 && 0 <= x2 && x2 <= 0 && 40 <= x3 && x3 <= 63.6 && require(4 <= x1 && x1 <= 6.36 && 0.0001 <= x2 && x2 <= 0.00011 && 40 <= x3 && x3 <= 63.6 && 0 <= x4 && x4 <= 0 && 4 <= x5 && x5 <= 6.36 && 4 <= x6 && x6 <= 6.36) -6.36 <= x4 && x4 <= -4 && 4 <= x5 && x5 <= 6.36 && 4 <= x6 && x6 <= 6.36) x1 * x4 * (-x1 + x2 + x3 - x4 + x5 + x6) + x2 * x5 * (x1 - x2 + x3 + x4 - x5 + x6) + x1 * x4 * (-x1 + x2 + x3 - x4 + x5 + x6) + x2 * x5 * (x1 - x2 + x3 + x4 - x5 + x6) + x3* x6 * (x1 + x2 - x3 + x4 + x5 - x6) - x2 * x3 * x4 - x3* x6 * (x1 + x2 - x3 + x4 + x5 - x6) - x2 * x3 * x4 - ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!