I have written a program to implement the Gosper summation algorithm, which allows you to compute sums such as the sum of 4^k/nCr(2k,k) from k=0 to n-1. The AMS sum function chokes completely on sums like that one.
However, be aware that the Gosper algorithm can handle only very specific sums (called "hypergeometric series"). It won't handle any arbitrary sum you throw at it. There are many sums the AMS sum function can handle and my program can't.
It is written in TIGCC, with:
- TIGCC 0.94 SP4
- GCC 3.3-20021230-tigcc-pre7
It is a _nostub program which returns a value and can throw errors. It only works on AMS 2.04 or higher because it uses mathematical ROM_CALLs not available on lower versions. This also allows it to use F-Line ROM_CALLs without installing an emulator. It runs on all of: TI-89, TI-92+, Voyage 200.
The source code is included, but please do not modify it without my permission. However, if Sebastian and Zeljko want to use this as a TIGCC example, I am willing to relicense it for that purpose.
But enough talking, here's the download link:
members.chello.at/gerhard.kofler/kevin/ti89prog/gosper89.zip
However, be aware that the Gosper algorithm can handle only very specific sums (called "hypergeometric series"). It won't handle any arbitrary sum you throw at it. There are many sums the AMS sum function can handle and my program can't.
It is written in TIGCC, with:
- TIGCC 0.94 SP4
- GCC 3.3-20021230-tigcc-pre7
It is a _nostub program which returns a value and can throw errors. It only works on AMS 2.04 or higher because it uses mathematical ROM_CALLs not available on lower versions. This also allows it to use F-Line ROM_CALLs without installing an emulator. It runs on all of: TI-89, TI-92+, Voyage 200.
The source code is included, but please do not modify it without my permission. However, if Sebastian and Zeljko want to use this as a TIGCC example, I am willing to relicense it for that purpose.
But enough talking, here's the download link:
members.chello.at/gerhard.kofler/kevin/ti89prog/gosper89.zip
