Wikipedia:Reference desk/Archives/Mathematics/2010 January 7

Mathematics desk
< January 6 << Dec | January | Feb >> January 8 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


January 7 edit

TI 84 plus calculator program edit

Can somone please make me a program for factoring? Thanks! Accdude92 (talk to me!) (sign) 17:58, 7 January 2010 (UTC)[reply]

Have you tried a google search with "TI 84 plus calculator program factoring"? Dmcq (talk) 18:26, 7 January 2010 (UTC)[reply]
Are you talking about factoring integers, or polynomials? -GTBacchus(talk) 18:31, 7 January 2010 (UTC)[reply]

Why use TI-84 Plus series when you have a PC? I use the J (programming language), program q:

   q: 105600
2 2 2 2 2 2 2 3 5 5 11

Bo Jacoby (talk) 21:38, 7 January 2010 (UTC).[reply]

  • If you're just talking about factoring numbers, something like this should work:
Input b
While b≠1
For a,2,int sqrt(b)+1
If not fpart b/a
Then
b/a -> b
Disp a
End
End
End

Thegreenj 05:49, 8 January 2010 (UTC) Dmcq's right; it should have stopped at the square root. Changed. Thegreenj 21:29, 8 January 2010 (UTC) [reply]

If I read that right it doesn't stop at the square root so it'll take a long time for big primes. For this sort of thing I follow Tom Lehrer — plagiarize, let no one else's work evade your eyes. Or as Robert J. Lang says let dead people do your work - though of course here they'll be alive :) That search I gave above immediately leads to a site with factorization of both numbers and polynomials. Dmcq (talk) 07:22, 8 January 2010 (UTC)[reply]
I mean a program for factoring polynomials.Accdude92 (talk to me!) (sign) 16:00, 8 January 2010 (UTC)[reply]
The TI-84 is usually not powerful enough to factor polynomials, unless you mean factoring quadratics. In that case, you can just use the quadratic formula and then check if either solution is an integer.
Prompt A
Prompt B
Prompt C
(-B+√(B^2-4AC))/(2A)→X
(-B-√(B^2-4AC))/(2A)→Y
If fpart(X)=0
Disp X
If fpart(Y)=0
Disp Y  —Preceding unsigned comment added by Yanwen (talkcontribs) 23:26, 9 January 2010 (UTC)[reply]