Add fraction support to Qalculate!

This commit is contained in:
Lyn Perrine 2025-02-25 13:55:46 -08:00
parent 68f7f1697c
commit 8fff328e61

View File

@ -13,6 +13,8 @@ Below where you type in calculations is a history of your previous calculations.
To copy text from Qalculate! select the text and press :kbd:`Control + C` or right click and select :menuselection:`Copy`. To cut the text from Qalcualate! press :kbd:`Control +X` or right click and select :menuselection:`Cut`. To past text press :kbd:` Control +V` or right click and select :menuselection:`Paste`. To copy text from Qalculate! select the text and press :kbd:`Control + C` or right click and select :menuselection:`Copy`. To cut the text from Qalcualate! press :kbd:`Control +X` or right click and select :menuselection:`Cut`. To past text press :kbd:` Control +V` or right click and select :menuselection:`Paste`.
Qalculate also does many operations with fractions. To input 1/2 into something you can middle click on the :guilabel:`2` button. Similarly to input 1/3 middle click on :guilabel:`3` and for 1/4 middle click on :guilabel:`4` and so on. Qalculate will also simplify fractions if you type them in so if you type in 4/16 Qalculate! will reduce it to 1/4 and then also provide a decimal answer with a :guilabel:`=` sign for an exact value or an :guilabel:`≈` for an approximate solution if not exact. Qalculate! will also let you add, subtract, multiply, divide, or more advanced fractions with fractions and still show the result as fractions.
To exponentiate a base number to a power left click x :sup:`y` or type :kbd:`^`. To square a number right click x :sup:`y` or type :kbd:`sq()` around what you want to square. To raise e to a power middle click x :sup:`y` or type :kbd:`exp()` around what power you want to raise e to. To take the square root of something left click the :guilabel:`√` button or insert a :kbd:`√` character. To take the cube root of something right click the :guilabel:`√` button or type :kbd:`cbrt()`. To take the nth root of something middle click on the :guilabel:`√` button or type :kbd:`root( , )` where the first thing is what you are taking the root of and the second is which root to take. To exponentiate a base number to a power left click x :sup:`y` or type :kbd:`^`. To square a number right click x :sup:`y` or type :kbd:`sq()` around what you want to square. To raise e to a power middle click x :sup:`y` or type :kbd:`exp()` around what power you want to raise e to. To take the square root of something left click the :guilabel:`√` button or insert a :kbd:`√` character. To take the cube root of something right click the :guilabel:`√` button or type :kbd:`cbrt()`. To take the nth root of something middle click on the :guilabel:`√` button or type :kbd:`root( , )` where the first thing is what you are taking the root of and the second is which root to take.
To take a natural lograrithm left click on the :guilabel:`ln` button or type in :kbd:`ln()`. To take a logarithim on base 10 right click on the :guilabel:`ln()` button or type in :kbd:`log10()`. To take a logarithim with base n middle click on :guilabel:`ln` and then input your base. To take a natural lograrithm left click on the :guilabel:`ln` button or type in :kbd:`ln()`. To take a logarithim on base 10 right click on the :guilabel:`ln()` button or type in :kbd:`log10()`. To take a logarithim with base n middle click on :guilabel:`ln` and then input your base.