Thread overview |
---|
April 22, 2006 Logarithm function | ||||
---|---|---|---|---|
| ||||
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 Re: Logarithm function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinghajj | Did anyone notice the absense of Phi, or unit conversion tables? : ( |
April 23, 2006 Re: Logarithm function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dan | 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 units was: Logarithm function | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | 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 |
Copyright © 1999-2021 by the D Language Foundation