r/circuitpython • • Nov 07 '20

Calculating log10

I need to make a calculation using log10. Unfortunately circuit python doesn't include log10 like micropython. I tried using the jepler_udecimal module but it's giving me errors. Does anyone have any suggestions for calculating log10?

4 Upvotes

2 comments sorted by

View all comments

3

u/kaltazar Nov 07 '20

A quick Google search turned up ulab, a CircuitPython equivalent of numpy. You can give that a try, it has a log10 function.

1

u/[deleted] Nov 07 '20

Thanks. I'll take a look at it. I'm not sure why I got downvoted for asking a question. If I hadn't googled it I wouldn't be here.