Linear Calculator 2 and Root 2

Send the following files to your calculator:

LICALC2.86p
ROOT2sp.86p

Linear Calculator 2

    

LICALC2 is a program that finds the distance, midpoint, and equation between two points.  It also shows the work for all of these. (see above)

Start LICALC2 by typing Asm(LICALC2 on your calculator and press enter.  You will be prompted for x1, y1, x2, y2 for (x1,y1) & (x2,y2) is the two points.  After you enter all the information and calculation you will see a new screen.  The first line is the distance in simplified radical form, the second line is the distance as numerical approximation, third and forth line is the x value for the midpoint and the y value for the midpoint.  The last line is the equation of the line, the x coefficient is fixed at four decimal places, to view a more accurate value press F3 and go to the Eqn screen, the value is m.  Now press F3 to show work, F1 to restart the program, Alpha to temporarly shut the calculator off and F5 or Exit to exit.

If F3, you will see a new window with work for distance.  Press F1 to go to midpoint, press F1 again to go to Equation.  The work might be cryptic at first, it is because the 7 line limit of the screen.  At any of those three screens you may press Alphs to turn off the calculator or Exit to exit the program.

ROOT2sp

ROOT2sp is a program that simplifies a radical with any index.

Start ROOT2sp by typing Asm(ROOT2sp to the home screen and press enter.  You will be prompted for the index.  For example, a square root the index is 2.

Press enter, now you will be prompted for the radicand.  Press enter again, the black square denotes the simplified radical and the numerical approximation.

Press F1 to repeat using the same index, press F3 to change index, Alpha to shut off the calculator, and F5 or Exit to exit.

If you intend to use LICALC2, do not delete ROOT2sp. It is required to run LICALC2.

If you intend to use ROOT2sp, you may delete LICALC2. It is not needed to run ROOT2sp.

For Programmers

ROOT2sp can be configured as a subroutine.

For ROOT2sp store the index in A, store the radicand in B, store 1 in SHELL, and call Asm(ROOT2sp.  The simplified answer is D and B/(D^A) where D is the coefficient and (B/D^A) goes inside the radical sign.


History

The original LICALC2 & ROOT2sp were written in BASIC and work perfectly fine. If you have any questions regarding that version of the file or find any bugs, please report them to Steven at siyu12345@yahoo.com  Steven will try to answer as quickly as possible

This version of LICALC2 and ROOT2sp does exactly the same as the BASIC vesion with a few exceptions. It does not require DISPLAY, a program that was used with the BASIC version.  Thus there is no subroutine available to use. However the BASIC version is compatible with this ASM version of LICALC2 & ROOT2sp.

This version is in ASM so it is naturally faster. I was also able to shave off around 800 bytes. It also requires only the two programs. Decreasing the number of files needed to transfer and keep on your calculator by 3 or so.

I can answer most if not all questions you may have about the source and compilation of this program. If you have any please e-mail me(Morgan) at morgan@ticalc.org

If you have any comments, questions, suggestions, hate mail, offers of money etc. then feel free to email Steven, he will try to answer as quickly as possible.



Copyright (C) 2004 Hectosoft, Inc.

Click here for GNU GPL License Agreement

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA