Professional Documents
Culture Documents
Factall
Factall
Usage
=====
Copy main.factall.89f to your TI-89 using a link cable.
TIP: If you don't want to type the closing brace (who does?),
install Kevin Kofler's excellent AutoClBr program. Search
Google to find it, I highly recommend it.
http://members.chello.at/gerhard.kofler/kevin/ti89prog.htm#autoclbr
Additional Information
======================
That's all you need to know to use factall! But if you
want to know more about factoring, continue reading.
Version History
---------------
1.0 initial release
FAQ
---
Q: Is factall fast?
A: I tried to make it fast. Let me know if you have any
speed improvements. Note that factall() will never be
faster than factor().
augment(factall(6), -factall(6))
Technical Overview
------------------
factall(x) calls factor(x), and then proceeds to parse the
returned expression into the prime factors (pfc list) and
their exponents (expn array). This takes a lot of code,
because factor() returns a human-readable expression which
must be transformed into computer-readable lists. Each
element in pfc[] corresponds to an element of the same
index in expn[]. An exponent of 1 is assumed if none specified.
factors:
2^3 * 3^2 * 5^1 = 360
2^2 * 3^2 * 5^1 = 60
2^1 * 3^2 * 5^1 = 90
2^0 * 3^1 * 5^1 = 15
2^3 * 3^1 * 5^1 = 120
2^2 * 3^1 * 5^1 = 60
2^1 * 3^0 * 5^1 = 10
2^0 * 3^0 * 5^1 = 5
2^3 * 3^0 * 5^1 = 40
2^3 * 3^2 * 5^0 = 72
2^2 * 3^2 * 5^0 = 36
2^1 * 3^2 * 5^0 = 18
2^0 * 3^1 * 5^0 = 3
2^3 * 3^1 * 5^0 = 24
2^2 * 3^1 * 5^0 = 12
2^1 * 3^0 * 5^0 = 2
2^0 * 3^0 * 5^0 = 1
1,2,12,24,3,18,36,72,40,5,10,60,120,15,90,60,360
Let me know,
-Jeff Connelly