| Author |
Message |
redmann11
Joined: 18 Jan 2011 Posts: 1
|
Posted: January 18, 2011 7:13 PM Post subject: Missing Start/End Qualifiers |
|
|
I receive the error "Missing start or end of block syntax" on my TI-89 when running a program. I understand that I am missing the start/end qualifiers, and I need help placing them. Here is the program:
:Prgm
:Disp "lower limit"
:Input a
:Disp "upper limit"
:Input b
:Disp "n subintervals"
:Disp "enter even n"
:Input n
:0->s
:0->v
:(b-a)/n->w
:For j,1,n/2
:a+2j*w->r
:(p+r)/2->m
:y1(p)->p
:y1(r)->r
:y1(m)->m
:s+w*(p+4m+r)/3->s
:v+w*(p+2m+r)/2->v
:Disp "simpson rule"
:Disp s
:Disp "trapezoidal rule"
:Disp v
:EndPrgm
Thanks for the help! |
|
| Back to top |
|
 |
mellamokb
Joined: 10 May 2007 Posts: 124
|
Posted: February 10, 2011 3:25 PM Post subject: |
|
|
Hi redmann11,
I think you need a matching EndFor for your For loop. My guess would be it belongs just above the statement that reads
Disp "simpson rule"
Hope this helps!
Regards,
~ mellamokb |
|
| Back to top |
|
 |
|