The only thing I didn't like about the TI-84 Pluc CE was the lack of exact math on that calculator. I ported the HP Prime program written by Han to TI-BASIC. Not the latest version. And I changed something. It took two days. Firstly, because TI-BASIC has more limitations than the HP Prime language. Secondly, because, until this occasion, the last time I had programmed was 30 years ago. I did it for myself, so as it turned out, so it turned out, and bugs may still appear while using it. But so far the program has processed all the examples entered into it correctly.
Yes, of course you can. Here's the link - https://drive.google.com/file/d/13DIrjMM3CXf1Sq_vEVQNkiLeTiUpS3pv/view?usp=sharing
Run A01QPI.
I also wrote an additional QRAC program. It is also in the archive. It works with roots by a different method and can find their sum. But with certain limitations.
Run A02QRAC.
Run A01QPI.
I also wrote an additional QRAC program. It is also in the archive. It works with roots by a different method and can find their sum. But with certain limitations.
Run A02QRAC.
That's very cool! Would to see these tools uploaded to our archives (we ask you zip the programs along with a readme, so users know how to use the software).
Do you have any further plans for these?
Do you have any further plans for these?
- slonechkin
- Newbie (Posts: 4)
- 16 Jan 2025 11:39:38 am
- Last edited by slonechkin on 18 Jan 2025 05:08:47 am; edited 1 time in total
I'll be sure to make a readme and put the program in the archive soon.
It's done. I just have to wait for moderator approval. https://www.cemetech.net/downloads/files/2576/x3273
English is not my first language. However, the text seems to be understandable:
"QPI and QRAC for TI-84 Plus CE.
-------------------------------
Installation:
Install all ‘8xp’ files from the archive.
QPI.
----
HP Prime version - Han Duong. TI-84 Plus CE port - slonechkin.
"This program takes a decimal value and returns a one of the following expressions
that is a "close" rational approximation of the specified decimal value":
a/b; (a*√b)/c or √(a/b), depending on program limitations; (a/b)*⋅π; e^(a/b); or ln(a/b).
Usage:
Run A01QPI.
You can enter an expression or a decimal number.
Or you can make a calculation before running the program and enter the result with Ans.
Press [enter].
QRAC for TI-84 Plus CE by slonechkin.
---------------------------------
QRAC is written to recognise square roots in decimal numbers, for some extension of QPI's capabilities.
QPI squares a decimal number and sends it to subroutine to approximate it into an ordinary fraction.
If the result follows certain rules, the resulting fraction is placed under the root sign.
That is, module deriving the denominator and multiplier from under the root is applied already to the number
in which the root from another number has been ‘recognised’.
QPI has certain ‘working ranges’ and limits the denominators of ‘recognised’ numbers to 1000.
For example, √(21)/71 is √(21/5041). The result falls out of the range and is not treated as a root.
The reasons for the limitations are clear - prioritisation and search depth. Otherwise, the program will find everything and everywhere.
In the case of √(21)/51, if we put the denominator back under the root, we get √(21/2601), which is equal to √(7/867),
and the program ‘recognises’ it.
But QRAC ‘recognises’ √(21)/71. It uses a different methodology.
This program takes a decimal value and returns a one of the following expressions:
a/b, up to the number 1000 in the denominator; (a*√b)/c, up to the number 1000 in the denominator and number "a" not more than 1000;
(a+c*√d)/f, up to the number 21 in the denominator and number "a" not more than 101;
(a*√b+c*√d)/f, up to the number 21 in the denominator and a^2*b not more than 101.
The limitations of the program QRAC are related to the use of the brute force method and not the fastest recognition rate.
However, the limits can be changed in the program.
Now, if the program finds nothing, all cycles up to the ‘NOTHING FOUND’ message are completed in 1 minute 30 seconds.
The larger the denominator, the longer it takes the program to reach it. BASIC is BASIC.
Constructions such as (a+c*√d)/f and (a*√b+c*√d)/f are, most often, roots of quadratic equations.
In the equations themselves, the denominator is immediately visible: 2*a.
Therefore, the restriction to 21 in the denominator can be easily circumvented by multiplying the number
or expression being entered by the denominator. Then the answer will be the exact value of the numerator. And the answer will come quickly.
QRAC Usage:
Run A01QRAC.
You can enter an expression or a decimal number.
Or you can make a calculation before running the program and enter the result with Ans.
Press [enter].
The listing of all programming modules can be found in the archive.
I did it for myself, so as it turned out, so it turned out, and bugs may still appear while using it.
(C) slonechkin, 2025."
English is not my first language. However, the text seems to be understandable:
"QPI and QRAC for TI-84 Plus CE.
-------------------------------
Installation:
Install all ‘8xp’ files from the archive.
QPI.
----
HP Prime version - Han Duong. TI-84 Plus CE port - slonechkin.
"This program takes a decimal value and returns a one of the following expressions
that is a "close" rational approximation of the specified decimal value":
a/b; (a*√b)/c or √(a/b), depending on program limitations; (a/b)*⋅π; e^(a/b); or ln(a/b).
Usage:
Run A01QPI.
You can enter an expression or a decimal number.
Or you can make a calculation before running the program and enter the result with Ans.
Press [enter].
QRAC for TI-84 Plus CE by slonechkin.
---------------------------------
QRAC is written to recognise square roots in decimal numbers, for some extension of QPI's capabilities.
QPI squares a decimal number and sends it to subroutine to approximate it into an ordinary fraction.
If the result follows certain rules, the resulting fraction is placed under the root sign.
That is, module deriving the denominator and multiplier from under the root is applied already to the number
in which the root from another number has been ‘recognised’.
QPI has certain ‘working ranges’ and limits the denominators of ‘recognised’ numbers to 1000.
For example, √(21)/71 is √(21/5041). The result falls out of the range and is not treated as a root.
The reasons for the limitations are clear - prioritisation and search depth. Otherwise, the program will find everything and everywhere.
In the case of √(21)/51, if we put the denominator back under the root, we get √(21/2601), which is equal to √(7/867),
and the program ‘recognises’ it.
But QRAC ‘recognises’ √(21)/71. It uses a different methodology.
This program takes a decimal value and returns a one of the following expressions:
a/b, up to the number 1000 in the denominator; (a*√b)/c, up to the number 1000 in the denominator and number "a" not more than 1000;
(a+c*√d)/f, up to the number 21 in the denominator and number "a" not more than 101;
(a*√b+c*√d)/f, up to the number 21 in the denominator and a^2*b not more than 101.
The limitations of the program QRAC are related to the use of the brute force method and not the fastest recognition rate.
However, the limits can be changed in the program.
Now, if the program finds nothing, all cycles up to the ‘NOTHING FOUND’ message are completed in 1 minute 30 seconds.
The larger the denominator, the longer it takes the program to reach it. BASIC is BASIC.
Constructions such as (a+c*√d)/f and (a*√b+c*√d)/f are, most often, roots of quadratic equations.
In the equations themselves, the denominator is immediately visible: 2*a.
Therefore, the restriction to 21 in the denominator can be easily circumvented by multiplying the number
or expression being entered by the denominator. Then the answer will be the exact value of the numerator. And the answer will come quickly.
QRAC Usage:
Run A01QRAC.
You can enter an expression or a decimal number.
Or you can make a calculation before running the program and enter the result with Ans.
Press [enter].
The listing of all programming modules can be found in the archive.
I did it for myself, so as it turned out, so it turned out, and bugs may still appear while using it.
(C) slonechkin, 2025."
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement