Thank you for thinking about it, and for the workaround suggestion. I solved it in a similar way.

Bests,

Yvonnila

P.S.: I wish you a happy new year : )

]]>Question on using the solver. When there are multiple solutions, it seems that it randomly gives one of the possible answers.

Is there a way to make that systematic (like 1st answer from left to right), so I can have my software continue through the domain to find other possible solutions

Examples:

Code

Expression eee = new Expression("solve(x^2+7.5*x-70.2,x,-100,100)");

mXparser.consolePrintln("Res. : " + eee.getExpressionString() + " = " + eee.calculate() );

Called three times gives:

EVALUATE: solve( x^2+7.5*x-70.2, x, 100, -100) = -12.92946077

EVALUATE: solve( x^2+7.5*x-70.2, x, 100, -100) = 5.42946077

EVALUATE: solve( x^2+7.5*x-70.2, x, 100, -100) = 5.42946077

Thanks for considering

George

]]>While you make sure that users will use ';' instead ',' in functions then you can use a trick ðŸ™‚ Please see the example below

`String expStr = "2 + 3,2 - 2,3e10 + log(2;8)";`

Expression exp = new Expression(expStr.replace(',', '.'));

mXparser.consolePrintln(exp.calculate());

Best regards

]]>Unfortunately not, the comma is a separator for function parameters.

Best regards,

Mariusz

Thanks for your feedback! ðŸ™‚

Solve implements numerical solving, it seems you have a function with more than one root in the given range. Solve algorithm additionally perform some king of sampling - that is way you are getting different results, but I assume correct one.

At this moment it is impossible to get all the roots.

Best regards

]]>I was wondering if it is possible to write the formulas in other cultures. For example, having comma as the floating point seperator: 2,5 instead of 2.5.

Bests,

Yvonnila