Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Rhombicuboctahedron on October 15, 2012, 10:02:16 pm

Title: Expanded numtheory library for Nspire cx
Post by: Rhombicuboctahedron 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
Title: Re: Expanded numtheory library
Post by: TIfanx1999 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) ;)