Author Topic: Expanded numtheory library for Nspire cx  (Read 3911 times)

0 Members and 1 Guest are viewing this topic.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Expanded numtheory library for Nspire cx
« on: October 15, 2012, 10:02:16 pm »
Hey, during my freetime I started adding on to the numtheory library, and then realized that it might be pretty helpful for other math hobbyists, or anyone that might be taking a course in number theory.
I did not add too many more functions, because I ran out of ideas, but I like the few that there are. They are quite powerful.
I checked ticalc.org, and perused tiplanet, and I don’t think there were these specific functions.

bernoulli(n)- nth beroulli number

harmonicmean(n)- harmonic mean of n
(number of divisors)/(sum of recipricals of divisors)

numdivisors(n)- number of divisors of n

perfect(n)- nth perfect number: nth number such that the sum of its divisors is equal to twice the number: 0<n<16

pix(n)- π(n):number of primes less than or equal to n

pixlist(a,b)- list of π(n) from a to b

sumdivisors(n)- sum of the divisors of n

zeta(n)- sum from k=1 to ∞ of k^-n, where n∈2ℤ

So, if you want it, its here for you
If anyone wants to add a function they think is important, please do
« Last Edit: October 16, 2012, 12:19:18 am by Rhombicuboctahedron »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Expanded numtheory library
« Reply #1 on: October 15, 2012, 11:54:22 pm »
Psst! Might want to edit your first post (and perhaps title) and mention what platform this is for. (Even though the attachment is a giveaway) ;)
« Last Edit: October 15, 2012, 11:55:08 pm by Art_of_camelot »