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
Calculator #116
Comments
Work in progress at https://github.com/sancarn/launchmenu-calculator |
Imo focus should be different than is currently described in the main post. The calculator applet would be a simple applet mostly oriented towards common usecases that non-engineers may have. And a separate "scientific-calculator" applet or something along those lines could be made to provide plotting, and all other advanced features. |
In my view it depends on ease of integration. If a plotter were easy to integrate I wouldn't be opposed to someone adding it in some capacity to the applet (Can always have a basic/advanced mode for calculator in settings anyway). If however it's going to be a nightmare and/or be a messy addition, I'd rather it separate. |
Reopening as although simple applet is implemented full scope of issue isn't addressed. Although there is debate that full scope in issue should be included or not in the simple calculator |
Update 2021-07-13: Tar is now working on a final version of calculator which will be significantly more customisable than my existing attempt. It will include:
This is currently being done as a seperate project unitary Math parser as we believe this will be useful for others also.
The calculator applet would attempt to provide a search menu for all things Math.
Derivatives/integralsCapability shown to exist under current framework, doesn't fit the scope currently. Feel free to make an applet!Detail
Simple evaluator
As an MVP, it could just provide answers for simple calculations such as
When such a query is entered, a menu item with the result could appear in the menu.
Research and implement built-in functions
We should also look into creating a list of inbuilt functions which will be offered.
For a list of functions which we may like to add we could look at spreadsheet formula engines?
Search pattern
A search pattern is really up to the user but I would anticipate using something like
/^=/
would be an ideal search pattern because:ANS Shortcut
A keyboard shortcut to execute the same functionality as the ANS key on a calculator does (evaluate and replace search text with the result)
Suggested query fixes
LM currently has fuzzy search mechanisms to find errors in typed text. It would be cool if LM also suggested potential fixes in the listed menu items. E.G. If the typed text was
1+2+3)/120
LM would suggest:As a long term apple spotlight user myself I can say that this is at least extremely common.
Plotting
It could provide simple plotting capabilities, for formulas involving 1 variable such as
x + 9 * sin(x)
in which case we also have to consider how the plot result will be nevigated (translation + zoom)This idea could even be taken a step further by making an environment simular to the one found in desmos. This would obviously be a large undertaking however. When making such an advanced system you would probably also want to be able to save the environment and such.
There are open source web projects that exist already which have functionality similar to desmos.
Derivatives/integrals
The calculator may provide some way of calculating derivatives and integrals including their derivation steps, similar to derivative-calculator.net and integral-calculator.net.
Wolfram alpha
Depending on available apis, it would be amazing if a service similar to wolfram alpha could provide some advanced analytical data that wouldn't be feasible for us to implement in javascript.
The text was updated successfully, but these errors were encountered: