Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SFACT
Factors polynomials
J. S. Sato
Displays two numbers while operating: the number at the top is
the guess being used to find a rational root and the number at
the bottom is the number of rational roots found. Results may
be affected by flag -3. SFACT does not work if the last stack
option is disabled. Results are given in algebraic form.
List
x^2-3*x+2
x^2-4
3*x^3-10*x^2+8*x
{ 1 -3 2 }
{ 1 0 -4 }
{ 3 -10 8
0 }
-2*x^2-9*x-7
{ -2 -9 -7
}
x^2+5*x-3
{ 1 5 -3 }
3*x^3-6*x+9
{ 3 0 -6 9
}
x^4-3*x^3+2*x-6
{ 1 -3 0 2
-6 }
27*x+72
{ 27 72 }
315*x^2+1711*x{ 315 1711
1376
-1376 }
18*x^9-129*x^8+
{ 18 -129
206*x^7+404*x^6206 404
1193*x^5+200*x^
-1193 200
4+448*x^3+1232*
448 1232
x^2-496*x-960
-496 -960
}
-6*x^10+44*x^9{ -6 44
102*x^8-12*x^7+
-102 -12
454*x^6-780*x^
454 -780
5+366*x^4+412*
366 412
x^3-648*x^2+336*
-648 336
x-64
-64 }
Result
Program:
Function:
Author:
Comments:
'(-1+X)*(-2+X)'
'(2+X)*(-2+X)'
'(-4+3*X)*(-2+X)*
X'
'-((7+2*X)*(1+X))
'
'-3+X^2+5*X'
'3*(3+X^3-2*X)'
7 sec.
8 "
15 "
5 sec.
6 "
9 "
11 "
7 "
9 "
12 "
6 "
9 "
'(2+X^3)*(-3+X)'
14 "
9 "
'9*(8+3*X)'
9 "
'(-32+45*X)*(43+ 184 "
7*X)'
'(1+X^2+X)*(2+3* 164 "
X)*(-4+3*X)*(-5+
2*X)*(2+X)*(-2+
X)^2*(-3+X)'
5 "
99 "
'-(2*(-4+3*X)*(1+
X)*(-1+X)^5*(2+
X)*(-2+X)^2)'
33 "
51 "
97 "
FACTS
Finds factors of a number
Anonymous; J. S. Sato, ed.
The larger the number, the longer it takes for FACTS to return a
result. The ATTN key interrupts the program and returns two
lists in levels 1 and 2 and the original number in level 3.
Result
{ 1 2 4 7 8 14 28 56 }
{ 1 2 4 8 16 32 64 128 }
{ 1 263 }
Program:
Function:
Author:
PRIM
Finds prime factors of a number
Anonymous
PRIM finds prime factors of a positive real number and returns the results in a
list. PRIM returns an empty list for the number 1 and leaves non-positive
numbers alone.
Examples:
Number
360
3844037
373
5.132E13
Result
{
{
{
{
2 2 2 3 3 5 }
29 41 53 61 }
373 }
2 2 2 2 2 2 2 2 2 2 2 2 5 5 5 5 5 5 5 5 5 5 1283 }
Program:
Function:
Author:
SQRT
Finds the square root of a number
J. S. Sato
SQRT requires a real number from the stack and it returns the square root of
the number in the simplest radical form. The solution will contain the
variable 'i' if the number is negative.
Examples:
Number
Result
20
-163296
576
269
'2*\v/5'
'108*\v/14*i'
24
'\v/269'
Program:
Function:
Author:
Comments:
D\->F
Converts a decimal to a fraction
Akira Ijuin
Results may be affected by flag -3.
D\->F converts a decimal number (any real number) to a fraction in the form
'a/b*\v/(c/d)'. Integers, however, are returned as integers. If '\v/(c/d)' is
equal to 1, only 'a/b' is returned. If 'a/b' is equal to 1, only '\v/(c/d)' is
returned.
Examples:
Number
Result
1.02062072616
4.89897948557
1.29099444874
.714285714286
.267261241912
'5/2*\v/(1/6)'
'2*\v/6'
'\v/(5/3)'
'5/7'
'\v/(1/14)'
Program:
Function:
Author:
Comments:
D\->RT
Converts a decimal to a root
Anonymous
Decimal numbers must be accurate to at least five decimal
places. ATTN interrupts the program, leaving the original
decimal in level 2 and the current guess in level 1.
D\->RT converts a real number to a root in the form 'a+\v/b', where 'a' is
either a whole number or a number with one decimal place and 'b' is a positive
whole number. Integers and numbers with only one decimal place are ignored.
The program may run infinitely if random numbers are used. The program
searches for 'b' in the above equation by starting with 1. It then increments
the counter by 1 until 'b' is found. Therefore, the decimal 8.0891438104
('-20+\v/789') would take much longer than the decimal 12.2360679775
('10+\v/5').
Examples:
Number
Result
4.4142136
7.6095202129
-1.11
'3+\v/2'
'-5+\v/159'
'-13.6+\v/156'
Program:
Function:
Author:
Comments:
GCF
Finds the greatest common factor of two numbers
Anonymous
To find the greatest common factor of three or more numbers, put
the numbers on the stack and execute GCF once less than the
total number of numbers. For example, for four numbers, execute
GCF three times, for ten numbers, execute GCF nine times, etc.
GCF returns a negative number if one of the numbers is negative.
Result
75
-1
-5.6
-.0178
Program:
Function:
Author:
Comments:
LCM
Finds the least common multiple of two numbers
Anonymous
Follow the guideline given in GCF to find the least common
multiple of three or more numbers. LCM returns a negative
number if one of the numbers is negative.
Result
5 and 12
56 and -45
-240 and 16
-2.35621 and -45.1523
60
-2520
-240
-10638830.0783
Program:
Function:
Author:
Comments:
PCOEF
Extracts coefficients into a list
William Wickes
Results may be affected by flag -3. PCOEF may be coordinated
with SFACT. However, care must be taken when doing this (keep
in mind that SFACT does not work when the list begins with a 0).
number is larger than the order number of the polynomial, the resulting list
will contain leading 0's. This list cannot be used with SFACT.
Examples:
Polynomial
Name
Number
'(X+1)*(X^2-4)'
'Y^2-3*Y+2'
'4*S^2-N'
'J^3-3*J+6'
'X'
'Y'
'S'
'J'
3
4
2
1.5
Program:
Function:
Author:
Comments:
Result
{
{
{
{
1
0
4
0
1 -4 -4 }
0 1 -3 2 }
0 '-N' }
-3 6 }
ALGVERSION
Displays the Algebra Library logo and version number
Akira Ijuin; J. S. Sato, ed.
ALGVERSION does not affect PICT or PPAR.
ALGVERSION displays the Algebra Library logo and its version number along with
the release date. Pressing any key will return you to the stack.
Note: All of the results given in the examples above were obtained using
default flags.
-Installing and UninstallingTo install the Algebra Library, download the ALGEBRA.LIB file to the calculator
in binary form and store it in a variable. Recall the contents of the variable
to the stack and execute DUP. Check to see if the library object is valid by
executing BYTES. The library object should be 3461 bytes with a checksum of
# 209Ah or # 8346d. Do not use the library if the figures do not match. Store
the library object in a port by placing a port number on the stack and
executing STO. Turn the calculator off and then on. The calculator will
perform a system halt, and the library will automatically attach itself to the
home directory. Purge the variable in which the library was stored.
To remove the Algebra Library, place a tagged object on the stack in the form
x: 1060 where 'x' is the port number in which the Algebra Library was stored.
Execute DUP, then DETACH, then PURGE.
-Miscellaneous InformationTitle:
Algebra Library
Version:
3.5
Release date: August, 1992
Checksum:
# 209Ah or # 8346d
Bytes:
3461
Individual program information:
Program
Version
Release Date
SFACT
SFACT
SFCT2
SFCTJ
SFACT
SFCT2
SFCTJ
SFACT
SFACT
SFACT
1.0
2.0
1.0
1.0
2.2
1.1
1.1
4.0
4.2
5.0
November, 1990
December 13, 1990
December 13, 1990
December 13, 1990
December 17, 1990
December 17, 1990
December 17, 1990
February, 1991
February, 1991
April, 1991
SFACT
SFACT
SFACT
FACTS
FACTS
FACTS
FACTS
PRIM
PRIM
SQRT
SQRT
SQRT
SQRT
D\->F
D\->RT
D\->RT
GCF
GCF
GCF
LCM
LCM
PCOEF
ALGVERSION
ALGVERSION
ALGVERSION
RS (Subprogram)
RS (Subprogram)
Algebra Library
Algebra Library
Algebra Library
Algebra Library
Algebra Library
5.1
5.2
5.2-ML
?
Sato 1.1
Sato 2.0
Sato 2.1
?
Sato 1.1
1.0
1.1
2.0
3.0
?
?
Sato 1.1
?
Sato 1.1
Sato 1.2
?
Sato 1.1
?
1.0
Sato 2.0
Sato 2.1
1.0
Ijuin 2.0
1.0
2.0
2.1
Sato 3.0
Sato 3.5
June, 1991
June, 1992
June 21, 1992
October, 1990?
March, 1991
June, 1992
August, 1992
October, 1990?
March, 1991
October, 1990
December 13, 1990
June, 1992
August, 1992
June, 1992
?
March, 1991
March, 1991?
April, 1991
August, 1992
June, 1992?
August, 1992
May, 1990
May, 1992
June, 1992
August, 1992
(Not released)
May, 1992
(Not released)
May, 1992
May, 1992
June, 1992
August, 1992
-NoticeThe Algebra Library is freeware and is not to be bought or sold. The library
and documentation may be copied freely and doing so is encouraged, provided
that the materials are not altered in any way.
Nobody but the user may be held responsible for any consequential damages
resulting from the use and/or misuse of the library and/or the programs
included in the library.
The programs included in the library may be used by other programs as long as
the creator gives proper credit in the new program's documentation and clearly
specifies that this Algebra Library is required to run the program.
-Questions and AnswersQ: What method does SupraFactor use?
A: SupraFactor uses synthetic division.
Q: Why does '315*x^2+1711*x-1376' take longer to factor than '-6*x^10+44*x^9102*x^8-12*x^7+454*x^6-780*x^5+366*x^4+412*x^3-648*x^2+336*x-64' even
though the first is a 2nd order polynomial and the latter is a 10th order
polynomial?
A: Take a look at the coefficients of the highest degree and the coefficients
of x^0. The larger the value of these coefficients, the longer SupraFactor
takes. The order of the polynomial has very little to do with running
time.