New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
karenpb opened this Issue Apr 2, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@karenpb

karenpb commented Apr 2, 2016

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.

@josdejong

This comment has been minimized.

Owner

josdejong commented Apr 3, 2016

Yes, it should also output the multiplication character for nested operations, this is a bug. Thanks for bringing this up

@josdejong josdejong added the bug label Apr 3, 2016

@josdejong

This comment has been minimized.

Owner

josdejong commented Apr 3, 2016

This has been fixed now in the develop branch

@karenpb

This comment has been minimized.

karenpb commented Apr 3, 2016

That's great! Thank you for the quick response.

@josdejong josdejong closed this in 26e1e26 Apr 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment