Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "math.h"
- int main()
- {
- float h = 0.02f;
- float a = 0.1f;
- float b = 0.9f;
- float currentValue = 0;
- float y = 0;
- float exp = 2.718f;
- while (currentValue < b)
- {
- currentValue += h;
- y = expf(currentValue);
- std::cout << y << std::endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement