Function second grade y = ax2 + bx + c is parable graph (isn't "parabola",
is parable in english)
' '
' '
' '
x ' '
| ' '
| '
¨¨¨¨¨¨¨¨ y
----- Original Message -----
From: "Marc Santhoff" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 24, 2006 2:30 PM
Subject: Re: [lazarus] TAChart and Parabola graph
Am Dienstag, den 24.01.2006, 12:04 +0200 schrieb Graeme Geldenhuys:
Hi,
Does anybody know if the TAChart component supports the Parabola
graph? If not, is there any other Lazarus or Free Pascal componet
that can be used?
I don't understand, you want to draw the graph of a parabolic function?
If so, yes, TAGraph supports arbitrary plot data. The example program
itself (in the package) does in fact draw a parabolic curve:
From the source:
var
Serie:TTASerie;
i:Integer;
begin
Serie:=TTASerie.Create(TAChart1);
TAChart1.AddSerie(Serie);
Serie.ShowLines:=CheckBox3.Checked;
Serie.ShowPoints:=CheckBox2.Checked;
Serie.Title:='Sqr';
for i:=-5000 to 5000 do
Serie.AddXY(i/10,Sqr(i/10)/1000,clRed);
HTH,
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives