From 526f80c8625534a4c71ae22b41582d60e92c28d8 Mon Sep 17 00:00:00 2001 From: axexlck Date: Mon, 11 Mar 2024 03:30:00 +0100 Subject: [PATCH] bump apfloat from 1.13.0 to 1.14.0-SNAPSHOT - define polyLog - https://github.com/mtommila/apfloat/issues/47 --- .../core/builtin/SpecialFunctions.java | 10 +-- .../core/expression/ApcomplexNum.java | 9 +++ .../core/expression/ApfloatNum.java | 17 +++++ .../core/expression/ComplexNum.java | 10 +++ .../org/matheclipse/core/expression/Num.java | 16 +++++ .../matheclipse/core/interfaces/IExpr.java | 4 ++ .../core/system/BesselFunctionTest.java | 72 ++++++------------- .../core/system/LowercaseTestCase.java | 23 +++--- symja_android_library/pom.xml | 2 +- 9 files changed, 99 insertions(+), 64 deletions(-) diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/SpecialFunctions.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/SpecialFunctions.java index 92a089ca86..f1f48ea4ca 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/SpecialFunctions.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/SpecialFunctions.java @@ -1941,26 +1941,28 @@ public IExpr evaluate(final IAST ast, EvalEngine engine) { @Override public IExpr numericFunction(IAST ast, final EvalEngine engine) { if (ast.argSize() == 2) { - IInexactNumber n = (IInexactNumber) ast.arg1(); + IInexactNumber v = (IInexactNumber) ast.arg1(); IInexactNumber z = (IInexactNumber) ast.arg2(); - IExpr temp = polyLogSymbolic(n, z); + IExpr temp = polyLogSymbolic(v, z); if (temp.isPresent()) { return temp; } + // issue #929 + // return v.polyLog(z); if (engine.isDoubleMode()) { try { double nDouble = Double.NaN; double xDouble = Double.NaN; try { - nDouble = n.evalf(); + nDouble = v.evalf(); xDouble = z.evalf(); } catch (ValidateException ve) { } if (Double.isNaN(nDouble) || Double.isNaN(xDouble)) { - Complex nComplex = n.evalfc(); + Complex nComplex = v.evalfc(); Complex xComplex = z.evalfc(); return F.complexNum(ZetaJS.polyLog(nComplex, xComplex)); } else { diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApcomplexNum.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApcomplexNum.java index 34af868868..6d37c73125 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApcomplexNum.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApcomplexNum.java @@ -1162,6 +1162,15 @@ public IExpr polyGamma(long n) { return IComplexNum.super.polyGamma(n); } + @Override + public IExpr polyLog(IExpr arg2) { + if (arg2 instanceof INumber) { + return valueOf( + EvalEngine.getApfloat().polylog(fApcomplex, ((INumber) arg2).apcomplexValue())); + } + return IComplexNum.super.polyLog(arg2); + } + @Override public IExpr pow(double value) { return valueOf(EvalEngine.getApfloat().pow(fApcomplex, new Apfloat(value))); diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApfloatNum.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApfloatNum.java index 449d503c36..0ba5644d5f 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApfloatNum.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ApfloatNum.java @@ -1285,6 +1285,23 @@ public IExpr polyGamma(long n) { return INum.super.polyGamma(n); } + @Override + public IExpr polyLog(IExpr arg2) { + if (arg2 instanceof IReal) { + try { + return valueOf( + EvalEngine.getApfloat().polylog(fApfloat, ((IReal) arg2).apfloatValue())); + } catch (ArithmeticException | ApfloatRuntimeException e) { + // try as computation with complex numbers + } + } + if (arg2 instanceof INumber) { + return F.complexNum( + EvalEngine.getApfloat().polylog(fApfloat, ((INumber) arg2).apcomplexValue())); + } + return INum.super.polyLog(arg2); + } + @Override public ApfloatNum pow(double value) { return valueOf(EvalEngine.getApfloat().pow(fApfloat, new Apfloat(value))); diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ComplexNum.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ComplexNum.java index c7033bf00d..7ca55d8ae2 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ComplexNum.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ComplexNum.java @@ -1323,6 +1323,16 @@ public IExpr polyGamma(long n) { return IComplexNum.super.polyGamma(n); } + @Override + public IExpr polyLog(IExpr arg2) { + if (arg2 instanceof INumber) { + Apcomplex polylog = EvalEngine.getApfloatDouble().polylog(apcomplexValue(), + ((INumber) arg2).apcomplexValue()); + return F.complexNum(polylog.real().doubleValue(), polylog.imag().doubleValue()); + } + return IComplexNum.super.polyLog(arg2); + } + @Override public IComplexNum pow(final IComplexNum val) { if (Complex.equals(fComplex, Complex.ZERO, Config.DOUBLE_EPSILON)) { diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/Num.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/Num.java index f32d9edda9..812520bc3a 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/Num.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/Num.java @@ -1340,6 +1340,22 @@ public IExpr polyGamma(long n) { return INum.super.polyGamma(n); } + + @Override + public IExpr polyLog(IExpr arg2) { + if (arg2 instanceof INumber) { + if (arg2 instanceof IReal) { + Apfloat polylog = + EvalEngine.getApfloatDouble().polylog(apfloatValue(), ((IReal) arg2).apfloatValue()); + return F.num(polylog.doubleValue()); + } + Apcomplex polylog = EvalEngine.getApfloatDouble().polylog(apfloatValue(), + ((INumber) arg2).apcomplexValue()); + return F.complexNum(polylog.real().doubleValue(), polylog.imag().doubleValue()); + } + return INum.super.polyLog(arg2); + } + @Override public Num pow(int n) { return valueOf(Math.pow(value, n)); diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/interfaces/IExpr.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/interfaces/IExpr.java index 3e3d5675da..b308635ba8 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/interfaces/IExpr.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/interfaces/IExpr.java @@ -5692,6 +5692,10 @@ default IExpr polyGamma(long n) { return F.NIL; } + default IExpr polyLog(IExpr x) { + return F.NIL; + } + @Override default IExpr pow(double n) { return S.Power.of(this, F.num(n)); diff --git a/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/BesselFunctionTest.java b/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/BesselFunctionTest.java index b3f65c7dc6..c79d4873ac 100644 --- a/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/BesselFunctionTest.java +++ b/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/BesselFunctionTest.java @@ -8,116 +8,90 @@ public class BesselFunctionTest extends ExprEvaluatorTestCase { @Test public void testAiryAi() { checkNumeric("N(AiryAi(2),50)", // - "0.034924130423274379135322080791807609761060213897584"); + "0.034924130423274379135322080791807609761060213897583"); checkNumeric("N(AiryAi(7/3-2/5*I),50)", // - "0.016874804605341661659775534626271816427074044995773+I*0.012798024737488814075510100061236077085813173622613"); + "0.016874804605341661659775534626271816427074044995777+I*0.012798024737488814075510100061236077085813173622615"); checkNumeric("AiryAi(0.0)", // "0.35502805388781723"); checkNumeric("AiryAi(1.8)", // - "0.04703621686684581"); + "0.047036216866845805"); checkNumeric("AiryAi(2.0)", // - "0.03492413042327437"); + "0.034924130423274379"); checkNumeric("AiryAi(2.5+I)", // - "-0.00191208927137838+I*(-0.01803290576534917)"); + "-0.0019120892713783827+I*(-0.0180329057653492)"); checkNumeric("AiryAi({1.2, 1.5, 1.8})", // - "{0.10612576226331255,0.07174949700810542,0.04703621686684581}"); + "{0.10612576226331254,0.071749497008105409,0.047036216866845805}"); checkNumeric("AiryAi(-2.0-2.0*I)", // - "3.4208376424760294+I*(-2.390652519773028)"); + "3.4208376424760303+I*(-2.390652519773028)"); checkNumeric("Table(AiryAi(x+I*y), {x,-2,2,0.5}, {y,-2 ,2,0.5})", // - "{{3.4208376424760294+I*(-2.390652519773028),1.3358308195081794+I*(-1.4955254358275654),0.5563045393711925+I*(-0.7898014381882759)," // - + "0.290030941062661+I*(-0.3303078762239586),0.22740742820168555,0.290030941062661+I*0.3303078762239586,0.5563045393711925+I*0.7898014381882759," // - + "1.3358308195081794+I*1.4955254358275654,3.4208376424760294+I*2.390652519773028},{3.097441721400677+I*0.2760069240069372," // - + "1.630504352621882+I*(-0.2888797473203903),0.8849522834391784+I*(-0.28932577386387387),0.5556884983907999+I*(-0.15402139368443876)," // - + "0.46425657774886936,0.5556884983907999+I*0.15402139368443876,0.8849522834391784+I*0.28932577386387387,1.630504352621882+I*0.2888797473203903," // - + "3.097441721400677+I*(-0.2760069240069372)},{1.6950640897970375+I*1.4241845593465408,1.2102764053596837+I*0.4733886603613785," // - + "0.8221174265552725+I*0.11996634266442434,0.6038101468250492+I*0.01701729306256589,0.5355608832923521,0.6038101468250492+I*(-0.01701729306256589)," // - + "0.8221174265552725+I*(-0.11996634266442434),1.2102764053596837+I*(-0.4733886603613785),1.6950640897970375+I*(-1.4241845593465408)}," // - + "{0.49718792123513506+I*1.3932056575076226,0.6389761019209798+I*0.6893216583744993,0.5790199658388449+I*0.3084924553867702," // - + "0.504653898335663+I*0.11433718873992552,0.4757280916105395,0.504653898335663+I*(-0.11433718873992552)," // - + "0.5790199658388449+I*(-0.3084924553867702),0.6389761019209798+I*(-0.6893216583744993),0.49718792123513506+I*(-1.3932056575076226)}," // - + "{-0.10961462643277392+I*0.9115836001138607,0.2237278511097556+I*0.5781126623007086,0.3314933054321412+I*0.31744985896844374," // - + "0.3536492233751019+I*0.13680205422852426,0.3550280538878172,0.3536492233751019+I*(-0.13680205422852426)," // - + "0.3314933054321412+I*(-0.31744985896844374),0.2237278511097556+I*(-0.5781126623007086),-0.10961462643277392+I*(-0.9115836001138607)}," // - + "{-0.26626152971283157+I*0.45548648549281234,0.0160995085282936+I*0.3726593373594341,0.1571184464999862+I*0.24103981384021075," // - + "0.216186344778126+I*0.11483063987764812,0.23169360648083348,0.216186344778126+I*(-0.11483063987764812)," // - + "0.1571184464999862+I*(-0.24103981384021075),0.0160995085282936+I*(-0.3726593373594341),-0.26626152971283157+I*(-0.45548648549281234)}," // - + "{-0.21938625498142753+I*0.1753859114081094,-0.04980102241778393+I*0.19961798336614792,0.06045830837183815+I*0.1518895658771814," // - + "0.11791053318992208+I*0.07897644336959968,0.1352924163128814,0.11791053318992208+I*(-0.07897644336959968)," // - + "0.06045830837183815+I*(-0.1518895658771814),-0.04980102241778393+I*(-0.19961798336614792),-0.21938625498142753+I*(-0.1753859114081094)}," // - + "{-0.13091794569465862+I*0.04635854758704819,-0.05043059157433899+I*0.09163920284755143,0.0170489200545795+I*0.08326920467824044," // - + "0.05821728389747626+I*0.0470877960039403,0.07174949700810541,0.05821728389747626+I*(-0.0470877960039403)," // - + "0.0170489200545795+I*(-0.08326920467824044),-0.05043059157433899+I*(-0.09163920284755143),-0.13091794569465862+I*(-0.04635854758704819)}," // - + "{-0.06395922827425829+I*0.00212067870262243,-0.03319654670091112+I*0.03642688062744132,0.00169776685726545+I*0.04071801705322398," // - + "0.02628510531089687+I*0.02504369530874619,0.03492413042327437,0.02628510531089687+I*(-0.02504369530874619)," // - + "0.00169776685726545+I*(-0.04071801705322398),-0.03319654670091112+I*(-0.03642688062744132),-0.06395922827425829+I*(-0.00212067870262243)}}"); + "{{3.4208376424760303+I*(-2.390652519773028),1.3358308195081796+I*(-1.4955254358275654),0.5563045393711925+I*(-0.7898014381882759),0.29003094106266103+I*(-0.3303078762239586),0.22740742820168555,0.29003094106266103+I*0.3303078762239586,0.5563045393711925+I*0.7898014381882759,1.3358308195081796+I*1.4955254358275654,3.4208376424760303+I*2.390652519773028},{3.097441721400677+I*0.27600692400693716,1.6305043526218825+I*(-0.2888797473203903),0.8849522834391784+I*(-0.28932577386387387),0.5556884983907999+I*(-0.15402139368443876),0.4642565777488694,0.5556884983907999+I*0.15402139368443876,0.8849522834391784+I*0.28932577386387387,1.6305043526218825+I*0.2888797473203903,3.097441721400677+I*(-0.27600692400693716)},{1.6950640897970375+I*1.4241845593465408,1.210276405359684+I*0.4733886603613785,0.8221174265552726+I*0.11996634266442434,0.6038101468250493+I*0.01701729306256588,0.5355608832923521,0.6038101468250493+I*(-0.01701729306256588),0.8221174265552726+I*(-0.11996634266442434),1.210276405359684+I*(-0.4733886603613785),1.6950640897970375+I*(-1.4241845593465408)},{0.49718792123513506+I*1.3932056575076226,0.6389761019209799+I*0.6893216583744993,0.5790199658388449+I*0.3084924553867703,0.504653898335663+I*0.11433718873992552,0.4757280916105396,0.504653898335663+I*(-0.11433718873992552),0.5790199658388449+I*(-0.3084924553867703),0.6389761019209799+I*(-0.6893216583744993),0.49718792123513506+I*(-1.3932056575076226)},{-0.10961462643277392+I*0.911583600113861,0.2237278511097556+I*0.5781126623007086,0.3314933054321412+I*0.31744985896844374,0.3536492233751019+I*0.1368020542285243,0.3550280538878172,0.3536492233751019+I*(-0.1368020542285243),0.3314933054321412+I*(-0.31744985896844374),0.2237278511097556+I*(-0.5781126623007086),-0.10961462643277392+I*(-0.911583600113861)},{-0.26626152971283157+I*0.45548648549281234,0.01609950852829359+I*0.3726593373594342,0.15711844649998616+I*0.24103981384021075,0.216186344778126+I*0.11483063987764812,0.23169360648083348,0.216186344778126+I*(-0.11483063987764812),0.15711844649998616+I*(-0.24103981384021075),0.01609950852829359+I*(-0.3726593373594342),-0.26626152971283157+I*(-0.45548648549281234)},{-0.21938625498142755+I*0.1753859114081094,-0.04980102241778393+I*0.19961798336614792,0.06045830837183814+I*0.1518895658771814,0.11791053318992206+I*0.07897644336959969,0.1352924163128814,0.11791053318992206+I*(-0.07897644336959969),0.06045830837183814+I*(-0.1518895658771814),-0.04980102241778393+I*(-0.19961798336614792),-0.21938625498142755+I*(-0.1753859114081094)},{-0.13091794569465862+I*0.04635854758704819,-0.050430591574339+I*0.09163920284755143,0.01704892005457949+I*0.08326920467824044,0.05821728389747625+I*0.04708779600394031,0.0717494970081054,0.05821728389747625+I*(-0.04708779600394031),0.01704892005457949+I*(-0.08326920467824044),-0.050430591574339+I*(-0.09163920284755143),-0.13091794569465862+I*(-0.04635854758704819)},{-0.06395922827425828+I*0.0021206787026224186,-0.03319654670091111+I*0.03642688062744131,0.0016977668572654568+I*0.04071801705322398,0.02628510531089685+I*0.02504369530874621,0.03492413042327437,0.02628510531089685+I*(-0.02504369530874621),0.0016977668572654568+I*(-0.04071801705322398),-0.03319654670091111+I*(-0.03642688062744131),-0.06395922827425828+I*(-0.0021206787026224186)}}"); } @Test public void testAiryAiPrime() { checkNumeric("N(AiryAiPrime(5/2),50)", // - "-0.02625088103590323036489549629723250944631783813579"); + "-0.02625088103590323036489549629723250944631783813577"); checkNumeric("N(AiryAiPrime(7/3-2/5*I),50)", // - "-0.028917778124487504513141104922968418472028212650388+I*(-0.018811415742061357600555631896195799635668608492361)"); + "-0.028917778124487504513141104922968418472028212650386+I*(-0.018811415742061357600555631896195799635668608492363)"); checkNumeric("AiryAiPrime(0.5)", // "-0.22491053266468389"); checkNumeric("AiryAiPrime(2.5)", // - "-0.02625088103590328"); + "-0.02625088103590323"); checkNumeric("AiryAiPrime(2.5+I)", // - "-0.00187920860963519+I*0.03102762428412439"); + "-0.001879208609635154+I*0.03102762428412434"); checkNumeric("AiryAiPrime({1.2, 1.5, 1.8})", // - "{-0.13278537855722617,-0.0973820128423013,-0.06852478011861092}"); + "{-0.13278537855722617,-0.097382012842301319,-0.068524780118610934}"); checkNumeric("AiryAiPrime(-2.0-2.0*I)", // "1.6487871524446456+I*6.415538518806123"); checkNumeric("Table(AiryAiPrime(x+I*y), {x,-2,2,0.5}, {y,-2 ,2,0.5})", // - "{{1.6487871524446456+I*6.415538518806123,1.6878596822355925+I*2.4806208072054083,1.1349598127621305+I*0.8858793656453342,0.7458883289066515+I*0.27431948858168653,0.618259020741691,0.7458883289066515+I*(-0.27431948858168653),1.1349598127621305+I*(-0.8858793656453342),1.6878596822355925+I*(-2.4806208072054083),1.6487871524446456+I*(-6.415538518806123)},{-2.3030550440722424+I*3.8774173107220395,-0.3345378893766945+I*2.095682670415176,0.20512029484999575+I*0.9922668479364634,0.30343326708541907+I*0.3834721333013195,0.3091869672024104,0.30343326708541907+I*(-0.3834721333013195),0.20512029484999575+I*(-0.9922668479364634),-0.3345378893766945+I*(-2.095682670415176),-2.3030550440722424+I*(-3.8774173107220395)},{-2.8676537857073603+I*0.8724917728615671,-1.1461231789596997+I*0.9327396090334683,-0.3790604792268335+I*0.6045001308622461,-0.08408287429425183+I*0.2780574347535299,-0.01016056711664521,-0.08408287429425183+I*(-0.2780574347535299),-0.3790604792268335+I*(-0.6045001308622461),-1.1461231789596997+I*(-0.9327396090334683),-2.8676537857073603+I*(-0.8724917728615671)},{-1.811457463315382+I*(-0.732706185063204),-1.0381897157458941+I*0.0149857422258546,-0.5329651964544924+I*0.16777317009366138,-0.2788911652372878+I*0.11225566397655384,-0.20408167033954736,-0.2788911652372878+I*(-0.11225566397655384),-0.5329651964544924+I*(-0.16777317009366138),-1.0381897157458941+I*(-0.0149857422258546),-1.811457463315382+I*0.732706185063204},{-0.6778858159258347+I*(-1.0346546678889406),-0.6110271969857893+I*(-0.37863048108929087),-0.432492659841807+I*(-0.09804785622924322),-0.30314078016520546+I*(-0.01115385005497297),-0.2588194037928068,-0.30314078016520546+I*0.01115385005497297,-0.432492659841807+I*0.09804785622924322,-0.6110271969857893+I*0.37863048108929087,-0.6778858159258347+I*1.0346546678889406},{-0.03674926477766765+I*(-0.7457372872160632),-0.2451099200503726+I*(-0.40188530591715615),-0.26510577281460046+I*(-0.18295697728822785),-0.2387168090817686+I*(-0.06615704122109355),-0.2249105326646839,-0.2387168090817686+I*0.06615704122109355,-0.26510577281460046+I*0.18295697728822785,-0.2451099200503726+I*0.40188530591715615,-0.03674926477766765+I*0.7457372872160632},{0.1704449781789148+I*(-0.38762243941329505),-0.04512302735081415+I*(-0.2812572342962744),-0.1306279534996475+I*(-0.16306759644932392),-0.1551593916744975+I*(-0.07138312043218831),-0.1591474412967932,-0.1551593916744975+I*0.07138312043218831,-0.1306279534996475+I*0.16306759644932392,-0.04512302735081415+I*0.2812572342962744,0.1704449781789148+I*0.38762243941329505},{0.1641490955452542+I*(-0.15233207018896208),0.02699428387462873+I*(-0.15595954460697653),-0.05167696117033663+I*(-0.11014338866453188),-0.08754456378052171+I*(-0.05441486420112598),-0.0973820128423013,-0.08754456378052171+I*0.05441486420112598,-0.05167696117033663+I*0.11014338866453188,0.02699428387462873+I*0.15595954460697653,0.1641490955452542+I*0.15233207018896208},{0.10223125956387928+I*(-0.04122584003432774),0.03589425195019047+I*(-0.07249651606383493),-0.01511027928322696+I*(-0.06245895471360014),-0.04401537826205696+I*(-0.03416918110308041),-0.05309038443365361,-0.04401537826205696+I*0.03416918110308041,-0.01511027928322696+I*0.06245895471360014,0.03589425195019047+I*0.07249651606383493,0.10223125956387928+I*0.04122584003432774}}"); + "{{1.6487871524446456+I*6.415538518806123,1.6878596822355927+I*2.4806208072054083,1.1349598127621308+I*0.8858793656453342,0.7458883289066517+I*0.27431948858168653,0.618259020741691,0.7458883289066517+I*(-0.27431948858168653),1.1349598127621308+I*(-0.8858793656453342),1.6878596822355927+I*(-2.4806208072054083),1.6487871524446456+I*(-6.415538518806123)},{-2.3030550440722424+I*3.8774173107220395,-0.3345378893766945+I*2.095682670415176,0.20512029484999575+I*0.9922668479364634,0.30343326708541907+I*0.3834721333013195,0.3091869672024104,0.30343326708541907+I*(-0.3834721333013195),0.20512029484999575+I*(-0.9922668479364634),-0.3345378893766945+I*(-2.095682670415176),-2.3030550440722424+I*(-3.8774173107220395)},{-2.8676537857073603+I*0.8724917728615671,-1.1461231789596997+I*0.9327396090334683,-0.3790604792268335+I*0.6045001308622461,-0.0840828742942518+I*0.2780574347535299,-0.0101605671166452,-0.0840828742942518+I*(-0.2780574347535299),-0.3790604792268335+I*(-0.6045001308622461),-1.1461231789596997+I*(-0.9327396090334683),-2.8676537857073603+I*(-0.8724917728615671)},{-1.8114574633153824+I*(-0.732706185063204),-1.0381897157458941+I*0.01498574222585462,-0.5329651964544925+I*0.1677731700936614,-0.2788911652372878+I*0.11225566397655384,-0.20408167033954736,-0.2788911652372878+I*(-0.11225566397655384),-0.5329651964544925+I*(-0.1677731700936614),-1.0381897157458941+I*(-0.01498574222585462),-1.8114574633153824+I*0.732706185063204},{-0.6778858159258347+I*(-1.0346546678889406),-0.6110271969857893+I*(-0.37863048108929087),-0.4324926598418071+I*(-0.09804785622924324),-0.30314078016520546+I*(-0.01115385005497297),-0.2588194037928068,-0.30314078016520546+I*0.01115385005497297,-0.4324926598418071+I*0.09804785622924324,-0.6110271969857893+I*0.37863048108929087,-0.6778858159258347+I*1.0346546678889406},{-0.03674926477766766+I*(-0.7457372872160632),-0.2451099200503726+I*(-0.40188530591715615),-0.26510577281460046+I*(-0.18295697728822785),-0.2387168090817686+I*(-0.06615704122109355),-0.2249105326646839,-0.2387168090817686+I*0.06615704122109355,-0.26510577281460046+I*0.18295697728822785,-0.2451099200503726+I*0.40188530591715615,-0.03674926477766766+I*0.7457372872160632},{0.17044497817891482+I*(-0.3876224394132951),-0.04512302735081416+I*(-0.2812572342962744),-0.1306279534996475+I*(-0.16306759644932392),-0.1551593916744975+I*(-0.07138312043218832),-0.1591474412967932,-0.1551593916744975+I*0.07138312043218832,-0.1306279534996475+I*0.16306759644932392,-0.04512302735081416+I*0.2812572342962744,0.17044497817891482+I*0.3876224394132951},{0.1641490955452542+I*(-0.15233207018896208),0.02699428387462872+I*(-0.15595954460697653),-0.05167696117033663+I*(-0.11014338866453188),-0.0875445637805217+I*(-0.05441486420112602),-0.09738201284230132,-0.0875445637805217+I*0.05441486420112602,-0.05167696117033663+I*0.11014338866453188,0.02699428387462872+I*0.15595954460697653,0.1641490955452542+I*0.15233207018896208},{0.10223125956387928+I*(-0.04122584003432774),0.03589425195019048+I*(-0.07249651606383496),-0.01511027928322695+I*(-0.06245895471360013),-0.04401537826205691+I*(-0.03416918110308045),-0.05309038443365363,-0.04401537826205691+I*0.03416918110308045,-0.01511027928322695+I*0.06245895471360013,0.03589425195019048+I*0.07249651606383496,0.10223125956387928+I*0.04122584003432774}}"); } @Test public void testAiryBi() { checkNumeric("N(AiryBi(2),50)", // - "3.2980949999782147102806044252234524220039759634035"); + "3.2980949999782147102806044252234524220039759634036"); checkNumeric("N(AiryBi(7/3-2/5*I),50)", // "4.2040796385460579391040264449272350088535559144026+I*(-2.6143893634206276469827729962237112678064082878901)"); checkNumeric("AiryBi(1.8)", // "2.5958693567439062"); checkNumeric("AiryBi(2.0)", // - "3.2980949999782146"); + "3.2980949999782147"); checkNumeric("AiryBi(2.5+I)", // "0.5125437840170126+I*5.334995579271627"); checkNumeric("AiryBi(-2.0-2.0*I)", // "-2.3957473642273075+I*(-3.398597652739943)"); checkNumeric("AiryBi({1.2, 1.5, 1.8})", // - "{1.421133675610348,1.8789415037478949,2.5958693567439062}"); + "{1.421133675610348,1.878941503747895,2.5958693567439062}"); checkNumeric("Table(AiryBi(x+I*y), {x,-2,2,0.5}, {y,-2 ,2,0.5})", // - "{{-2.3957473642273075+I*(-3.398597652739943),-1.5215235174057462+I*(-1.2926640316339846),-0.8669433867252541+I*(-0.48009810364065153),-0.5181812413053978+I*(-0.16077529192850534),-0.41230258795639846,-0.5181812413053978+I*0.16077529192850534,-0.8669433867252541+I*0.48009810364065153,-1.5215235174057462+I*1.2926640316339846,-2.3957473642273075+I*3.398597652739943},{0.2931467237726671+I*(-3.069446130475142),-0.2752096028849744+I*(-1.5640132276147374),-0.2994124789231037+I*(-0.7493316436257118),-0.22584876813039773+I*(-0.3010108561545395),-0.19178486115704124,-0.22584876813039773+I*0.3010108561545395,-0.2994124789231037+I*0.7493316436257118,-0.2752096028849744+I*1.5640132276147374,0.2931467237726671+I*3.069446130475142},{1.470664049922231+I*(-1.680152836300583),0.5460441211746294+I*(-1.149991696532466),0.21429040153487355+I*(-0.6739169237227052),0.12042394515743984+I*(-0.30639842195334394),0.1039973894969446,0.12042394515743984+I*0.30639842195334394,0.21429040153487355+I*0.6739169237227052,0.5460441211746294+I*1.149991696532466,1.470664049922231+I*1.680152836300583},{1.4644238527609936+I*(-0.5221254139942109),0.8253017961184056+I*(-0.6270187094804667),0.5215176250725336+I*(-0.4782484662833215),0.40700797160845703+I*(-0.2501387359622305),0.38035265975105387,0.40700797160845703+I*0.2501387359622305,0.5215176250725336+I*0.4782484662833215,0.8253017961184056+I*0.6270187094804667,1.4644238527609936+I*0.5221254139942109},{0.9853719221586963+I*0.01242055530982514,0.7646118577873012+I*(-0.3131746730618384),0.6488582083303949+I*(-0.3449586347680484),0.6172080740295223+I*(-0.21132635103715733),0.6149266274460007,0.6172080740295223+I*0.21132635103715733,0.6488582083303949+I*0.3449586347680484,0.7646118577873012+I*0.3131746730618384,0.9853719221586963+I*(-0.01242055530982514)},{0.48131792917659666+I*0.06009303522558785,0.5746740551712626+I*(-0.27862590346396093),0.6881452731134824+I*(-0.37081539073701086),0.8041665904962326+I*(-0.24928528888317908),0.8542770431031556,0.8041665904962326+I*0.24928528888317908,0.6881452731134824+I*0.37081539073701086,0.5746740551712626+I*0.27862590346396093,0.48131792917659666+I*(-0.06009303522558785)},{0.04882203245306119+I*(-0.13327405799174843),0.33937890746257143+I*(-0.49783178172486225),0.7166580733827684+I*(-0.6198892904008447),1.0642484093060358+I*(-0.42310591658329705),1.2074235949528713,1.0642484093060358+I*0.42310591658329705,0.7166580733827684+I*0.6198892904008447,0.33937890746257143+I*0.49783178172486225,0.04882203245306119+I*0.13327405799174843},{-0.45105814237785186+I*(-0.38809414209691334),-0.01379123033946499+I*(-0.9778818927217168),0.7635143010350922+I*(-1.2190757998193475),1.5468176062000738+I*(-0.8489619949876452),1.8789415037478951,1.5468176062000738+I*0.8489619949876452,0.7635143010350922+I*1.2190757998193475,-0.01379123033946499+I*0.9778818927217168,-0.45105814237785186+I*0.38809414209691334},{-1.3357392070661755+I*(-0.5495070069716563),-0.7729973894532738+I*(-1.8324051934417909),0.7782303837570418+I*(-2.5050963000641024),2.527398794698943+I*(-1.8216184196428054),3.2980949999782148," // - + "2.527398794698943+I*1.8216184196428054,0.7782303837570416+I*2.5050963000641024,-0.7729973894532738+I*1.8324051934417909,-1.3357392070661755+I*0.5495070069716563}}"); + "{{-2.3957473642273075+I*(-3.398597652739943),-1.5215235174057462+I*(-1.2926640316339846),-0.8669433867252541+I*(-0.48009810364065153),-0.5181812413053978+I*(-0.16077529192850537),-0.41230258795639846,-0.5181812413053978+I*0.16077529192850537,-0.8669433867252541+I*0.48009810364065153,-1.5215235174057462+I*1.2926640316339846,-2.3957473642273075+I*3.398597652739943},{0.29314672377266715+I*(-3.069446130475142),-0.2752096028849744+I*(-1.5640132276147374),-0.29941247892310363+I*(-0.749331643625712),-0.22584876813039773+I*(-0.30101085615453954),-0.1917848611570412,-0.22584876813039773+I*0.30101085615453954,-0.29941247892310363+I*0.749331643625712,-0.2752096028849744+I*1.5640132276147374,0.29314672377266715+I*3.069446130475142},{1.470664049922231+I*(-1.680152836300583),0.5460441211746294+I*(-1.149991696532466),0.21429040153487355+I*(-0.6739169237227052),0.12042394515743984+I*(-0.30639842195334394),0.1039973894969446,0.12042394515743984+I*0.30639842195334394,0.21429040153487355+I*0.6739169237227052,0.5460441211746294+I*1.149991696532466,1.470664049922231+I*1.680152836300583},{1.4644238527609936+I*(-0.5221254139942108),0.8253017961184056+I*(-0.6270187094804667),0.5215176250725336+I*(-0.4782484662833215),0.40700797160845714+I*(-0.2501387359622305),0.38035265975105387,0.40700797160845714+I*0.2501387359622305,0.5215176250725336+I*0.4782484662833215,0.8253017961184056+I*0.6270187094804667,1.4644238527609936+I*0.5221254139942108},{0.9853719221586965+I*0.01242055530982516,0.7646118577873012+I*(-0.3131746730618384),0.648858208330395+I*(-0.34495863476804833),0.6172080740295223+I*(-0.21132635103715733),0.6149266274460007,0.6172080740295223+I*0.21132635103715733,0.648858208330395+I*0.34495863476804833,0.7646118577873012+I*0.3131746730618384,0.9853719221586965+I*(-0.01242055530982516)},{0.48131792917659666+I*0.06009303522558786,0.5746740551712626+I*(-0.27862590346396093),0.6881452731134824+I*(-0.3708153907370108),0.8041665904962326+I*(-0.2492852888831791),0.8542770431031556,0.8041665904962326+I*0.2492852888831791,0.6881452731134824+I*0.3708153907370108,0.5746740551712626+I*0.27862590346396093,0.48131792917659666+I*(-0.06009303522558786)},{0.04882203245306119+I*(-0.13327405799174843),0.33937890746257143+I*(-0.4978317817248623),0.7166580733827684+I*(-0.6198892904008448),1.0642484093060358+I*(-0.42310591658329705),1.2074235949528713,1.0642484093060358+I*0.42310591658329705,0.7166580733827684+I*0.6198892904008448,0.33937890746257143+I*0.4978317817248623,0.04882203245306119+I*0.13327405799174843},{-0.45105814237785186+I*(-0.38809414209691345),-0.013791230339465+I*(-0.9778818927217168),0.7635143010350922+I*(-1.2190757998193475),1.5468176062000738+I*(-0.8489619949876455),1.8789415037478951,1.5468176062000738+I*0.8489619949876455,0.7635143010350922+I*1.2190757998193475,-0.013791230339465+I*0.9778818927217168,-0.45105814237785186+I*0.38809414209691345},{-1.3357392070661755+I*(-0.5495070069716564),-0.7729973894532738+I*(-1.8324051934417909),0.7782303837570418+I*(-2.5050963000641024),2.5273987946989434+I*(-1.8216184196428054),3.2980949999782148,2.5273987946989434+I*1.8216184196428054,0.7782303837570418+I*2.5050963000641024,-0.7729973894532738+I*1.8324051934417909,-1.3357392070661755+I*0.5495070069716564}}"); } @Test public void testAiryBiPrime() { checkNumeric("N(AiryBiPrime(5/2),50)", // - "9.4214233173343017555823088857282415621646345227563"); + "9.4214233173343017555823088857282415621646345227564"); checkNumeric("N(AiryBiPrime(7/3-2/5*I),50)", // "5.4518661084743299510432832669786565021597943899934+I*(-4.3411154905787576770350457655260005851939094028033)"); checkNumeric("AiryBiPrime(1.8)", // "2.985540050846599"); checkNumeric("AiryBiPrime(2.5)", // - "9.4214233173343015"); + "9.4214233173343017"); checkNumeric("AiryBiPrime(2.5+I)", // "-1.2050484049806622+I*8.290971678096389"); checkNumeric("AiryBiPrime({1.2, 1.5, 1.8})", // - "{1.2212313987048949,1.8862122548481654,2.985540050846599}"); + "{1.221231398704895,1.8862122548481654,2.985540050846599}"); checkNumeric("AiryBiPrime(-2.0-2.0*I)", // "6.447836111463259+I*(-1.6250516910582886)"); checkNumeric("Table(AiryBiPrime(x+I*y), {x,-2,2,0.5}, {y,-2 ,2,0.5})", // - "{{6.447836111463259+I*(-1.6250516910582886),2.5331033365702726+I*(-1.6228386817559723),0.9678264759011976+I*(-0.9859861458879565),0.4118370995916757+I*(-0.4345556675967243),0.2787951669211695,0.4118370995916757+I*0.4345556675967243,0.9678264759011976+I*0.9859861458879565,2.5331033365702726+I*1.6228386817559723,6.447836111463259+I*1.6250516910582886},{3.932016958918724+I*2.2988299083936297,2.1987088808869877+I*0.35671916706756274,1.1717853216838945+I*(-0.12630343066849617),0.6927551526059693+I*(-0.12820906415996786),0.5579081030218973,0.6927551526059693+I*0.12820906415996786,1.1717853216838945+I*0.12630343066849617,2.1987088808869877+I*(-0.35671916706756274),3.932016958918724+I*(-2.2988299083936297)},{0.9313363238436503+I*2.816910665826078,1.0605056145042242+I*1.0950538084370467,0.8344734885227826+I*0.3465260632668285,0.6537434104306256+I*0.0796983792346929,0.5923756264227923,0.6537434104306256+I*(-0.0796983792346929),0.8344734885227826+I*(-0.3465260632668285),1.0605056145042242+I*(-1.0950538084370467),0.9313363238436503+I*(-2.816910665826078)},{-0.6983087889843017+I*1.7009731791023295,0.13487759049701248+I*0.8926125557190643,0.4076171824999173+I*0.3741488036665492,0.4882315703778216+I*0.11815505364313456,0.5059337136238471,0.4882315703778216+I*(-0.11815505364313456),0.4076171824999173+I*(-0.3741488036665492),0.13487759049701248+I*(-0.8926125557190643),-0.6983087889843017+I*(-1.7009731791023295)},{-1.0677739995872133+I*0.49787252178821023,-0.303381005003919+I*0.3452466342409965,0.135026646710819+I*0.1288373867812549,0.3713269124180393+I*0.01803794206706577,0.4482883573538264,0.3713269124180393+I*(-0.01803794206706577),0.135026646710819+I*(-0.1288373867812549),-0.303381005003919+I*(-0.3452466342409965),-1.0677739995872133+I*(-0.49787252178821023)},{-0.921360768864399+I*(-0.21979246077610504),-0.4280924981222304+I*(-0.19419343508974984),0.04877551921017308+I*(-0.2504640372798279),0.4083984976406324+I*(-0.18775170288237833),0.5445725641405923,0.4083984976406324+I*0.18775170288237833,0.04877551921017308+I*0.2504640372798279,-0.4280924981222304+I*0.19419343508974984,-0.921360768864399+I*0.21979246077610504},{-0.8572392586053618+I*(-0.49550633630956736),-0.5359726424087651+I*(-0.6827306062773317),0.075662844174966+I*(-0.7837009987854552),0.6795104251233364+I*(-0.5426642609278547),0.9324359333927756,0.6795104251233364+I*0.5426642609278547,0.075662844174966+I*0.7837009987854552,-0.5359726424087651+I*0.6827306062773317,-0.8572392586053618+I*0.49550633630956736},{-1.2446407821497947+I*(-0.47896456660499337),-0.9655916784584485+I*(-1.2738241269843176),0.09801981538105+I*(-1.7162349060639506),1.336746711566785+I*(-1.2503558060049476),1.8862122548481657,1.336746711566785+I*1.2503558060049476,0.09801981538105+I*1.7162349060639506,-0.9655916784584485+I*1.2738241269843176,-1.2446407821497947+I*0.47896456660499337},{-2.485391698246339+I*(-0.065055423128367),-2.3015638068118744+I*(-2.2323284011558417),-0.11024725075605855+I*(-3.6905551002552524),2.7705928921631884+I*(-2.8748527604587153),4.10068204993289," // - + "2.7705928921631884+I*2.8748527604587153,-0.11024725075605855+I*3.6905551002552524,-2.3015638068118744+I*2.2323284011558417,-2.485391698246339+I*0.065055423128367}}"); + "{{6.447836111463259+I*(-1.6250516910582886),2.5331033365702726+I*(-1.6228386817559723),0.9678264759011976+I*(-0.9859861458879565),0.4118370995916757+I*(-0.4345556675967243),0.2787951669211695,0.4118370995916757+I*0.4345556675967243,0.9678264759011976+I*0.9859861458879565,2.5331033365702726+I*1.6228386817559723,6.447836111463259+I*1.6250516910582886},{3.932016958918724+I*2.2988299083936297,2.1987088808869877+I*0.35671916706756285,1.1717853216838945+I*(-0.12630343066849617),0.6927551526059693+I*(-0.12820906415996783),0.5579081030218973,0.6927551526059693+I*0.12820906415996783,1.1717853216838945+I*0.12630343066849617,2.1987088808869877+I*(-0.35671916706756285),3.932016958918724+I*(-2.2988299083936297)},{0.9313363238436503+I*2.8169106658260783,1.0605056145042242+I*1.0950538084370467,0.8344734885227826+I*0.3465260632668285,0.6537434104306257+I*0.0796983792346929,0.5923756264227923,0.6537434104306257+I*(-0.0796983792346929),0.8344734885227826+I*(-0.3465260632668285),1.0605056145042242+I*(-1.0950538084370467),0.9313363238436503+I*(-2.8169106658260783)},{-0.6983087889843018+I*1.7009731791023295,0.1348775904970124+I*0.8926125557190643,0.4076171824999172+I*0.3741488036665492,0.4882315703778216+I*0.11815505364313456,0.5059337136238472,0.4882315703778216+I*(-0.11815505364313456),0.4076171824999172+I*(-0.3741488036665492),0.1348775904970124+I*(-0.8926125557190643),-0.6983087889843018+I*(-1.7009731791023295)},{-1.0677739995872133+I*0.4978725217882102,-0.303381005003919+I*0.34524663424099644,0.13502664671081896+I*0.1288373867812549,0.3713269124180393+I*0.01803794206706577,0.44828835735382633,0.3713269124180393+I*(-0.01803794206706577),0.13502664671081896+I*(-0.1288373867812549),-0.303381005003919+I*(-0.34524663424099644),-1.0677739995872133+I*(-0.4978725217882102)},{-0.921360768864399+I*(-0.2197924607761051),-0.4280924981222304+I*(-0.19419343508974987),0.04877551921017306+I*(-0.25046403727982797),0.4083984976406324+I*(-0.18775170288237833),0.5445725641405923,0.4083984976406324+I*0.18775170288237833,0.04877551921017306+I*0.25046403727982797,-0.4280924981222304+I*0.19419343508974987,-0.921360768864399+I*0.2197924607761051},{-0.8572392586053618+I*(-0.49550633630956736),-0.5359726424087651+I*(-0.6827306062773317),0.07566284417496599+I*(-0.7837009987854552),0.6795104251233364+I*(-0.5426642609278547),0.9324359333927756,0.6795104251233364+I*0.5426642609278547,0.07566284417496599+I*0.7837009987854552,-0.5359726424087651+I*0.6827306062773317,-0.8572392586053618+I*0.49550633630956736},{-1.2446407821497947+I*(-0.47896456660499337),-0.9655916784584485+I*(-1.2738241269843178),0.09801981538105+I*(-1.7162349060639506),1.3367467115667853+I*(-1.2503558060049476),1.8862122548481657,1.3367467115667853+I*1.2503558060049476,0.09801981538105+I*1.7162349060639506,-0.9655916784584485+I*1.2738241269843178,-1.2446407821497947+I*0.47896456660499337},{-2.485391698246339+I*(-0.06505542312836698),-2.3015638068118744+I*(-2.2323284011558417),-0.11024725075605855+I*(-3.6905551002552524),2.7705928921631884+I*(-2.8748527604587153),4.10068204993289,2.7705928921631884+I*2.8748527604587153," + + "-0.11024725075605855+I*3.6905551002552524,-2.3015638068118744+I*2.2323284011558417,-2.485391698246339+I*0.06505542312836698}}"); } @Test diff --git a/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/LowercaseTestCase.java b/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/LowercaseTestCase.java index b18f8e23ac..272a06ffe0 100644 --- a/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/LowercaseTestCase.java +++ b/symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/LowercaseTestCase.java @@ -7465,7 +7465,7 @@ public void testExpIntegralEi() { checkNumeric("ExpIntegralEi(-1.0)", // "-0.21938393439552029"); checkNumeric("ExpIntegralEi(1.0)", // - "1.895117816355937"); + "1.8951178163559375"); check("ExpIntegralEi(I*Infinity)", // "I*Pi"); check("ExpIntegralEi(-I*Infinity)", // @@ -9652,7 +9652,7 @@ public void testFreeQ() { @Test public void testFresnelC() { check("N(FresnelC(2),50)", // - "0.48825340607534075450022350335726103768836715450921"); + "0.4882534060753407545002235033572610376883671545092"); check("FresnelC(1.8)", // "0.333633"); @@ -9679,7 +9679,7 @@ public void testFresnelC() { check("FresnelC(I*z)", // "I*FresnelC(z)"); checkNumeric("FresnelC(1.8)", // - "0.3336329272215571"); + "0.33363292722155713"); check("D(FresnelC(x),x)", // "Cos(1/2*Pi*x^2)"); @@ -9714,7 +9714,7 @@ public void testFresnelS() { check("FresnelS(I*z)", // "-I*FresnelS(z)"); checkNumeric("FresnelS(1.8)", // - "0.45093876926758303"); + "0.45093876926758314"); check("D(Fresnels(x),x)", // "Sin(1/2*Pi*x^2)"); } @@ -10264,7 +10264,7 @@ public void testFunctionURL() { @Test public void testGamma() { check("Gamma(-9223372036854775808/11,-3.141592653589793,3/4)", // - "Gamma(-8.384883669867978*10^17,-3.141592653589793)-Gamma(-8.384883669867978*10^17,0.75)"); + "-1.0032310722904763*10^104759677232087062"); check("Gamma(4,3)", // @@ -10335,11 +10335,11 @@ public void testGamma() { "Indeterminate"); checkNumeric("Gamma(1.5,7.5)", // - "0.00160996322827232"); + "0.0016099632282723204"); checkNumeric("LogGamma(1.5)", // "-0.12078223763524548"); checkNumeric("Gamma(0.5+0.5*-0.5, -0.5*-0.5)", // - "0.9293237832774184"); + "0.9293237832774183"); check("Table(Gamma(-x+0.5*y, x*y), {x,-0.5, 0.5, 1/4}, {y,-0.5, 0.5, 1/4})", // "{{0.929324,1.18798,1.77245,1.60979+I*(-0.423147),1.59749+I*(-0.372071)}," // + "{1.62343,1.91573,3.62561,2.00338+I*(-0.886162),1.77245+I*(-0.737708)}," // @@ -12499,7 +12499,7 @@ public void testInverseErf() { @Test public void testInverseErfc() { check("N(InverseErfc(33/100), 50)", // - "0.68880252811655645040250472890525783544948992349371"); + "0.68880252811655645040250472890525783544948992349372"); check("InverseErfc(0.330000000000000000000000)", // "0.688802528116556450402504"); @@ -18624,6 +18624,9 @@ public void testPolyLog() { // issue #929 // check("(PolyLog(2,E^(I*1/270*Pi^2)))/Pi // N", // // " "); + // check("PolyLog(2,0.9993319736282411 + 0.03654595031305655*I)", // + // ""); + check("PolyLog(2,z) + PolyLog(2,1-z)", // "Pi^2/6-Log(1-z)*Log(z)"); check("PolyLog(2,Sin(7)) + PolyLog(2,1-Sin(7))", // @@ -23216,7 +23219,7 @@ public void testSinIntegral() { @Test public void testSinhIntegral() { checkNumeric("SinhIntegral(-3.1)", // - "-5.318897351437731"); + "-5.318897351437732"); check("SinhIntegral(93/13*I*x)", // "I*SinIntegral(93/13*x)"); check("SinhIntegral(-x)", // @@ -23992,7 +23995,7 @@ public void testSubfactorial() { "True"); checkNumeric("Table(Subfactorial(x+I*y), {x,-2,2,0.5}, {y,-2 ,2,0.5})", // - "{{-9.227084993591351+I*226.34804545754852,-3.60341368902144+I*57.52215812828752,-1.4981325243711963+I*15.10153257973711,-0.6594078761887109+I*4.109712417378417,-0.30282511676493395+I*1.1557273497909215,-0.14180973765939986+I*0.3301098233309934,-0.06578326936162285+I*0.09168075208986826,-0.02922777135324635+I*0.022366556059606305,-0.011937189234760486+I*0.003341706779474045},{-224.51199155103046+I*33.783138994311265,-57.42494014380803+I*9.344563804698737,-15.326014503799536+I*2.5908324907783915,-4.324154363255359+I*0.6889085300780474,-1.3040986643465844+I*0.1523180276510737,-0.42007108938336646+I*0.008720205463217003,-0.1410130398831403+I*(-0.02117096465428944),-0.04657979136378597+I*(-0.020052290044888794),-0.0135786899199037+I*(-0.012819770339213575)},{-73.56847961607632+I*(-207.89387547036583),-21.43112760840351+I*(-52.11703759475536),-6.541027528670962+I*(-13.603400055365915),-2.0962132960874325+I*(-3.780008479284061),-0.6971748832350662+I*(-1.1557273497909215),-0.23112475035685875+I*(-0.40101469216069335),-0.06911140099201767+I*(-0.15746402145149108),-0.013305353757292544+I*(-0.06620821308947582),0.003386332944104408+I*(-0.027216085248995023)},{179.82227376413772+I*(-103.3592419198595),42.72931577895212+I*(-29.85265017649355),10.25383974267816+I*(-9.11009437436893),2.506531446666703+I*(-2.9928544643766957),0.6520493321732921+I*(-1.0761590138255368),0.20567544196007476+I*(-0.4222752237740536),0.09167748459585957+I*(-0.1736414758197678),0.05336833074922617+I*(-0.06882683304436397),0.03242888563837901+I*(-0.0226149374019086)},{119.70390458403307+I*147.13695923215263,33.1422220977232+I*32.146691412605264,9.537292577413355+I*6.541027528670962,2.9204731413233214+I*1.0481066480437162,1.0,0.4083869224311086+I*(-0.11556237517842938),0.20067793971526335+I*(-0.06911140099201767),0.10829561065534317+I*(-0.019958030635938814),0.05629961322969803+I*0.006772665888208815},{-116.80734695765014+I*124.1674870365595,-23.414317375264265+I*32.29747973318128,-3.98317450302985+I*8.331805702916647,-0.24316150885499624+I*2.060784425443652,0.3260246660866461+I*0.4619204930872316,0.3139753328670642+I*0.09957968544377244,0.21948021811769758+I*0.048070664949747925,0.12992441494115906+I*0.0546223706227867,0.0614443176230067+I*0.055417745307511694},{-121.51383247642643+I*(-92.27084993591352),-29.955519273225136+I*(-17.566641733979523),-7.062372526694953+I*(-2.9962650487423925),-1.3659509156201723+I*(-0.41212992261794434),0.0,0.25828853366956134+I*0.08863108603712493,0.22657542244350878+I*0.1315665387232457,0.12924936558812197+I*0.14248538534707594,0.0408868387215724+I*0.11937189234760487},{73.12395363664382+I*(-115.62573105462519),13.324743536875513+I*(-27.750082827187917),2.357043948371871+I*(-6.65980957537445),0.6656499494393316+I*(-1.5977199883723756),0.4890369991299692+I*(-0.30711926036915266),0.4211731565787101+I*0.09847761824842886,0.28114966222679844+I*0.24837229727854723,0.11295306647755853+I*0.2678368873247892,-0.01866901418051335+I*0.20414781047557296},{107.92229070008487+I*58.48596508102584,25.05677734243667+I*9.799995441878664,6.0196825306469695+I*1.0698424292101683,1.8725105884160347+I*(-0.14128438742580243),1.0,0.6801411006713222+I*0.3064064389090305,0.3647982244275441+I*0.4897084998900002,0.053753944176759445+I*0.47884481907633486,-0.15510266452035695+I*0.3205174621383546}}"); + "{{-9.227084993591353+I*226.34804545754852,-3.6034136890214405+I*57.522158128287515,-1.498132524371197+I*15.10153257973711,-0.6594078761887111+I*4.109712417378417,-0.30282511676493384+I*1.1557273497909215,-0.14180973765939986+I*0.3301098233309934,-0.06578326936162285+I*0.09168075208986826,-0.02922777135324635+I*0.022366556059606305,-0.011937189234760486+I*0.003341706779474045},{-224.5119915510304+I*33.78313899431126,-57.42494014380803+I*9.344563804698737,-15.326014503799536+I*2.5908324907783915,-4.324154363255359+I*0.6889085300780474,-1.3040986643465842+I*0.15231802765107366,-0.42007108938336646+I*0.008720205463216996,-0.1410130398831403+I*(-0.02117096465428944),-0.04657979136378597+I*(-0.020052290044888794),-0.0135786899199037+I*(-0.012819770339213575)},{-73.56847961607632+I*(-207.89387547036583),-21.43112760840351+I*(-52.11703759475536),-6.541027528670962+I*(-13.603400055365915),-2.0962132960874325+I*(-3.780008479284061),-0.6971748832350664+I*(-1.1557273497909215),-0.2311247503568587+I*(-0.40101469216069335),-0.06911140099201767+I*(-0.15746402145149108),-0.013305353757292544+I*(-0.06620821308947582),0.003386332944104408+I*(-0.027216085248995023)},{179.82227376413772+I*(-103.3592419198595),42.72931577895212+I*(-29.85265017649355),10.25383974267816+I*(-9.11009437436893),2.506531446666703+I*(-2.9928544643766957),0.6520493321732921+I*(-1.0761590138255368),0.20567544196007476+I*(-0.4222752237740536),0.09167748459585957+I*(-0.1736414758197678),0.05336833074922617+I*(-0.06882683304436397),0.03242888563837901+I*(-0.0226149374019086)},{119.70390458403307+I*147.13695923215263,33.1422220977232+I*32.146691412605264,9.537292577413355+I*6.541027528670962,2.9204731413233214+I*1.0481066480437162,1.0,0.4083869224311086+I*(-0.11556237517842935),0.20067793971526335+I*(-0.06911140099201767),0.10829561065534317+I*(-0.019958030635938814),0.05629961322969803+I*0.006772665888208815},{-116.80734695765014+I*124.1674870365595,-23.414317375264265+I*32.29747973318128,-3.98317450302985+I*8.331805702916645,-0.24316150885499624+I*2.060784425443652,0.3260246660866461+I*0.4619204930872316,0.31397533286706414+I*0.09957968544377244,0.21948021811769758+I*0.048070664949747925,0.12992441494115903+I*0.054622370622786694,0.0614443176230067+I*0.055417745307511694},{-121.51383247642643+I*(-92.27084993591352),-29.955519273225136+I*(-17.566641733979523),-7.062372526694953+I*(-2.9962650487423925),-1.3659509156201723+I*(-0.41212992261794423),0.0,0.25828853366956134+I*0.08863108603712493,0.22657542244350878+I*0.13156653872324567,0.12924936558812197+I*0.14248538534707594,0.0408868387215724+I*0.11937189234760487},{73.12395363664382+I*(-115.62573105462519),13.324743536875513+I*(-27.750082827187917),2.357043948371871+I*(-6.65980957537445),0.6656499494393316+I*(-1.5977199883723756),0.4890369991299692+I*(-0.30711926036915266),0.4211731565787101+I*0.09847761824842886,0.28114966222679844+I*0.24837229727854723,0.11295306647755851+I*0.2678368873247892,-0.01866901418051335+I*0.20414781047557296},{107.92229070008484+I*58.48596508102583,25.05677734243667+I*9.799995441878664,6.0196825306469695+I*1.0698424292101683,1.8725105884160347+I*(-0.14128438742580243),1.0,0.680141100671322+I*0.3064064389090305,0.36479822442754406+I*0.4897084998900002,0.053753944176759445+I*0.47884481907633486,-0.15510266452035695+I*0.3205174621383546}}"); // check("Subfactorial(10000)", "Subfactorial(10000)"); } diff --git a/symja_android_library/pom.xml b/symja_android_library/pom.xml index e00c18beb2..e4ac99a4a7 100644 --- a/symja_android_library/pom.xml +++ b/symja_android_library/pom.xml @@ -215,7 +215,7 @@ org.apfloat apfloat - 1.13.0 + 1.14.0-SNAPSHOT org.codehaus.janino