Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double f(double x, double e,double Nm, ::System::Windows::Forms::ListBox^ LB)
- {
- int n=0;
- double s=0;
- double a=1;
- while (fabs(a)>e && n<=Nm)
- {
- System::String^ outs = System::String::Format(" {0,2:D2} {1,15:F9} {2,15:F9}",n,a,s);
- LB->Items->Add(outs);
- s=s+a;
- a=a*x/n;
- n++;
- }
- return s;
- }
Add Comment
Please, Sign In to add comment