diff --git a/shell.start b/shell.start index 4aa8522b9..861c45a93 100644 --- a/shell.start +++ b/shell.start @@ -7,6 +7,7 @@ import static arb.expressions.Expression.*; import static arb.functions.real.RealFunction.*; import static arb.RoundingMode.*; import static arb.RealConstants.*; +import arb.MagnitudeConstants; import arb.expressions.Expression; import arb.functions.*; import arb.RealConstants; diff --git a/src/test/java/arb/RealTest.java b/src/test/java/arb/RealTest.java index 08eda2b96..85e1b74fe 100755 --- a/src/test/java/arb/RealTest.java +++ b/src/test/java/arb/RealTest.java @@ -8,7 +8,28 @@ public class RealTest extends TestCase { - + public void testRisingFactorialLong() + { + try ( Real real = new Real("6.9", + 128)) + { + Real y = real.risingFactorial(3, 128, new Real()); + assertEquals(485.139, y.doubleValue()); + } + } + + public void testRisingFactorialReal() + { + try ( Real real = new Real("6.9", + 128); + Real three = new Real("3", + 128);) + { + Real y = real.risingFactorial(three, 128, new Real()); + assertEquals(485.139, y.doubleValue()); + } + } + public void testAddOneAndOne() { try ( Real real = new Real();) @@ -40,7 +61,6 @@ public void testShift() Real shifted = realInstance.shift(5); assertEquals(5, shifted.size()); - } }