Skip to content

Commit

Permalink
Close #491
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Nov 28, 2024
1 parent 5f9415d commit cee8f16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/main/java/arb/functions/SphericalBesselFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public void initialize()

}

public RealPolynomial evaluate(Integer t, int order, int bits, RealPolynomial res)
public RealFunction evaluate(Integer t, int order, int bits, RealFunction res)
{
try ( Real blip = new Real())
return (y, functionalOrder, functionalBits, result) ->
{
return res.set(evaluate(blip.set(t), order, bits, blip));
}
return evaluate( y, functionalOrder, functionalBits, result);
};
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public static void testj0ViaRealFunctionalExpression()
boolean caught = false;

RealFunctionSequence jk = RealFunctionSequence.express("k->j(k,x)");
RealFunction y = jk.evaluate(3, 128);
RealFunction y = jk.evaluate(3, 128);
var z = y.eval(2.3);
// System.out.println("j0(3)=" + z);
assertEquals(0.0856499630648839, z);

System.out.println("j0(3)=" + y);

assert false : "cool";
}

public static void testj0ViaExpression()
Expand Down

0 comments on commit cee8f16

Please sign in to comment.