Casio Program Help for AP Calc Riemann Sums

In summary, the code is attempting to perform a numeric integration, but may not be allowed by the CASIO due to the use of a variable name that is not allowed. You might try a simpler program or look for a Casio programming site that can help you with this.
  • #1
15kororya
1
0
Hi brand new to the site. I keep on having a syntax error when I run the code below on my casio fx-cg10. Btw I also put a display triangle on the last m as well
upload_2015-3-18_18-12-57.png
 
Computer science news on Phys.org
  • #3
Well, I will comment for what little it will be worth.

(B-A)/(2N)->H Shouldn't the 2N simply be N?
0->M Do you want to set M to zero (this may be true to zero out variables, just asking)
Dsz N I don't recognize this function
Goto 1 This could also be a problem for you as a goto function is down and dirty without a formal exit feature. Not sure how your calculator functions to catch errors after this Goto 1.

Have you tried a simpler program as the triangle may mean you are awaiting inputs. Not sure either.
 
  • #4
Definitely (B-A)/N-> H and NOT (2N) as the Casio will try to multiply N*2 (doesn't support 2 variable names, and this could also be your problem further down in your program as well.)

You should check to see if your CASIO has other looping structures other than GOTO (although I am a down and dirty programmer and don't have any aversion to this). ie Do Loops or IF, THEN, ELSE to do the summation under the function. Certain words are reserved as programming commands, but your use of 2Hf and 2HL may not be allowed by the CASIO (they could be, check your manual if your calculator allows long variable names). On a Ti 83/84 this would not be an allowed variable name, but would be interpreted as 2*H*f or 2*H*L.

You might also do a web search or visit a Casio programming site and see if someone has done this for you (I suspect they have). This is an integration function as you have named it and new calculators have this function built in. However, 20 years ago, this wasn't the case and older programmable calculators had to use this type of program to compensate for not having built in numerical integration. You should be successful in finding a BASIC program and making it would with your CASIO as it is fairly similar.
 

1. What is the Casio Program for AP Calc Riemann Sums?

The Casio Program for AP Calc Riemann Sums is a computer program designed to help students and professionals calculate Riemann sums, a method used in calculus to approximate the area under a curve.

2. How does the Casio Program for AP Calc Riemann Sums work?

The program uses a user-friendly interface to input the necessary parameters for calculating Riemann sums, such as the function, interval, and number of partitions. It then performs the necessary calculations and provides the result in a clear and concise format.

3. Is the Casio Program for AP Calc Riemann Sums accurate?

Yes, the program uses advanced algorithms and techniques to ensure accurate calculations. However, it is always important to double-check your work and understand the underlying concepts to ensure the accuracy of your results.

4. Can the Casio Program for AP Calc Riemann Sums be used for all types of Riemann sums?

Yes, the program can be used for both left and right Riemann sums, as well as midpoint and trapezoidal Riemann sums. It also allows for both upper and lower sums to be calculated.

5. Is the Casio Program for AP Calc Riemann Sums user-friendly?

Yes, the program has a simple and intuitive interface that makes it easy for users of all levels to navigate and use. It also provides helpful prompts and error messages to guide users through the calculation process.

Similar threads

  • Programming and Computer Science
Replies
11
Views
2K
  • Programming and Computer Science
Replies
32
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
847
  • Engineering and Comp Sci Homework Help
Replies
2
Views
6K
  • Programming and Computer Science
3
Replies
75
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
2K
  • Programming and Computer Science
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
Replies
3
Views
10K
  • Programming and Computer Science
Replies
12
Views
1K
Back
Top