Skip to content

Commit

Permalink
use apfloat 1.13.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr committed Jan 14, 2024
1 parent fabb0f5 commit 4c4d262
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4724,9 +4724,8 @@ public final boolean isVariable(boolean polynomialQTest) {
return true;
}
return !isPlusTimesPower();
} else {
return isSlot() || isSubscript();
}
return isSlot() || isSubscript();
}
if (!head().isSymbol()) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7001,10 +7001,10 @@ public void testErf() {
check("Erf(-I)", //
"-I*Erfi(1)");
check("N(Erf(3/2-I), 50)", //
"1.0783992074989334503393327040582123696121612366804" //
+ "+I*0.027963711238655849448465896205907208506694536720867");
"1.0783992074989334503393327040582123696121612366804+"
+ "I*0.027963711238655849448465896205907208506694536720866");
check("N(Erf(3/2), 50)", //
"0.96610514647531072706697626164594785868141047925763");
"0.96610514647531072706697626164594785868141047925762");
checkNumeric("Erf(1.5, 2)", //
"0.02921711854364195");
check("Erf(-Infinity, Infinity)", //
Expand Down Expand Up @@ -7037,7 +7037,7 @@ public void testErf() {
@Test
public void testErfc() {
check("N(Erfc(3/2),50)", //
"0.033894853524689272933023738354052141318589520742363");
"0.033894853524689272933023738354052141318589520742376");
checkNumeric("Erfc(1.5-I)", //
"-0.07839920749893325+I*(-0.02796371123865584)");
check("Erfc({0.5, 1.0, 1.5})", //
Expand Down Expand Up @@ -11386,9 +11386,9 @@ public void testHypergeometric1F1() {
"2.269314995817225");
// assertThat(Maja.hypergeo1F1(-0.5, 1.0 / 3.0, -1)).isEqualTo(2.269314995817403);
check("N(Hypergeometric1F1(10, 1/3, -1), 50)", //
"1.0856469662771144181060999200053894821341819655654");
"1.0856469662771144181060999200053894821341819655655");
check("Hypergeometric1F1(10, 1/3, -1.000000000000000000000000000000000000)", //
"1.085646966277114418106099920005389482");
"1.0856469662771144181060999200053894821");

check("Hypergeometric1F1(-2,-1-a,-a)", //
"1+(2*a)/(-1-a)+a/(1+a)");
Expand Down
2 changes: 1 addition & 1 deletion symja_android_library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
<dependency>
<groupId>org.apfloat</groupId>
<artifactId>apfloat</artifactId>
<version>1.12.0</version>
<version>1.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
Expand Down

0 comments on commit 4c4d262

Please sign in to comment.