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.
Type: Posts; User: CWalrus
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.
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 ,...
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...
Sorry about posting my code incorrectly.
Alright, I think I fixed the forum format issue.
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...
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...