Factor 3

            

This is a program that finds all the real factors of a number.

This is a factor program optimized in both size and speed. There is neither a progress indicator nor a fancy interface for the sake of speed & size.

To run the program, send FACTOR3.86G to your calculator, type FACTOR3 on the home screen. You will be prompted for the number to be factored. Press enter after you enter a number.  The program will display a black square at the bottom right of the screen (this is as close as I am willing to go on a progress indicator) as the calculation starts.  After the program finish, screen will be cleared, view xStat and yStat (xStat*yStat == number).  A simple way to do this is to open the list editor. ([2nd] [STAT] F2)

The program ClRAM cleans the calculator of the variables used in FACTOR3 to save RAM.  Many of my other programs use this program also.

The Real variable SHELL and the String variable Ał should not be edited or deleted!  Again, several of my other programs use those variables.

For Programmers

To use this program as a subroutine, store 1 into variable SHELL.  Then put the number to be factored in variable A.  Now call FACTOR3.  The program will not prompt for an input nor will the end message be displayed.  The factors will be listed in xStat & yStat.

Example:

:Get inputs...

:1 -> SHELL

:x -> A

:FACTOR3

:Do something with xStat & yStat...

//This program factor x and store the answer in xStat & yStat


FACTOR3 should not have any bugs, however, if a bug is found, please email me at somewherenonexistant@yahoo.com

If you have any comments, questions, suggestions, hate mail, offers of money etc. then feel free to email me, I'll try to answer as quickly as possible.


____________________________________________________________________________________
Copyright (C) 2003 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