Thread overview
Logarithm function
Apr 22, 2006
kinghajj
Apr 22, 2006
Dan
Apr 23, 2006
BCS
units was: Logarithm function
Apr 23, 2006
BCS
April 22, 2006
I noticed that there is no logarithm function in std.math that allows for any base. Seeing how it would be simple to make one, I did:

[code]
import std.math;

real log(real b, real n)
{
return std.math.log(n)/std.math.log(b);
}
[/code]


April 22, 2006
Did anyone notice the absense of Phi, or unit conversion tables?

: (


April 23, 2006
In article <e2db7d$1ofd$1@digitaldaemon.com>, Dan says...
>
>
>Did anyone notice the absense of Phi, or unit conversion tables?
>
>: (
>
>
I have a mostly working solution at

http://www.webpages.uidaho.edu/~shro8822/unit.d

It works, but lacks polish.


April 23, 2006
In article <e2ej2l$jf7$1@digitaldaemon.com>, BCS says...
>
>In article <e2db7d$1ofd$1@digitaldaemon.com>, Dan says...
>>
>>Did anyone notice the absense of Phi, or unit conversion tables?
>
>I have a mostly working solution at
>
>http://www.webpages.uidaho.edu/~shro8822/unit.d
>
>It works, but lacks polish.
>

If all you need is the conversion then this works.

http://www.webpages.uidaho.edu/~shro8822/unit_t.d