A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mariuszgromada/MathParser.org-mXparser/issues/284 below:

Unnecessary space in function expression string returned by getErrorMessage() · Issue #284 · mariuszgromada/MathParser.org-mXparser · GitHub

Code:

Function f = new Function("f(x) = 2*x");
Argument x = new Argument("x = 2");
Argument y = new Argument("y = x^x", x);
Expression e = new Expression("f(y)", f, y);
e.checkSyntax();
System.out.println(e.getErrorMessage());

Code result:

[f(y)] checking ...
[f(y)] (f, 0) checking user defined function ...
[f(y)] -> [f] = [ 2*x] checking ...
[f(y)] -> [f] = [ 2*x] no errors.
[f(y)] (y, 2) checking dependent argument ...
[f(y)] -> [y] = [ x^x] checking ...
[f(y)] -> [y] = [ x^x] no errors.
[f(y)] no errors.

Should be:

[f(y)] checking ...
[f(y)] (f, 0) checking user defined function ...
[f(y)] -> [f] = [2*x] checking ...
[f(y)] -> [f] = [2*x] no errors.
[f(y)] (y, 2) checking dependent argument ...
[f(y)] -> [y] = [x^x] checking ...
[f(y)] -> [y] = [x^x] no errors.
[f(y)] no errors.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4