MHB Program Ti-Nspire CX CAS: Simpsons Rule

  • Thread starter Thread starter ineedhelpnow
  • Start date Start date
  • Tags Tags
    Nspire
Click For Summary
SUMMARY

The discussion focuses on programming the TI-Nspire CX CAS calculator to implement Simpson's Rule for numerical integration. Users are advised to consult the user manual for the specific syntax of the TI-Nspire programming language. The program should prompt for parameters such as $a$, $b$, $n$, and $f(x)$, and utilize a loop to evaluate the function at three successive points, maintaining a running sum. Finally, the sum is multiplied by the appropriate constant to yield the final result.

PREREQUISITES
  • Familiarity with TI-Nspire CX CAS programming language syntax
  • Understanding of Simpson's Rule for numerical integration
  • Basic programming concepts such as loops and functions
  • Ability to interpret and implement mathematical algorithms
NEXT STEPS
  • Review the TI-Nspire CX CAS user manual for programming syntax
  • Study the mathematical derivation of Simpson's Rule
  • Practice writing pseudo-code for numerical algorithms
  • Explore advanced features of the TI-Nspire CX CAS for optimization
USEFUL FOR

Students, educators, and developers interested in programming calculators for mathematical applications, particularly those focusing on numerical methods and integration techniques.

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 ·
Replies
4
Views
3K
  • · Replies 15 ·
Replies
15
Views
12K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
7K