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

pow(x,y) doesn't work in py2tex() #35

Closed
turner-eng opened this issue Mar 9, 2021 · 2 comments
Closed

pow(x,y) doesn't work in py2tex() #35

turner-eng opened this issue Mar 9, 2021 · 2 comments

Comments

@turner-eng
Copy link
Contributor

turner-eng commented Mar 9, 2021

py2tex("pow(a,b)") currently produces:
$$\operatorname{pow}\left(a, b\right)$$
instead of:
a^b

Do you want pow(a,b) to result completely like a**b?

If yes, we should do the following shown in the picture

  1. change the name "power" with "pow" in core.py->visit_Call() and
  2. in the same function, remove the "self.parenthesis()" around args[0]

image

reference
image

@erwanp
Copy link
Owner

erwanp commented Mar 9, 2021

Yes let's do it ! I've never used pow before but it's standard Python syntax

emetor added a commit that referenced this issue Sep 1, 2021
@emetor
Copy link
Collaborator

emetor commented Sep 1, 2021

pow(x,y) enabled in commit #44

@emetor emetor closed this as completed Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants