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

Update the tensor function #35

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

StrangeGirlMurph
Copy link
Contributor

Hey :) I modified the tensor function a bit. It now defaults to showing everything as a superscript if no + or - is given. I also made the function a bit more robust. It for example also handles cases like $tensor(R,e,-)$.

I also encountered and dove deep into the same thing that confused you.

} else { // Curiously, equality with [-] is always false, so we don't do it

If you want to learn more see the discussion on discord: https://discord.com/channels/1054443721975922748/1088371867913572452/1297487726387400775 (Basically "-" != math.minus = sym.minus)

Feel free to just take this as an inspiration if you're not happy with the implementation directly. Also please play around with it. It should feel very natural.

@Leedehai Leedehai merged commit 791f91b into Leedehai:master Nov 1, 2024
1 check passed
@Leedehai
Copy link
Owner

Leedehai commented Nov 1, 2024

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants