Skip to content
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

Square do not evaluate as Multiply by itself #161

Open
lhotejc opened this issue Apr 28, 2024 · 0 comments
Open

Square do not evaluate as Multiply by itself #161

lhotejc opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
feature New feature or enhancement

Comments

@lhotejc
Copy link

lhotejc commented Apr 28, 2024

Description

I use the two commands for differents results :

const sqTerm = ce.box(['Square',term]).evaluate().latex // (-\\frac{z}{3})^2
const sqTerm = ce.box(['Multiply', term, term]).evaluate().latex // \\frac{z^2}{9} that's what I want !

Steps to Reproduce

look at this :
https://codepen.io/lhotejc/pen/QWPPGvB

Actual Behavior

['Square', term] is evaluated diffently from ['Multiply', term, term]

Expected Behavior

Need to do the same result, no ?

Environment

Is this a regression: did it use to work in a previous version?

I do not test before.

MathLive version
compute-engine 0.24.1

Operating System Linux ubuntu 22.04 LTE
Browser Chrome

@arnog arnog self-assigned this Apr 28, 2024
@arnog arnog added the feature New feature or enhancement label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement
Development

No branches or pull requests

2 participants