0

I'm trying to produce a calculator for Logarithms with Base a and Argument b using NumPy.

I have read the documentation for NumPy but it looks so confusing.

How do we calculate Log_a (b) using NumPy?

Thank you

Punreach Rany
  • 2,560
  • 7
  • 23
  • 56
  • 1
    You can use base-change rule, following [this link](https://stackoverflow.com/questions/25169297/numpy-logarithm-with-base-n). – x pie Jul 08 '22 at 07:31

1 Answers1

5

this is basic maths. You can use the approach of log(value)/log(base) For more information, this cheatsheet seems to cover it. https://www.mathcentre.ac.uk/resources/Algebra%20leaflets/mc-logs3-2009-1.pdf

I hope this helps

Pieter Geelen
  • 528
  • 2
  • 11
  • Also here: https://simple.wikipedia.org/wiki/Logarithm#Properties_from_the_definition_of_a_logarithm – James Jul 08 '22 at 07:39