Autor Beitrag
Davinci_LE
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Fr 05.01.07 16:36 
Hallo Leute....

kann mir jemand helfen und zwar, warum zeigt mein programm keinen richtigen kurvenverlauf?

gruß david

ausblenden volle Höhe Delphi-Quelltext
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:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
unit TEST_PM_FM;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Series, Dialogs, TeEngine, ExtCtrls, TeeProcs, Chart, StdCtrls;

type
  TForm9 = class(TForm)
    Button1: TButton;
    Chart1: TChart;
    Series1: TLineSeries;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form9: TForm9;

implementation

{$R *.dfm}

procedure TForm9.Button1Click(Sender: TObject);
var x, y: real;
ut,ft,M,fn:real;
begin
  ut:=1;
  ft:=10;
  fn:=1;
  M:=30;
  x:=1;
  repeat
   //meine formel
   y:=ut*cos(2*pi*ft*x+M*sin(2*pi*fn*x));
   //in chart darstellen
   series1.AddXY(x,y);
   //x-wert erhöhen
   x:=x+1;
  until x=10 ;
     begin
        series1.Clear;
        series1.AddXY(0,0);
        series1.AddXY(1,y);
     end;


end;

end.



Moderiert von user profile iconChristian S.: Topic aus Sonstiges (Delphi) verschoben am Fr 05.01.2007 um 16:44
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Fr 05.01.07 17:11 
Wenn du die eingetragenen Werte gleich wieder löschst (Z. 46) kanns gar nix werden. :lol:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.