MHB Program Ti-Nspire CX CAS: Simpsons Rule

  • Thread starter Thread starter ineedhelpnow
  • Start date Start date
  • Tags Tags
    Nspire
AI Thread Summary
Programming the TI-Nspire CX CAS to implement Simpson's Rule is feasible and can be achieved by following specific steps. First, refer to the user manual for the correct syntax of the programming language. The program should prompt users for parameters such as $a$, $b$, $n$, and $f(x)$. An effective approach involves using a loop to evaluate the function at three successive points, maintaining a running sum throughout the process. After completing the loop, the sum should be multiplied by the appropriate constant from Simpson's Rule formula to produce the final output. Sharing pseudo-code for review can help refine the program and ensure accuracy.
ineedhelpnow
Messages
649
Reaction score
0
Is there any way to program ti nspire CX cas to do Simpsons rule
 
Physics news on Phys.org
I am certain it can be done, because I wrote such programs for earlier TI models as a student. You will want to refer to your user's manual for the syntax of the programming language, and decide how you want the program to behave...you will want the program to prompt the user for the parameters, $a,b,n,f(x)$ and then you will need to take this input and use an algorithm based on Simpson's Rule to produce the output.

I would suggest a loop to evaluate the function at 3 successive points at a time, and keep a running sum, then after the loop, multiply the sum by the appropriate constant, which is given in front of the sum in the formula.

If you write your pseudo-code out, I'll be glad to look it over and make any suggestion for improvement or correction if needed. :D
 

Similar threads

Replies
4
Views
3K
Replies
15
Views
12K
Replies
4
Views
4K
Replies
2
Views
6K
Replies
13
Views
5K
Replies
1
Views
10K
Replies
5
Views
7K
Back
Top