crowlogic / arb4j

arb4j is a Java API for the arbitrary precision ball arithmetic library found at http://arblib.org
Other
1 stars 0 forks source link

Jacobi polynomials as RationalFunctions #545

Open crowlogic opened 20 hours ago

crowlogic commented 20 hours ago
jshell> var Q = new RationalJacobiPolynomials(RealConstants.half,RealConstants.half);
jshell> seq(0,5,Q);;
|  Exception java.lang.NoSuchMethodError: 'arb.RationalFunction arb.RationalFunction.sub(arb.Real, int, arb.RationalFunction)'
|        at P.evaluate (Unknown Source)
|        at RationalJacobiPolynomials.evaluate (RationalJacobiPolynomials.java:115)
crowlogic commented 17 hours ago
jshell> 
[crow@c15 20241203-09:41:41PM]~$ arb
jshell> var P = new RationalJacobiPolynomials(RealConstants.half,RealConstants.half);
jshell> P.evaluate(2,128);
$2 ==> (20*x^2-5)/8
jshell> P.evaluate(2,128);
|  Exception arb.exceptions.ArbException: numeratorAddress=132774557242432
denominatorAddress=132774557242368
numerator=132774557231232
denominator=132774557231264

|        at RationalFunction.assertPointerConsistency (RationalFunction.java:532)
|        at RationalFunction.set (RationalFunction.java:598)
|        at RationalFunction.div (RationalFunction.java:56)
|        at P.evaluate (Unknown Source)
|        at P.evaluate (Unknown Source)
|        at RationalJacobiPolynomials.evaluate (RationalJacobiPolynomials.java:115)
|        at RationalJacobiPolynomials.evaluate (RationalJacobiPolynomials.java:1)
|        at Function.evaluate (Function.java:242)
|        at Function.evaluate (Function.java:222)
|        at Sequence.evaluate (Sequence.java:50)
|        at (#3:1)
jshell> 
crowlogic commented 17 hours ago
[crow@c15 20241203-09:41:41PM]~$ arb
jshell> var P = new RationalJacobiPolynomials(RealConstants.half,RealConstants.half);
jshell> P.evaluate(2,128);
$2 ==> (20*x^2-5)/8
jshell> P.evaluate(2,128);
|  Exception arb.exceptions.ArbException: numeratorAddress=132774557242432
denominatorAddress=132774557242368
numerator=132774557231232
denominator=132774557231264

|        at RationalFunction.assertPointerConsistency (RationalFunction.java:532)
|        at RationalFunction.set (RationalFunction.java:598)
|        at RationalFunction.div (RationalFunction.java:56)
|        at P.evaluate (Unknown Source)
|        at P.evaluate (Unknown Source)
|        at RationalJacobiPolynomials.evaluate (RationalJacobiPolynomials.java:115)
|        at RationalJacobiPolynomials.evaluate (RationalJacobiPolynomials.java:1)
|        at Function.evaluate (Function.java:242)
|        at Function.evaluate (Function.java:222)
|        at Sequence.evaluate (Sequence.java:50)
|        at (#3:1)
jshell>