Re: [pure-lang-users] math.pure
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-06-28 20:13:24
|
Eddie Rucker wrote: > However, instead of log x being the log base 10 how about > > log b::int x::double | log b::bigint x::double = ln x / ln b; Seems useful. Well, log is customary for base 10 logarithms, at least on this side of the Atlantic. I could rename that function to log10, though (that's also how it's called in Python). Or we could use log (x,b) or log (b,x) for a logarithm with given base (but that would take away the possibility to curry, which is pretty useful with your definition). Opinions? Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |