- edited description
JASConversionException
Hi,
I run the next code:
IExpr exp1 = util.evaluate("y=297.0004444386505");
IExpr exp2 = util.evaluate("z=22.13904248493947");
IExpr exp = util.evaluate("Solve(x/y==z/x,x)");
and in the output I get the next exception:
org.matheclipse.core.eval.exception.JASConversionException: JAS conversion error at org.matheclipse.core.convert.JASConvert.numericExpr2JAS(JASConvert.java:116) at org.matheclipse.core.reflection.system.RootIntervals.croots(RootIntervals.java:66) at org.matheclipse.core.reflection.system.NRoots.rootsOfVariable(NRoots.java:125) at org.matheclipse.core.reflection.system.NRoots.roots(NRoots.java:95) at org.matheclipse.core.reflection.system.Solve.rootsOfUnivariatePolynomial(Solve.java:787) at org.matheclipse.core.reflection.system.Solve.analyzeSublist(Solve.java:616) at org.matheclipse.core.reflection.system.Solve.solveEquations(Solve.java:1050) at org.matheclipse.core.reflection.system.Solve.evaluate(Solve.java:895) at org.matheclipse.core.eval.EvalEngine.evalASTBuiltinFunction(EvalEngine.java:630) at org.matheclipse.core.eval.EvalEngine.evalRules(EvalEngine.java:1054) at org.matheclipse.core.eval.EvalEngine.evalAST(EvalEngine.java:502) at org.matheclipse.core.expression.AbstractAST.evaluate(AbstractAST.java:631) at org.matheclipse.core.eval.EvalEngine.evalLoop(EvalEngine.java:908) at org.matheclipse.core.eval.EvalEngine.evalWithoutNumericReset(EvalEngine.java:1338) at org.matheclipse.core.eval.EvalEngine.evaluate(EvalEngine.java:1289) at org.matheclipse.core.eval.ExprEvaluator.evaluate(ExprEvaluator.java:227) at org.matheclipse.core.eval.ExprEvaluator.evaluate(ExprEvaluator.java:247) at Main.main(Main.java:43)
Is this OK? If its not, what can I do? If it is OK, how can I reduce these output exception?
Comments (3)
-
repo owner -
repo owner I've set
Config.SHOW_STACKTRACE=true
in fileorg.matheclipse.core.basic.Config.java
in the current sources, because that's easier to develop and this shows the JASConversionException stack trace as an information.But nethertheless you should get this result at the end:
{{x->-81.08825721072805},{x->81.08825721072805}}
-
repo owner - changed status to resolved
Fix
#168→ <<cset f46a75d5d2cc>>
- Log in to comment