Math Program Ideas
|
Post your ideas for new math programs here, or build on ideas posted by other visitors.
|
|
Reply to this item
|
Re: Math Program Ideas
|
jankowalski
|
Hi
I just started a new topic that is simulation programming on TI83.I have problem with one of the problems.It says:
"Three cars breakdown on a 500 mile-long highway.Simulate the probability they breakdown within 50 miles of each other.
I used 500rand to calculate all cars breakdown distance,then believe that I should use absolute value to make sure that they are withing 50 miles.Also, I think that probability will be the breakdowns within 50 miles divided by total number of breakdowns.
Can someone give me an idea how to connect my ideas and write program.
|
|
11 November 2008, 17:59 GMT
|
|
Re: Math Program Ideas
|
Sharon Hopper
|
I have written a program on quadratics that gives the equation when 5 points are entered. I have not seen anything like it through the Archive. It works great, if the first point is (0, c). If the first point is not then the b coefficient is half of what it should be. I could write another program and correct this, but then I would have 2 programs. And I don't know how to combine them into one single program. Can someone help me? Any advice or help would be appreciated. sharon
|
|
5 January 2009, 00:00 GMT
|
|
Geometer's SketchPad
|
RomeoKinelli
(Web Page)
|
Someone should make a Geometer's SketchPad app. Some are like it, but they aren't exactly the same. I'm in geometry, and it would help if I didn't have to go to the the PC lab every time my teacher gives us an assignment to do on SketchPad. Can anyone help, because I can't program for apps. I'm a BASIC programmer.
|
|
12 January 2009, 21:30 GMT
|
|
Re: Math Program Ideas
|
Mexicodue
|
hey i was wondering if any of you know how to program menus, i've started messing around and programming stuff but i can't get the menu thing to work, if you could that'd be great, thanx
|
|
15 February 2009, 16:31 GMT
|
|
help
|
tom cavanaugh
|
what does the Openlib( mean???
|
|
6 March 2009, 23:22 GMT
|
|
Quadratics Solver pt1
|
Andrew Gerst
|
Can anyone come up with a program for the ti-84 calculator to get the x-intercept, discriminate, and the vertex of a quadratic equation. i have successfully coded 1/3 of my program for standard form but i can't figure out vertex form and intercept form.
Here Is My Progress:
|
|
19 March 2009, 07:55 GMT
|
|
Quadratics Solver pt2
|
Andrew Gerst
|
PROGRAM:QUADRAT
:ClrHome
:Menu("EQUATION FORM?",
"STANDARD",1,
"VERTEX",2,
"INTERCEPT",3)
:Lbl 1
:Disp "STANDARD"
:Disp "AX^2+BX+C=0"
:Prompt A,B,C
:B^2-4AC->D
:Disp "XINT DIS VERTEX"
|
|
19 March 2009, 07:57 GMT
|
|
Quadratics Solver pt3
|
Andrew Gerst
|
:(-B+sqrt(D))/(2A)->E
:(-B-sqrt(D))/(2A)->F
:Disp E
:Disp F
:Disp D
:Disp sqrt(D)
:-B/2A->G
:AG^2+BG+C->H
:Disp G
:Disp H
:Output(1,1,"
:Pause
:ClrHome
:Disp "AS FRACTIONS:"
:Disp E->Frac
:Disp F->Frac
:Disp D->Frac
:Disp sqrt(D)->Frac
:Disp G->Frac
:Disp H->Frac
:Output(1,1,"
:DelVar A
:DelVar B
:DelVar C
:DelVar D
:DelVar E
:DelVar F
:DelVar G
:DelVar H
:Stop
|
|
19 March 2009, 07:57 GMT
|
|
Quadratics Solver pt4
|
Andrew Gerst
|
:Lbl 2
:Disp "VERTEX"
:Disp "Y=A(X-H)^2+K"
:Y=0
:Prompt A,H,K
:Disp "XINT DIS VERTEX"
:If K>0
:Then
:Y-K->B
:Else
:Y+K->B
:B/A->C
:If H>0
:Then
:sqrt(C)-H->D
:-sqrt(C)-H->E
:Else
:sqrt(C)+H->D
:-sqrt(C)+H->E
:Disp D
:Disp E
:Output(1,1,"
:Pause
:ClrHome
:Disp "AS FRACTIONS:"
:Disp D->Frac
:Disp E->Frac
:Output(1,1,"
:DelVar A
:DelVar B
:DelVar C
:DelVar D
:DelVar E
:DelVar F
:DelVar G
:DelVar H
:Stop
|
|
19 March 2009, 07:58 GMT
|
|
Quadratics Solver pt5
|
Andrew Gerst
|
:Lbl 3
:Disp "INTERCEPT"
:Disp "F(X)=A(X-M)(X-N)"
:Prompt A,M,N
:Disp "XINT DIS VERTEX"
:If M>0
:Then
:B=M
:Else
:B=-M
:If N>0
:Then
:C=N
:Else
:C=-N
:Output(1,1,"
"Pause
:ClrHome
:Disp "AS FRACTIONS:"
:Output(1,1,"
:DelVar A
:DelVar B
:DelVar C
:DelVar D
:DelVar E
:DelVar F
:DelVar G
:DelVar H
:Stop
:End
|
|
19 March 2009, 07:59 GMT
|
|
Re: Math Program Ideas
|
streetblader9222
|
Now, i am a programer with nothing to program. im in alg 2 so give me some ideas please
|
|
21 May 2009, 19:08 GMT
|
|
Re: Math Program Ideas
|
slowmo
|
hi im new here but have been following this thread for a while...
i had an idea as to make a program that will first find 2 unknown numbers that add up to a number so lets say x+y=28 the program will figure out what the 2 unknows are and also those same x and y will be multiplyig to a number. so pt1: x+y=??(the number entered) and pt2 (x)(y)=!!(another number) [this part is factoring]
but i want the program to find a number that multiplys to 10 and adds up to 7
and do both parts automatically
|
|
16 June 2009, 17:04 GMT
|
|
Math Program Ideas
|
slowmo
|
hi im new here but have been following this thread for a while...
i had an idea as to make a program that will first find 2 unknown numbers that add up to a number so lets say x+y=28 the program will figure out what the 2 unknowns are and also those same x and y will be multiplying to a number. so pt1: x+y=??(the number entered) and pt2 (x)(y)=!!(another number) [this part is factoring]
but i want the program to find a number that multiples to 10 and adds up to 7
and do both parts automatically
Reply to this comment
|
|
16 June 2009, 17:16 GMT
|
|
Re: Math Program Ideas
|
Paul Darragh
|
Hey anyone who really knows ti-84's could u tell me if this program is possible?.... im trying to make one that tell me that root 20 is really 2 root 5 instead of 4.4721....if someone could get me started on the hard stuff such as how to plug in a number say 400 and have it search everything until it says 20 is the right awnser
|
|
16 July 2009, 17:28 GMT
|
|
Re: Math Program Ideas
|
AlgebraTeacher
|
I teach Algebra to students of different levels. The TI-83 has been very helpful in the past for low level students. Does anyone have any programs that may be helpful? They need to be easy to use.
|
|
3 October 2009, 20:07 GMT
|
|
Re: Math Program Ideas
|
11nmnm
|
I made an equation solver
|
|
8 January 2010, 07:27 GMT
|
|
Re: Math Program Ideas
|
David314
|
Hi, I made a program that does multiple regression (when y is affected by more than one type of x-value), and it uses matrices. Currently, though, I have to enter the data into the matrices separate from the program itself. Is there any way to edit a matrix in a program? Or to edit lists and store them in a matrix? Any help would be appreciated.
|
|
5 March 2010, 13:03 GMT
|
|
Simultaneous Equation Solver
|
nemo123
|
Solves for when you have 2-5 equations. (though really, you can modify it to do any number)
Repeat max(A={2,3,4,5 // Asks for user input
ClrHome // until there's 2 3 4 or 5 eqs.
Input "NUMBER OF EQ'S?",A
End
{A,A+1->Dim([A] // Matrix A, not just '[' 'A' ']'
// The following is Input Code
For(C,1,A
ClrHome
For(B,1,A+1
Output(7,1,"EQUATION
Output(7,10,C
For(D,1,3A-1
Output( 8,D,sub( "AX+BY+CZ+DU+EV",D,1
End
"ABCDEF
Output( 8,3A,"="+sub( Ans,A+1,1
Input sub(Ans,B,1)+"=",E
E->[A](C,B
End
End
//End Input code
rref([A] // rref( function located under 2nd
ClrHome // matrix, math
If 1=Ans(2,A+1) and not(Ans(2,2 //Checks for no soltns
Then
ClrHome
Disp "NO SOLUTIONS
Delvar [A]Return
End
If not(Ans(2,2:Then // checks for infinite solutns
ClrHome
Disp "INFINITE SOLUTNS
Delvar[A]Return
End
//Output Code
Delvar[A]For(K,1,A
Output( K,1,sub( "XYZUV",K,1)+"=
Output(K,3,Ans(K,A+1
End
// End output code
rather condensed. only 343 bytes
any problems email: husoccer004@yahoo.com
|
|
20 March 2010, 17:59 GMT
|
|
Re: Math Program Ideas
|
ebbersbri01
|
This is for Pre-calculus...(high school pre-calc, and for college Calc , if it can be done that is)
Would someone be able to help me create a program to help test for polar symmetry? I would like to have the program test for symmetry at the X-axis, at the Y-axis, and at the origin, if possible. Thanks
Also, I was wondering, if there was A way to make a program that would help convert a point from Rectangular Coordinates-->Polar Coordinates, and Polar Coordinates-->Rectangular Coordinates.
For the conversion to Polar From Rectangular, I need it to give these 4 points...
from (X,Y) (into)-->(r,θ) it needs the following...
(r,θ)
(r,-θ)
(-r,-θ)
(-r,θ)
from Polar into Rectangular I only need the one point. thanks
|
|
5 April 2010, 14:25 GMT
|
|
A factoring program for the n-spire
|
theUnnamed
|
I have worked on a program that will factor polynomials for the N-spire done entirely in n-spire basic. And although I do admit that this is a complex task I have quite a bit of work done on it unfortunately I don't know any algorithms to do more than factor terms in the form of (x-c) for rational c (an extension of the rational roots theorem) please help I need methods not code cause to be perfectly honest I'm writing this stuff to be fast and super optimized so that I can use it in larger programs later. I shall post my functions that comprise the program as replies because I have quite a few functions that comprise this program some of them have a couple of flaws and some of them are subject to change for optimization. comments and idea for improvement are welcome
|
|
11 April 2010, 20:17 GMT
|
|
Re: Math Program Ideas
|
theUnnamed
|
Ok I'm working on a polynomial factoring program. But I need a better algorithm then the rational roots theorem please help. here are the funcions that make up the program. please excuse the lack of comments and insanely complex line I wrote this with efficiency in mind so it may look like a mess but its a fast mess.
this is in N-spire basic and is slightly modified by removing excessive () and again sorry about the excessively long lines
I also hope that my indenting helps despite my original code not having it for speed reasons (i know the gain is negligible but I may later build a larger system around it and when the code runs 500 times the gain no longer looks so small)
this code should run as is on N-spire OS version 2.0.0.1188
anyway enough of that heres code:
(© denotes comments. the n-sprine can take this code as is)
note: some lines are so long they wrap
replies contain code because its too long for a single post
|
|
11 April 2010, 23:56 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
Define polyfact( in )=
Func
Local w, x, y, z, r
polyparce( in )→in
Disp "normal form:", polygen( in )
dim( in )→x
x→r
While in[x]=0
x-1→x
EndWhile
left( in, x )→in
{1, r-x, 0}→r
If ∑( abs( fPart( in[θ] ) ), θ, 1, dim( in ) )=0 Then
in[1]→x
For y, 2, dim( in )
gcd( x, in[y] )→x
EndFor
x→r[1]
in/x→in
EndIf
sort.shell( listmult( allfact( abs( in[dim( in )] ) ), 1/allfact( abs( in[1] ) ) ) )→y
{y[1]}→z
For x, 2, dim( y )
If y[x]≠z[dim( z )]
y[x]→z[dim( z )+1]
EndFor
For w, 1, dim( z )
For x, z[w], −z[w], −2*z[w]
synthdivd( in, x )→y
While y[dim( y )]=0
r[3]+1→r[3]
augment( r, {1, x} )→r
left( y, dim( y )-1 )→in
synthdivd( in, x )→y
EndWhile
EndFor
EndFor
If dim( in )≠1 Then
augment( r, augment( {−1, dim( in )}, in ) )→r
Else
r[1]*in[1]→r[1]
EndIf
Disp "factored:"
terms2str( r )
EndFunc
|
|
12 April 2010, 00:13 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
Define polyparce( r )=Func
Local i, n, c, e, x, t, s
1→s
min( instr2( r, "+", 1 ), instr2( r, "-", 1 ) )→i
1→x
left( r, i-1 )→t
{expr( t )}→c
2→x
log( expr( t )/c, 2 )→e
i+1→i
While i≤dim( r )
min( instr2( r, "+", i ), instr2( r, "-", i ) )→n
1→x
ifFn( mid( r, i-1, 1 )="-", "−", "" )&mid( r, i, n-i )→t
s+1→s
expr( t )→c[s]
2→x
log( expr( t )/c[s], 2 )→e[s]
n+1→i
EndWhile
round( e, 0 )→e
©yes the rounding is nesssary it corrects for an error in the calculation of logs
newlist( max( e ) )→n
For x, 1, dim( e )
dim( n )-e[x]→i
c[x]+n[i]→n[i]
EndFor
While n[1]=0
right( n, dim( n )-1 )→n
EndWhile
n
EndFunc
|
|
12 April 2010, 00:14 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
Define allfact( n )=Func
prmfact( n )→n
Local r, x
{1}→r
For x, 1, rowDim( n )
listmult( seq( n[x, 1]^y, y, 0, n[x, 2], sign( n[x, 2] ) ), r )→r
EndFor
r
EndFunc
|
|
12 April 2010, 00:15 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
©this converts the output of factor( n ) to something usable by a program
©I'm currently working on an optimizing this and adding the feture of giving factors in accenting order
©this function does more and out proforms ti's factormatrix( ) from numbtheory so thats why I'm using my own code here
©Tust me you don't want to touch this piece of code it's craziness
©I had to hand type this function so there may be mistakes
Define prmfact( n )=Func
Local r, i, t, x, d
string( factor( n ) )→r
dim( r )→i
If i≤2 ©small optimization returns quicker if value is -1, 0, 2, 3, 5, 7, 11, 13, 17, or 19
return [[expr( r )][1]]
instr2( r, "/", 2 )→x
ifFn( i>x, i-x, 0 )→t
right( r, t )→n
If left( n, 1 )="( "
mid( n, 2, t-1 )→n
left( r, x-1 )→r
ifFn( r="1", 3, 1 )→i
r&"*"&ifFn( n="", n, n&"*" )→r
{}→n
dim( r )→d
While i≤d
inString( r, "*", i )→t
iffn( t>x, "−", "" )&mid( r, i, t )→n[dim( n )+1]
t+1→i
EndWhile
dim( n )→d
seq( instring( n[i], "^" ), i, 1, d )→x
©the  in the below line are the sqrt( -1 ) not to be confused with the index used i the varible
seq( sign( expr( n[i] ) )*ifFn( x[i]=0, expr( n[i] )+, expr( left( n[i], x[i]-1 ) )+expr( right( n[i], dim( n[i] )-x[i] ) ) ), i, 1, d )→n
{real( n ), imag( n )}
EndFunc
|
|
12 April 2010, 00:16 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
©below function multiplys all elements in x by
©all elements in y and returns a list of the results
©mat▶list( constructMat( f( x[a], y[b] ), a, b, dim( x ), dim( y ) ) )
©is a more general form of this
Define listmult( x, y )=mat▶list( constructMat( x[a]*y[b], a, b, dim( x ), dim( y ) ) )
|
|
12 April 2010, 00:17 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
©below sorts a list of numbs or strings but not mixed
©and strings numbs and strings an not complex numbers
©I'm currently working on improving the speed of this code
©although it still beats TI's sort_acc( ) from numbtheory
©but then again they used a selection sort so it wasn't
©hard to beat
Define sort.shell( x )=Func
Local g, i, a, o, t, b, s, r
dim( x )→s
sort.sgap( s )→g
For a, dim( g ), 1, −1
g[a]→o
For i, o+1, s
x[i]→t
i→b
t<x[b-o]→r
While t<x[b-o]
x[b-o]→x[b]
b-o→b
If b≤o
Exit
EndWhile
t→x[b]
EndFor
EndFor
x
|
|
12 April 2010, 00:17 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
©this function provides the most optimum know gap
©sequence for the shell sort
Define sort.sgap( a )=Func
Local g, i
{1, 4, 10, 23, 57, 132, 301, 701, 1750}→g
If a≤1750
Return left( g, countIf( g, ?<a ) )
2.2*1750→i
While i<a
i→g[dim( g )+1]
round( 2.2*i, 0 )→i
EndWhile
g
EndFunc
|
|
12 April 2010, 00:18 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
Define polygen( x )=Func
Local r, y
dim( x )→y
ifFn( x[y]≠0, ifFn( x[y]>0, "+", "-" )&string( abs( x[y] ) ), "" )→r
If dim( x )>1 Then
y-1→y
ifFn( x[y]≠0, ifFn( x[y]>0, "+", "-" )&ifFn( abs( x[y] )=1, "", string( abs( x[y] ) ) )&"x", "" )&r→r
For y, y-1, 1, −1
ifFn( x[y]≠0, ifFn( x[y]>0, "+", "-" )&ifFn( abs( x[y] )=1, "", string( abs( x[y] ) ) )&"x^"&string( dim( x )-y ), "" )&r→r
EndFor
EndIf
ifFn( left( r, 1 )="-", "−", "" )&right( r, dim( r )-1 )
EndFunc
|
|
12 April 2010, 00:18 GMT
|
|
|
|
|
Re: Re: Math Program Ideas
|
theUnnamed
|
©don't ask how this function works I really don't remember
Define terms2str( t )=Func
Local r, x, e, s
""→r
ifFn( t[1]<0, "−", "" )&ifFn( abs( t[1] )=1, "", string( abs( t[1] ) ) )→r
If t[2]≠0
r&ifFn( t[2]=1, "x", "x^"&string( t[2] ) )→r
3→x
1→s
While x<dim( t )
t[x]→e
s+1→s
If e<0 Then
x+1→x
t[x]→s
−e→e
EndIf
e*s+x→e
For x, x+1, e, s
r&"( "&polygen( mid( t, x, s ) )&" )"→r
EndFor
e+1→x
EndWhile
r
EndFunc
|
|
12 April 2010, 00:19 GMT
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
You can change the number of comments per page in Account Preferences.
|