Skip to content

Commit 54218f5

Browse files
try to solve weird desobf issue
1 parent ac0cdc7 commit 54218f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/rae/formicapi/TestSolvers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void testGradientDescent1() {
1414
}
1515
@Test
1616
public void testGradientDescent2() {
17-
float result = Solvers.gradientDecent((x)-> (float) Math.abs(Math.cos(x)),0, 0.1f,0.01f);
17+
float result = Solvers.gradientDecent((x)-> (float) Math.abs(Math.cos(x)),1e-3f, 0.1f,0.01f);
1818
float tolerance = 1e-6f;
1919
double expected = Math.PI/2f;
2020
assertTrue(result > expected- tolerance && result < expected + tolerance,() -> String.valueOf(result));

0 commit comments

Comments
 (0)