Vous êtes sur la page 1sur 6

http://tracker.t411.

me:56969/cd5d3d734c7cc7c00ceb8776f2e72ab5/announce
e45873rj5829sf26e9fez5zd4f8er41v
http://tracker.t411.me:56969/80af327e77ac492b3089aa144de4e565/announce

unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm3 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
h : real ;
implementation
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);

for i:=0 to StrToFloat(Edit6.Text) do


if i=0 then
edit7.Text := '{'
else
edit7.Text := edit7.Text + FloatToStr(3.44*i*i*(3*StrToFloat(edit5.Text) - i)/3)
+';';

begin
for h :=0 to strtofloat(Edit3.Text) do
if h = 0 then
edit1.Text := '{'

else
edit1.Text := edit1.Text + floattostr(3.14*h*h*(3*strtofloat(edit2.Text) - h)/3)
;
end;
end.

var res : REAL ;


R,h : integer ;
begin
R := StrToInt(edit5.Text);
h := 0 ;
while h<20 DO
begin
res :=res + (3.14*h*h*(3*R- h)/3);
end;
edit7.Text := floattostr(res);

97 306 256 ;

final sphre :

procedure TForm5.Button1Click(Sender: TObject);


var res :real; R,h : integer ;
begin
R := StrToInt(Edit1.Text);
h := 0 ;
while h<100 DO
begin
Edit3.Text:= edit3.Text + FloatToStr((3.14*h*h*(3*R-h)/3))+';';
h := h+1;
end;
end;

end.

int
int
int
int

byte_read = 0; ///< The current byte


recieved_integer = 0; ///< The current recieved integer
CONNECTION=0;
i ;

int adress_int, fonction_int ,data_int,LRC_int ;


String adress_string="";
String fonction_string="";
String data_string = "";
String data1_string = "";
String LRC_string = "";
void setup() {
Serial.begin(9600);
}
boolean is_a_number(int n)
{
return n >= 48 && n <= 57;
}
int ascii2int(int n, int byte_read)
{
return n*10 + (byte_read - 48);
}
void loop() {
recieved_integer = 0;
while ( Serial.available() ) {
i++;
byte_read = Serial.read();
if (byte_read==58 & i==1)
{
CONNECTION=1;
Serial.println("conexion a etablit ");
}
if (i==2 )
{
adress_string =adress_string+(char)byte_read ;
}
if (i==3 )
{ adress_string =adress_string+(char)byte_read ;
adress_int=adress_string.toInt();
Serial.print("l'adresse de l'esclave est : ");
Serial.println(adress_int);
}
if (i==4)
{ fonction_string =fonction_string+(char)byte_read ;
}
if (i==5)
{ fonction_string =fonction_string+(char)byte_read ;
fonction_int = fonction_string.toInt();
Serial.print("la fontion de l'esclave est : ");
Serial.println(fonction_int);
}
if (i==6)
{ data_string = data_string+(char)byte_read;
}
if (i==7)
{ data_string = data_string + (char)byte_read ;
}
if (i==8)

{ data_string = data_string +(char)byte_read ;


}
if (i==9)
{ data_string = data_string +(char)byte_read ;
data_int = data_string.toInt();
Serial.print("les donnees sont : ");
Serial.println(data_int);
}
if (i==10)
{ LRC_string = LRC_string + (char)byte_read;
}
if (i==11)
{ LRC_string = LRC_string + (char)byte_read;
}
if (i==12)
{ LRC_string = LRC_string + (char)byte_read;
}
if (i==13)
{ LRC_string = LRC_string + (char)byte_read;
LRC_int = LRC_string.toInt();
}
if (LRC_int = adress_int + fonction_int + data_int) ;
{
Serial.print("les donnees sont correctes ");
Serial.println(LRC_int);
}
}
if ( CONNECTION == 1 )
{
Serial.println( recieved_integer );
delay(1000);
CONNECTION =0 ;
}
}

var
R,h: integer ;
begin
R := StrToInt(edit5.Text);
for h:=0 to StrToInt(Edit6.Text) do
if h=0 then
edit7.Text := '{'
else
edit7.Text := edit7.Text + FloatToStr(3.14*h*h*(3*R - h)/3)+';';
{940,953333333333;3759,62666666667;8449,74;15005,0133333333;23419,1666666667;336
85,92;45798,9933333333;59752,1066666667;75538,98;93153,3333333333;112588,8866666
67;133839,36;156898,473333333;181759,946666667;208417,5;236864,853333333;267095,
726666667;299103,84;332882,913333333;368426,666666667;405728,82;444783,093333333

;485583,206666667;528122,88;572395,833333333;618395,786666667;666116,46;715551,5
73333333;766694,846666667;819540;874080,753333333;930310,826666667;988223,94;104
7813,81333333;1109074,16666667;1171998,72;1236581,19333333;1302815,30666667;1370
694,78;1440213,33333333;1511364,68666667;1584142,56;1658540,67333333;1734552,746
66667;1812172,5;1891393,65333333;1972209,92666667;2054615,04;2138602,71333333;22
24166,66666667;2311300,62;2399998,29333333;2490253,40666667;2582059,68;2675410,8
3333333;2770300,58666667;2866722,66;2964670,77333333;3064138,64666667;3165120;32
67608,55333333;3371598,02666667;3477082,14;3584054,61333333;3692509,16666667;380
2439,52;3913839,39333333;4026702,50666667;4141022,58;4256793,33333333;4374008,48
666667;4492661,76;4612746,87333333;4734257,54666667;4857187,5;4981530,45333333;5
107280,12666667;5234430,24;5362974,51333333;5492906,66666667;5624220,42;5756909,
49333333;5890967,60666667;6026388,48;6163165,83333333;6301293,38666667;6440764,8
6;6581573,97333333;6723714,44666667;6867180;7011964,35333333;7158061,22666667;73
05464,34;7454167,41333333;7604164,16666667;7755448,32;7908013,59333333;8061853,7
0666667;8216962,38;8373333,33333333;
var L,R,a,h : integer ;
begin
R := StrToInt(Edit2R.Text);
L := StrToInt(Edit1L.Text);
a := StrToInt(edit3r.Text);
h := StrToInt(edit4h.Text);
for h := 0 to StrToInt(edit4h.Text)do
if h=0 then
Edit5result.Text := '{'
else
Edit5result.Text := Edit5result.Text + FloatToStr((R*R*Arccos(1-h/R)-(R-h)*sq
rt(h*(2*R-h)))*L+ (3.14*h*h*a*(R-h)/3*R))+';' ;
46476316

BAGI VA5LAGI MAHI RAD WELI VA5LAGI BAGI 3AWDANI NEJBAR KEL 7AD 5A6I 8ELI VA5LAGI

Vous aimerez peut-être aussi