Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include "utils.h"
- double mysin(double x) {
- double y = 0;
- for (int i = 0; i < 10; i++) {
- y += pow(-1, i) * pow(x, 2 * i + 1) / factorial(2 * i + 1);
- }
- return y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement