diff --git a/src/main/java/arb/expressions/Expression.java b/src/main/java/arb/expressions/Expression.java index c9cf62e56..9c16355fa 100644 --- a/src/main/java/arb/expressions/Expression.java +++ b/src/main/java/arb/expressions/Expression.java @@ -692,8 +692,8 @@ public Node parse(int depth) throws ExpressionCompilerException node = parseFirst(depth + 1); if (!parse(depth + 1, ')')) { - throw new ExpressionCompilerException(format("expected closing parenthesis at: depth=%d startPos=%s, position=%s in " - + "expression '%s' of length %d", depth, startPos, position, expression, expression.length())); + throw new ExpressionCompilerException(format("expected closing parenthesis, instead got %c at position %s in " + + "expression '%s'", ch, startPos, expression)); } } diff --git a/src/main/java/arb/functions/real/HypergeometricFunctionSequence.java b/src/main/java/arb/functions/real/HypergeometricFunctionSequence.java index ca1270b37..0c6cf48a4 100644 --- a/src/main/java/arb/functions/real/HypergeometricFunctionSequence.java +++ b/src/main/java/arb/functions/real/HypergeometricFunctionSequence.java @@ -38,7 +38,7 @@ public static void main(String... args) public final Function F; - public static final String Fdef = "n➔when(n=0,1,else,x*F(n-1)*(∏α₍ₖ₎(k=1…p)/∏β₍ₖ₎(k=1…q))"; + public static final String Fdef = "n➔when(n=0,1,else,x*F(n-1)*(∏α₍ₖ₎{k=1…p}/∏β₍ₖ₎{k=1…q}))"; public HypergeometricFunctionSequence(int p, int q) {