From: Eddie R. <er...@bm...> - 2008-06-28 19:22:24
|
On Sat, 2008-06-28 at 21:03 +0200, Albert Graef wrote: > Eddie Rucker wrote: > > I got tired of importing math functions from the C library so I made a > > wrapper for them. > > Well, if you're subscribed to the svn logs, then you might have noticed > that I just checked in my own math.pure. Coincidence. ;-) I still have > to add complex and rational numbers, but the basic (read: real) math > stuff should already be there. Could you maybe review that and let me > know if anything's missing? It just showed up 19 minutes ago on my side of the world. Your's is better than mine ;) 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; I use this definition more often. Oh yea, how about going a head and defining the constant PI? def PI = 3.14159265358979; That is as many digits as I can get Pure to represent. e.r. |