mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 15:30:09 -08:00
Adjust unit tests. Set the number of significant figures in the output to 50.
This commit is contained in:
parent
68fbcd2d7c
commit
4cf4ba98a8
|
@ -30,7 +30,7 @@ public class PreciseNumber extends NumberInterface {
|
|||
/**
|
||||
* MathContext that is used when rounding a number prior to output.
|
||||
*/
|
||||
private static MathContext outputContext = new MathContext(30);
|
||||
private static MathContext outputContext = new MathContext(50);
|
||||
|
||||
/**
|
||||
* MathContext that is actually used in calculations.
|
||||
|
|
4
src/test/java/org/nwapw/abacus/tests/CalculationTests.java
Normal file → Executable file
4
src/test/java/org/nwapw/abacus/tests/CalculationTests.java
Normal file → Executable file
|
@ -88,8 +88,8 @@ public class CalculationTests {
|
|||
public void testExp(){
|
||||
testOutput("exp0", "exp(0)", "1");
|
||||
testOutput("exp1", "exp(1)", "2.718281828459045235360287471352662497757247");
|
||||
testOutput("exp300", "exp(300)", "19424263952412559365842088360176992193662086");
|
||||
testOutput("exp300", "exp(300)", "19424263952412559365842088360176992193662086");
|
||||
testOutput("exp300", "exp(300)", "1.9424263952412559365842088360176992193662086");
|
||||
testOutput("exp(-500)", "exp((500)`)", "7.1245764067412855315491573771227552469277568");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue
Block a user