Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include "MathFuncsDll.h"
- using namespace std;
- void tab(float, float, float);
- int main()
- {
- float a, b, h;
- cout << "VVedite a \n";
- cin >> a;
- cout << "VVedite b \n";
- cin >> b;
- cout << "VVedite h \n";
- cin >> h;
- tab(a, b, h);
- system("pause");
- return 0;
- }
- void tab(float a, float b, float h){
- float f;
- int n = (round((b - a)/ h)+ 1);
- for (int i = 1; i <= n; i++)
- {
- f = MathFuncs::MyMathFuncs::func(a);
- cout << "x=" << a << " f=" << f << endl;
- a = a + h;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement