Skip to content

Explicitly show multiplier for Implicit multiplication inside a Tri function #635

@karenpb

Description

@karenpb

Hi,

MathJS has the option to show multiplier for implicit multiplication.

eg.
math.parse('2cos(pi)').toString({implicit: 'show'});
Output: "2*cos(pi)"

Is it possible to extend this option to the arguments for the function?
For example: math.parse('2cos(3pi)').toString({implicit: 'show'});
Output: "2 * cos(3 pi)"
A * is missing between 3 and "pi". Is there a way to add the * ?

Same for all other functions like sin, nthRoot, int and etc.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions