How to call logarithm function in FEZ Domino because it doen’t have this function in .NETMF

Thanks…

How to call logarithm function in FEZ Domino because it doen’t have this function in .NETMF

Thanks…

Unfortunately the Math class in .NET MF 4.1 is missisng logarithm functions. You need to write your own class and calculate the logarithms in managed code. There are already libraries like this available online:

http://informatix.miloush.net/microframework/Examples.aspx

If speed and accuracy is needed you can take some C implementation and call it thru RLP.

Here’s the math lib I use. It has a Log().

http://netmfx.codeplex.com/SourceControl/changeset/view/11623#112181

Log but no Ln method?

```
Log(x, E);
```

ahh yes that crazy E. Brings back bad memories of calculus. Natural log =ugh.

But this code is very useful for me to do Steinhart-Hart thermistor characterization.

Thanks all guy for these reply… it’s helpful for me very much…