You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
1. Fixed: Unnecessary newline at the end in getErrorMessage() #283
2. Fixed: Unnecessary space in function expression string returned by getErrorMessage() #284
Code:
Code result:
Should be:
The text was updated successfully, but these errors were encountered: