Search:

Type: Posts; User: CWalrus

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,008

    Re: Java Integration Help

    haha I don't know why that was like that. Obviously they were supposed to be args[0], args[1], and args[2]. That was not a problem in the original program, and I have fixed it now. Sorry about that.
  2. Replies
    5
    Views
    901

    Re: Java Program Help

    I am not sure if it is a problem with my math or a problem with my programming, but either way I need help. With the inputs 1 1 .392699=(Pi/8) 0 0 4 3 20 I should expect the results

    1.000000 ,...
  3. Replies
    7
    Views
    1,008

    Re: Java Integration Help

    These web grader results are actually for a nearly identical program in C. Left is the expected result, right is what I get.
    integral of sin(x)/x on [-6.280000, 6.280000] ~= 2.836724 I got -nan...
  4. Replies
    7
    Views
    1,008

    Re: Java Integration Help

    Sorry about posting my code incorrectly.
  5. Replies
    5
    Views
    901

    Re: Java Program Help

    Alright, I think I fixed the forum format issue.
  6. Replies
    7
    Views
    1,008

    Java Integration Help

    Hey I am working on this program to aproximate the integral of the function sin(x)/x using Reimann sums (left hand). It is close, but whenever I try to check it in the web grader some of my results...
  7. Replies
    5
    Views
    901

    Java Program Help

    I am working on a program that asks me to track the position of an imaginary ball as it bounces around an imaginary box. The user gives me input for the starting position of the ball (x,y), the...
Results 1 to 7 of 7