Syntax Question (89)


[Prev][Next][Index][Thread]

Syntax Question (89)



I am trying to write a program to generate a Quadratic Equation from a set of
point for the vertex (h,k) and any point on the graph.

I can get the leading coeficient "a" okay. But then I try to pass that on to
generate the full equation. using the formula Y=a(x-h)^2+k

I keep getting snagged on that last setp.

Can anyone shed light on this.

I do have TI-Link and am programing in my computer then sending the file to the
TI89.

Following is one of my many attempts

Walt

************************************************

()
Prgm
ClrIO
setMode("Display Digits","FLOAT 6")
0»a
0»h
0»k
0»x
0»y
setMode("Exact/Approx","EXACT")
Dialog
Title  "Vertex & Point "
Text  "Generates equation from"
Text  "Vertex and a point"
Text  " "
Text  "By Walt Brannon"
EndDlog
Disp "Vertex (h,k)"
Prompt h
Prompt k
Disp "Point (f,g)"
Prompt f
Prompt g
(g-k)/(f-h)^2»a
Disp "a equals ", a
(a*(X-h)^2+k)»p
Disp "The function is ", p
EndPrgm


References: