;

PDA

Click to See Complete Forum and Search --> : Drawing Conics


bizzum
03-19-2002, 10:59 PM
Hello! Anybody out there?

Anyways, this is the question, and I have been searching every place you can think of on the net. Nobody, and I mean nobody knows the answer.

I am building a Math Lesson and I want to draw concis on a grid. For example, I want to draw a parabola with the equation y = x^2. This parabola will be drawn on the grid using actionscript code. Now there will an equation y = (x - h) + k, where h, and k will be input boxes which will be the graph so many units left or right, up or down.

Okay how the hell do you just draw y = x^2, or for that matter any type of function.

Is there any type of tutorial, books, videos, anything, help!!!

I have searched high and I have searched low and no answer yet.

Help!!!!

Bizzum

ironmallet
03-20-2002, 04:28 AM
i have a couple ideas, i spent last 20 min on one idea.

i put a,b, and c into a clip called equation.

then lined up a bunch of points in a mc called graph. they are each a mc with this code:

onClipEvent(enterFrame) {
a=_parent.equation.a
b=_parent.equation.b
c=_parent.equation.c

x=this._x/10;
this._y=-5*(a*x*x+b*x+c);
}


http://www.ironmallet.com/flashkit/grapher.htm

it's acting funny, I think it's the updating or something, it's something I guess, a starting point.

hexagone
03-20-2002, 06:57 AM
In the open source files there is a graphing calculator
that you could rip apart and use.Just use the search mechanism
bye

tonypa
03-20-2002, 12:04 PM
Heres a little graph:

http://www.hot.ee/tonypa/flash/flas/graph.html

source:
http://www.hot.ee/tonypa/flash/flas/graph.fla