Advertisement
goodvibes2298

Bad programming my old bachelors thesis

Mar 20th, 2025
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. for(double i = 1; i <= n / 2; i++) {
  2.     double x = (2 * i - 1);
  3.     result += h * 4 / 3 * mathFunc(a + x * h);
  4. }
  5. for(double i = 1; i <= n / 2 - 1; i++) {
  6.     double x = (2 * i);
  7.     result += h * 2 / 3 * mathFunc(a + x * h);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement