Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include <math.h>
- #include "Unit1.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::ZMIClick(TObject *Sender)
- {
- double y;
- double x;
- double dx = 3.14159265359/900., xMax = 3.14159265359;
- double sum = 0;
- for ( double x; x<=xMax; x+x );
- {
- sum+=x*pow ( sin ( x ) , 11) ;
- }
- }
- //---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment