亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? test.pas

?? 能夠計算復數 (Complex) 的單元 ( 1.0 版
?? PAS
字號:
{
This is a test program gone wild!
I originally created it to test my complex-math unit, Complex.pas,
but it has since grown into this monster.
Things to do:
1. Warn user when accessing the ArcXXX functions if the input value
isn't <= |1| : generates an EInvalidFloatOperation (or whatever) at present.
2. Expand ( Geez, will you EVER be satisfied ?!!!) the input routine
to eventually make a truly useful complex calculator
3. Overall, more graceful errorhandling (warnings etc instead of allout exceprions)
}
unit Test;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls,Complex, ComCtrls;

type
  TForm1 = class(TForm)
    ComplexIn1: TEdit;
    ComplexIn2: TEdit;
    Complex1: TLabel;
    Complex2: TLabel;
    ListBox1: TListBox;
    Calculate: TButton;
    OutPut: TEdit;
    Avail: TLabel;
    Label1: TLabel;
    Real1: TEdit;
    Real2: TEdit;
    Reals: TLabel;
    Label2: TLabel;
    StatusBar: TStatusBar;
    Equal: TButton;
    procedure ListBox1DblClick(Sender: TObject);
    procedure EqualClick(Sender: TObject);
    procedure ListBox1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.ListBox1DblClick(Sender: TObject);
var Z,Z2:TComplex;R1,R2:Extended;b:boolean;
begin
Z := ToComplex(0,0);
Z2 := ToComplex(0,0);
R1 := 0;
R2 := 0;
Output.Text := '';
if ComplexIn1.Text <> '' then Z := StringToComplex(ComplexIn1.Text);
if ComplexIn2.Text <> '' then Z2 := StringToComplex(ComplexIn2.Text);
if Real1.Text <> '' then  R1 := StrToFloat(Real1.Text);
if Real2.Text <> '' then  R2 := StrToFloat(Real2.Text);

case ListBox1.ItemIndex of
0: R1 := Real(Z);
1: R1 := Imag(Z);
2: R1 := AbsZ(Z);
3: R1 := ModZ(Z);
4: R1 := ArgZ(Z);
5: R1 := NormZ(Z);
6:  Z := CosZ(Z);
7:  Z := CosHZ(Z);
8:  Z := ConjugateZ(Z);
9:  Z := SinZ(Z);
10: Z := ArcSinZ(Z);
11: Z := SinhZ(Z);
12: Z := ArcSinHZ(Z);
13: Z := TanZ(Z);
14: Z := ArcTanZ(Z);
15: Z := ArcCosZ(Z);
16: Z := TanhZ(Z);
17: Z := ArcTanHZ(Z);
18: Z := ExpZ(Z);
19: Z := LnZ(Z);
20: Z := Log10Z(Z);
21: Z := SqrtZ(Z);
22: Z := NegZ(Z);
23: Z := AddZR(Z,R1);
24: Z := SubZR(Z,R1);
25: Z := DivZR(Z,R1);
26: Z := PowZR1(Z,Trunc(R1));
27: Z := PowZR2(Z,R1);
28: Z := MulRZ(R1,Z);
29: Z := SubRZ(R1,Z);
30: Z := DivRZ(R1,Z);
31: Z := PowRZ(R1,Z);
32: Z := SubZZ(Z,Z2);
33: Z := MulZZ(Z,Z2);
34: Z := DivZZ(Z,Z2);
35: Z := PowZZ(Z,Z2);
36: Z := AddZZ(Z,Z2);
37:
begin
  Z := PolarZ(R1,R2);
  { save output in ComplexIn1.Text so we can check any rounding
    errors by running the RectangularZ function directly }
  ComplexIn1.Text := ComplexToString(Z);
  Exit;
end;

38: begin
     RectangularZ(Z,R1,R2);
     Real1.Text := FloatToStr(R1);
     Real2.Text := FloatToStr(R2);
     Exit;
    end;
39: begin
     EqualClick(Sender);
     Exit;
    end;
end;
if ListBox1.Itemindex < 6 then
   Output.Text := FloatToStr(R1)
else
   Output.Text := ComplexToString(Z);
{
ComplexIn1.Text := '';
ComplexIn2.Text := '';
Real1.Text := '';
Real2.Text := '';
}
ActiveControl := ListBox1;
end;

procedure TForm1.EqualClick(Sender: TObject);
begin
     if (ComplexIn1.Text = '') or (ComplexIn2.Text = '') then Exit;
     OutPut.Text := BoolToString((EqualZZ(StringToComplex(ComplexIn1.Text),StringToComplex(ComplexIn2.Text))));
end;

procedure TForm1.ListBox1Click(Sender: TObject);
var i:integer;
begin
{ disable all }
for i := 0 to ComponentCount - 1 do
  if (Components[i] is TEdit) then
    (Components[i] as TEdit).Enabled := False;
{ enable all we allways need }

Calculate.Enabled := True;
ListBox1.Enabled := True;
Output.Enabled := True;
Equal.Enabled := False;

{ enable the ones we need right now }
case ListBox1.ItemIndex of
0..22,38:
begin
     ComplexIn1.Enabled := True;
end;
23..31:
begin
  ComplexIn1.Enabled := True;
  Real1.Enabled := True;
end;
32..36,39:
begin
  Equal.Enabled := True;
  ComplexIn1.Enabled := True;
  ComplexIn2.Enabled := True;
end;
37:
begin
  Real1.Enabled := True;
  Real2.Enabled := True;
end;
end;

{ set appropriate colors }
for i := 0 to ComponentCount - 1 do
begin
if (Components[i] is TEdit) then
   with Components[i] as Tedit do
   if Enabled then Color := clWindow
   else Color := clBtnFace;
end;
{ some help... }
with StatusBar do
case ListBox1.ItemIndex of
 0: SimpleText := 'Return the real part of Z ';
 1: SimpleText := 'Return the imaginary of Z ';
 2: SimpleText := 'Return the absolute value of Z ';
 3: SimpleText := 'Return the absolute value of Z ';
 4: SimpleText := 'Return the argument of Z ';
 5: SimpleText := 'Return the normalized value of Z ';
 6: SimpleText := 'Return the cosine of Z ';
 7: SimpleText := 'Return the hyperbolic cosine of Z ';
 8: SimpleText := 'Return the conjugate of Z';
 9: SimpleText := 'Return the sine of Z ';
10: SimpleText := 'Return the arcsine of Z ';
11: SimpleText := 'Return the hyperbolic sine of Z ';
12: SimpleText := 'Return the hyperbolic arcsine of Z';
13: SimpleText := 'Return the tangens of Z ';
14: SimpleText := 'Return the arctangens of Z ';
15: SimpleText := 'Return the arccosine of Z ';
16: SimpleText := 'Return the hyperbolic tangens of Z ';
17: SimpleText := 'Return the hyperbolic arctangens of Z ';
18: SimpleText := 'Return e raised to the power of Z ';
19: SimpleText := 'Return the natural logarithm of Z ';
20: SimpleText := 'Return the base 10 logarithm of Z ';
21: SimpleText := 'Return the square root of Z ';
22: SimpleText := 'Return the negative value of Z ';
23: SimpleText := 'Return the addition of Z and R1';
24: SimpleText := 'Return the subtraction of Z and R1';
25: SimpleText := 'Return the division of Z and R1';
26: SimpleText := 'Return Z raised to the power of R (integer)';
27: SimpleText := 'Return Z raised to the power of R (float)';
28: SimpleText := 'Return the multiplication of R1 and Z ';
29: SimpleText := 'Return the subtraction of R1 and Z ';
30: SimpleText := 'Return the division of R1 and Z ';
31: SimpleText := 'Return R raised to the power of Z ';
32: SimpleText := 'Return the subtraction of Z and Z2';
33: SimpleText := 'Return the multiplication of Z and Z2';
34: SimpleText := 'Return the division of Z and Z2';
35: SimpleText := 'Return Z raised to the power of Z2';
36: SimpleText := 'Return the  addition of Z and Z2 ';
37: SimpleText := 'Return the polar coordinates of R1 and R2 ';
38: SimpleText :='Return the rectangular coordinates of Z ';
39: SimpleText :='Return true if Z and Z2 is equal';
end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
     { update }
     ListBox1.ItemIndex := 0;
     ListBox1Click(Sender);
     Application.Title := 'ZCalc';
     Caption := Application.Title + ' - complex calculator';
end;

end.

Real(Z);
Imag(Z);
AbsZ(Z);
ModZ(Z);
ArgZ(Z);
NormZ(Z);
CosZ(Z);
CosHZ(Z);
ConjugateZ(Z);
SinZ(Z);
ArcSinZ(Z);
SinhZ(Z);
ArcSinHZ(Z);
TanZ(Z);
ArcTanZ(Z);
ArcCosZ(Z);
TanhZ(Z);
ArcTanHZ(Z);
ExpZ(Z);
LnZ(Z);
Log10Z(Z);
SqrtZ(Z);
NegZ(Z);
AddZR(Z,R1);
SubZR(Z,R1);
DivZR(Z,R1);
PowZR1(Z,Trunc(R1));
PowZR2(Z,R1);
MulRZ(R1,Z);
SubRZ(R1,Z);
DivRZ(R1,Z);
PowRZ(R1,Z);
SubZZ(Z,Z2);
MulZZ(Z,Z2);
PowZZ(Z,Z2);
AddZZ(Z,Z2);
PolarZ(R1,R2);
EqualZZ(Z,Z2);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久一区二区三区| 国产麻豆精品theporn| 美国欧美日韩国产在线播放| 福利视频网站一区二区三区| 欧美日韩国产经典色站一区二区三区 | 视频一区免费在线观看| 国产精品一二三区在线| 欧美精品v日韩精品v韩国精品v| 日本一区二区三区高清不卡| 麻豆91精品视频| 色欧美片视频在线观看在线视频| 久久亚洲影视婷婷| 全国精品久久少妇| 在线观看日韩毛片| 18成人在线观看| 国产精品99久久久久久久vr| 日韩一区二区不卡| 亚洲成av人影院在线观看网| 91偷拍与自偷拍精品| 国产免费成人在线视频| 久久www免费人成看片高清| 欧美挠脚心视频网站| 一区二区三区不卡在线观看 | 久久久.com| 韩国毛片一区二区三区| 欧美一二三四区在线| 日韩精品电影在线| 欧美日韩国产另类一区| 亚洲一区二区三区三| 色综合久久久久综合体桃花网| 国产精品乱码妇女bbbb| 国产99久久久国产精品潘金 | 久久久精品免费网站| 久久精品免费观看| 正在播放亚洲一区| 日韩av电影天堂| 日韩一区二区三区免费看 | 亚洲精品欧美专区| 91免费在线视频观看| 日韩伦理免费电影| 99久久精品免费看| 亚洲女爱视频在线| 91国产免费看| 日韩福利视频导航| 欧美精品一区二区三区高清aⅴ| 国产一区二区福利| 国产精品嫩草影院com| 99精品视频在线播放观看| 国产精品乱人伦中文| 91浏览器打开| 亚洲国产日日夜夜| 日韩一区二区三区免费看 | 成人综合在线网站| 亚洲日本在线观看| 欧美日韩一卡二卡三卡| 美女精品自拍一二三四| 国产精品久久午夜| 欧美优质美女网站| 香蕉影视欧美成人| 欧美精品一区二区三区很污很色的| 九九九精品视频| 成人免费在线播放视频| 欧美日韩在线直播| 国产真实乱偷精品视频免| 亚洲日本在线天堂| 欧美一区二区国产| av一本久道久久综合久久鬼色| 亚洲综合色视频| 精品福利在线导航| 91福利视频网站| 激情综合网最新| 亚洲精品自拍动漫在线| 欧美tk—视频vk| 色婷婷国产精品| 韩国欧美国产1区| 亚洲一二三四区不卡| 久久久久久久久一| 欧美性猛片xxxx免费看久爱| 玖玖九九国产精品| 亚洲欧美日韩小说| 久久久蜜桃精品| 欧美日韩免费在线视频| 成人午夜视频在线| 三级成人在线视频| 亚洲欧美日韩综合aⅴ视频| 日韩美女视频在线| 欧洲在线/亚洲| 菠萝蜜视频在线观看一区| 蜜臀久久久99精品久久久久久| 国产精品久久国产精麻豆99网站| 日韩一区二区中文字幕| 日本久久一区二区三区| 国产91精品欧美| 精品亚洲porn| 奇米色777欧美一区二区| 一区二区三区中文免费| 中文字幕欧美三区| 亚洲精品在线三区| 日韩三级精品电影久久久 | 麻豆高清免费国产一区| 亚洲精品成人在线| 成人欧美一区二区三区白人 | 东方aⅴ免费观看久久av| 久久精品国产久精国产爱| 亚洲mv大片欧洲mv大片精品| 中文字幕欧美一区| 国产欧美日韩激情| 国产亚洲成av人在线观看导航| 日韩午夜在线观看视频| 91精品国产免费| 欧美精品xxxxbbbb| 在线91免费看| 91精选在线观看| 欧美精品日韩一区| 欧美日韩国产不卡| 欧美精品免费视频| 91精品国产综合久久香蕉的特点 | 一区二区三区四区高清精品免费观看| 久久久久9999亚洲精品| 久久日韩粉嫩一区二区三区| 欧美精品一区二区三区一线天视频| 日韩欧美视频一区| 精品久久久久久久一区二区蜜臀| 日韩欧美中文字幕制服| 欧美xfplay| 国产三级精品视频| 中文字幕中文在线不卡住| 综合色天天鬼久久鬼色| 亚洲激情第一区| 无码av中文一区二区三区桃花岛| 青娱乐精品视频在线| 精品影视av免费| 成人激情小说网站| 色妹子一区二区| 欧美丰满嫩嫩电影| 精品国产伦一区二区三区观看方式| 精品久久国产老人久久综合| 久久久久久久电影| 国产精品进线69影院| 亚洲一区二区黄色| 麻豆成人在线观看| 国产91精品一区二区麻豆网站 | 一区二区日韩av| 国产精品私人影院| 亚洲一区二区中文在线| 毛片av中文字幕一区二区| 国产精品一色哟哟哟| 色哦色哦哦色天天综合| 日韩一区二区在线看片| 国产精品久久久久久久久免费相片 | 日韩欧美一区二区不卡| 日本一区二区三区四区在线视频| 亚洲色图19p| 精品亚洲免费视频| 91亚洲午夜精品久久久久久| 欧美一区二区在线免费播放| 国产欧美一区二区三区在线看蜜臀| 一区二区激情小说| 国产乱理伦片在线观看夜一区| 91在线码无精品| 欧美白人最猛性xxxxx69交| **欧美大码日韩| 国内精品国产成人国产三级粉色| av在线不卡免费看| 欧美成人国产一区二区| 亚洲精品欧美在线| 国产老妇另类xxxxx| 欧美日韩美女一区二区| 中文字幕不卡一区| 精品午夜久久福利影院| 欧美亚洲综合网| 国产欧美日韩精品在线| 美女在线一区二区| 欧美系列在线观看| 国产精品天天看| 经典三级在线一区| 欧美美女直播网站| 亚洲欧美一区二区久久| 国产一区啦啦啦在线观看| 69精品人人人人| 亚洲一区二区精品视频| 91免费观看在线| 国产精品五月天| 国产成人av一区二区| 91精品欧美一区二区三区综合在 | 日韩欧美在线不卡| 亚洲第一福利一区| 一本到高清视频免费精品| 亚洲国产精品成人综合| 国产一区二区影院| 欧美成人一区二区三区片免费| 日韩电影在线一区二区三区| 欧美曰成人黄网| 亚洲成人免费av| 欧美性色黄大片| 亚洲成人动漫精品| 欧美日韩视频在线第一区 | 久久亚洲二区三区| 美美哒免费高清在线观看视频一区二区 | 在线成人午夜影院|