Zeta Function
|
01-19-2016, 09:57 PM
(This post was last modified: 01-19-2016 09:58 PM by Namir.)
Post: #1
|
|||
|
|||
Zeta Function
Here is a program that calculates the Zeta function. The program prompts you for s, the argument for the function, and for the tolerance value (recommend 1e-8). The function places the function's value in the X stack register,
Code: 1 LBL "ZETA" The memory map for the program is: Code: R00 = s The function uses a fast converging series (see Wikipedia) and can give results for small arguments of s such as Zeta(1.1). Namir PS: I am aware that Jean-Marie Baillard has a Zeta function implemented in the HP-41C Software Library. His program is shorter than mine and uses just two registers. However, I tried to calculate Zeta(1.1) using his version and I had to stop after the HP-41CX emulator went on and on and on! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Zeta Function - Namir - 01-19-2016 09:57 PM
RE: Zeta Function - Ángel Martin - 01-24-2016, 09:25 AM
|
User(s) browsing this thread: 1 Guest(s)