So I've made this function
def log(x,base):
result = ln(x)/ln(base)
return result
except it needs the natural log and the natural log is an entire can of worms on its own so is there any other way to find the log of something without using the natural logarithm or any pre-existing methods?
def log(x,base):
result = ln(x)/ln(base)
return result
This function is slightly imprecise which causes issues elsewhere. Example: if an input of (4,2) is given it returns 2.0000003203426897, close but not exactly correct.