Skip to content

Commit

Permalink
https://github.com/crowlogic/arb4j/issues/253
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Nov 30, 2024
1 parent 1a9f9a5 commit ed6cdc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ public LiteralConstantNode(Expression<D, R, F> expression, String constantValueS
value = Parser.subscriptToRegular(constantValueString.trim());

isDecimal = value.contains(".");
isInt = !((isDecimal || constantSymbols.contains(value)));
isImaginary = .equals(value);
char firstCharOfValue = value.charAt(0);
fractionValue = Parser.fractions.get(firstCharOfValue);
Expand All @@ -146,6 +145,7 @@ public LiteralConstantNode(Expression<D, R, F> expression, String constantValueS
{
isFraction = false;
}
isInt = !((isDecimal || constantSymbols.contains(value)) || isFraction);

if (isPredefinedConstant(constantValueString) || fractionValue != null)
{
Expand Down
3 changes: 2 additions & 1 deletion todoList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ TODO: builtin sykbols for the classical orthogonal polynomials
"limit" is null at arb4j/arb.expressions.nodes.IntegralNode.evaluateIndefiniteIntegralAt(IntegralNode.java:217)
todo: mouse wheel zooms control or whole scene
expr compiler: fractional derivatices
java.lang.AssertionError: TODOat arb4j/arb.expressions.nodes.DerivativeNode.spliceInto(DerivativeNode.java:168)at arb4j/arb.expressions.Expression.generateEvaluationMethod(Expression.java:988)at arb4j/arb.expressions.Expression.generate(Expression.java:812)at arb4j/arb.expressions.Expression.defineClass(Expression.java:595)at arb4j/arb.expressions.Expression.getInstance(Expression.java:1299)at arb4j/arb.expressions.Expression.instantiate(Expression.java:1448)at arb4j/arb.functions.Function.instantiate(Function.java:126)at arb4j/arb.functions.Function.express(Function.java:89)at arb4j/arb.functions.real.RealFunctional.express(RealFunctional.java:29)at arb4j/arb.functions.real.RealFunctional.express(RealFunctional.java:18)at arb4j/arb.expressions.ExpressionTest.testRealFunctionDerivative(ExpressionTest.java:149)at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)at java.base/java.lang.reflect.Method.invoke(Method.java:580)at [email protected]/junit.framework.TestCase.runTest(TestCase.java:177)at [email protected]/junit.framework.TestCase.runBare(TestCase.java:142)at [email protected]/junit.framework.TestResult$1.protect(TestResult.java:122)at [email protected]/junit.framework.TestResult.runProtected(TestResult.java:142)at [email protected]/junit.framework.TestResult.run(TestResult.java:125)at [email protected]/junit.framework.TestCase.run(TestCase.java:130)at [email protected]/junit.framework.TestSuite.runTest(TestSuite.java:241)at [email protected]/junit.framework.TestSuite.run(TestSuite.java:236)at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:530)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:758)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:453)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:211)
java.lang.NoClassDefFoundError: k-2*j(k,x)funcat k-2*j(k,x).evaluate(Unknown Source)at arb4j/arb.functions.Function.evaluate(Function.java:240)at arb4j/arb.functions.Function.evaluate(Function.java:220)at arb4j/arb.functions.integer.Sequence.evaluate(Sequence.java:47)at arb4j/arb.expressions.nodes.unary.SphericalBesselFunctionNodeOfTheFirstKindTest.testj0ViaRealFunctionalExpression(SphericalBesselFunctionNodeOfTheFirstKindTest.java:24)at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)at java.base/java.lang.reflect.Method.invoke(Method.java:580)at [email protected]/junit.framework.TestCase.runTest(TestCase.java:177)at [email protected]/junit.framework.TestCase.runBare(TestCase.java:142)at [email protected]/junit.framework.TestResult$1.protect(TestResult.java:122)at [email protected]/junit.framework.TestResult.runProtected(TestResult.java:142)at [email protected]/junit.framework.TestResult.run(TestResult.java:125)at [email protected]/junit.framework.TestCase.run(TestCase.java:130)at [email protected]/junit.framework.TestSuite.runTest(TestSuite.java:241)at [email protected]/junit.framework.TestSuite.run(TestSuite.java:236)at [email protected]/org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:93)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:530)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:758)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:453)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:211)Caused by: java.lang.ClassNotFoundException: k-2*j(k,x)funcat java.base/java.lang.ClassLoader.findClass(ClassLoader.java:735)at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:595)at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:528)... 22 more
arb.exceptions.UndefinedReferenceException: Undefined reference to variable 'b' at position=-1 in expression=null, independent variable is a and ascendentExpression is null, remaining='null'at arb4j/arb.expressions.nodes.VariableNode.resolveInheritedVariableReference(VariableNode.java:468)at arb4j/arb.expressions.nodes.VariableNode.resolveReference(VariableNode.java:539)at arb4j/arb.expressions.nodes.VariableNode.<init>(VariableNode.java:115)at arb4j/arb.expressions.nodes.VariableNode.spliceInto(VariableNode.java:560)at arb4j/arb.expressions.nodes.binary.MultiplicationNode.spliceInto(MultiplicationNode.java:116)at arb4j/arb.expressions.nodes.binary.AdditionNode.spliceInto(AdditionNode.java:48)at arb4j/arb.expressions.nodes.binary.AdditionNode.spliceInto(AdditionNode.java:48)at arb4j/arb.expressions.nodes.DerivativeNode.spliceInto(DerivativeNode.java:168)at arb4j/arb.expressions.Expression.generateEvaluationMethod(Expression.java:989)at arb4j/arb.expressions.Expression.generate(Expression.java:812)at arb4j/arb.expressions.Expression.defineClass(Expression.java:595)at arb4j/arb.expressions.Expression.getInstance(Expression.java:1311)at arb4j/arb.expressions.Expression.instantiate(Expression.java:1460)at arb4j/arb.functions.Function.instantiate(Function.java:126)at arb4j/arb.functions.Function.express(Function.java:89)at arb4j/arb.functions.real.RealFunctional.express(RealFunctional.java:29)at arb4j/arb.functions.real.RealFunctional.express(RealFunctional.java:18)at arb4j/arb.expressions.ExpressionTest.testRealFunctionDerivative(ExpressionTest.java:171)at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)at java.base/java.lang.reflect.Method.invoke(Method.java:580)at [email protected]/junit.framework.TestCase.runTest(TestCase.java:177)at [email protected]/junit.framework.TestCase.runBare(TestCase.java:142)at [email protected]/junit.framework.TestResult$1.protect(TestResult.java:122)at [email protected]/junit.framework.TestResult.runProtected(TestResult.java:142)at [email protected]/junit.framework.TestResult.run(TestResult.java:125)at [email protected]/junit.framework.TestCase.run(TestCase.java:130)at [email protected]/junit.framework.TestSuite.runTest(TestSuite.java:241)at [email protected]/junit.framework.TestSuite.run(TestSuite.java:236)at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:530)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:758)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:453)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:211)
java.lang.AssertionError: TODO: simplify ½+¼at arb4j/arb.expressions.nodes.binary.AdditionNode.simplify(AdditionNode.java:88)at arb4j/arb.expressions.Expression.simplify(Expression.java:2195)at arb4j/arb.expressions.ExpressionTest.testAFractionConstantTimesAFractionConstant(ExpressionTest.java:37)at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)at java.base/java.lang.reflect.Method.invoke(Method.java:580)at [email protected]/junit.framework.TestCase.runTest(TestCase.java:177)at [email protected]/junit.framework.TestCase.runBare(TestCase.java:142)at [email protected]/junit.framework.TestResult$1.protect(TestResult.java:122)at [email protected]/junit.framework.TestResult.runProtected(TestResult.java:142)at [email protected]/junit.framework.TestResult.run(TestResult.java:125)at [email protected]/junit.framework.TestCase.run(TestCase.java:130)at [email protected]/junit.framework.TestSuite.runTest(TestSuite.java:241)at [email protected]/junit.framework.TestSuite.run(TestSuite.java:236)at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:530)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:758)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:453)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:211)

0 comments on commit ed6cdc7

Please sign in to comment.