Skip to content

Implied Multiplication bug when blank character separates: 'nx' vs 'n x' #292

@mariuszgromada

Description

@mariuszgromada
Argument x = new Argument("x = 3");
Argument n = new Argument("n = 1");
Expression e = new Expression("nx", n, x);
mXparser.consolePrintln(e.getExpressionString() + " = " + e.getCanonicalExpressionString());

Result is ok:
nx = n*x

Argument x = new Argument("x = 3");
Argument n = new Argument("n = 1");
Expression e = new Expression("n x", n, x);
mXparser.consolePrintln(e.getExpressionString() + " = " + e.getCanonicalExpressionString());

Result is not ok - missing multiplication
n x = nx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions