Darkempire78 / OpenCalc

A simple and beautiful calculator for Android
GNU General Public License v3.0
740 stars 83 forks source link

letter support #223

Closed Wjxfi closed 1 year ago

Wjxfi commented 1 year ago

examples:

e=mc^2

x^2y+x+xy^2+y+2xy+2

x^2 + 6x + 5

(x - 3)(x + 7) - 13 = (x + 8)(x - 4) - 2

(x + 1)(x + 2)(x + 3)

Letters are important.

I would like to be able to use them.

solution suggestion:

long press on ! to show the 10 most popular letters (for math) in place of all digits. long press on % to show 10 other letters (except for those shown on !) in place of all digits. long press π to display 6 other letters (except those shown at ! and %) instead of almost all numbers.

To close the alphabet you will need to do the following: https://user-images.githubusercontent.com/113500363/223429495-be844d81-0edf-4e56-bc14-ca4c099b9dd2.mp4 (once)

so we could fit the entire English alphabet into one calculator. I really hope this will be added

Darkempire78 commented 1 year ago

I can understand the use of constants like g=9.81, but what is the use of x or y here ? We cannot define a variable

Wjxfi commented 1 year ago

x^2y+x+xy^2+y+2xy+2

factor the polynomial

x^2 + 6x + 5

divide the trinomial into factors

(x - 3)(x + 7) - 13 = (x + 8)(x - 4) - 2

prove the identity

(x + 1)(x + 2)(x + 3)

Write down as a polynomial the expression

this is a translation using DeepL so something may not be spelled correctly

btw, there are a very large number of different tasks along with letters

Wjxfi commented 1 year ago

Also, there should be support for ^ for letters

Wjxfi commented 1 year ago

@Darkempire78 Why did you close it?

Darkempire78 commented 1 year ago

This is not planned for the moment because it will make the calculator too complex

Wjxfi commented 1 year ago

This is not planned for the moment because it will make the calculator too complex

Right now the calculator is incomplete. but when it is done it will be much better and there will be no changes in the interface since it will be hidden. I really need it, and letters are important in so many situations. Just put the tag (and reopen the issue) wontfix like other developers do, for example the developer of FOSS Browser, so that when you want to do it (something new and important) it will be immediately visible that you can do something useful.

ghost commented 1 year ago

Right now the calculator is incomplete. but when it is done it will be much better and there will be no changes in the interface since it will be hidden.

I wouldn't say it is incomplete. A simple calculator app doesn't need to support every feature. Mathematics is a huge topic and many features could be added which wouldn't make the app better for most users.

The fact that the feature should be hidden would mean most users wouldn't notice its existence and wouldn't benefit from it. If this feature would be included, the app would definitely need a small UI change like a extra button for letters.

Also polynomial factorization, primality proof, etc. isn't that easy. I am not an app developer but I guess that this feature would take too much time and therefore the decision to close the issue is justified.

At the same time there already are good open source tools for your purposes. For example check out SymPy.

Wjxfi commented 1 year ago

I said that it should be hidden because there is not enough space on the screen for this button. to find out about the existence of letters it is possible to write in the app description about the existence of this possibility. My friend at school has to deal with letters all the time. That's why I think it's so important.

I'm sure a lot of people have to deal with letters. In higher mathematics and in school mathematics in my country they occur all the time, I don't understand why you say it won't be needed because it's not popular.

The sympy app is much worse than this one. And most importantly, it does not work with percentages as well as this app.

Wjxfi commented 1 year ago

@Darkempire78 you didn't do it

ghost commented 1 year ago

Darkempire already explained it.

This is not planned for the moment because it will make the calculator too complex

I am almost certain that this feature wont make it into OpenCalc even if the issue stays open. Maybe one day someone who really wants this feature forks the project and develops it themself.