AutoResearch / equation-tree

https://autoresearch.github.io/equation-tree/
MIT License
1 stars 0 forks source link

Added squared and cubed functionality #11

Open chadcwilliams opened 10 months ago

chadcwilliams commented 10 months ago

Description

I added functionality to separate squared and cubed functions from power in general, BUT I am thinking that this is more of a hack than a proper solution, so we might want to reject this PR. I just wanted to show you in case it might be a good idea.

The caveat with my approach is that I made squared and cubed functions rather than operators because they only take one input. Maybe that's fine, maybe not? On my side of things it worked as intended, but you side of things is quite different so it might be a problem.

2

Type of change

Features (Optional)

Remarks (Optional)