+ 2
how can we make a program for logarithms
2 Antworten
+ 1
ohhh its really hard 😯😯😯
it require
-advanced binary search.
-that toonfor integer powers.
if u want to make a progeam to calculate logarithms such as
log8 with base 2 type easy questions then its quite simpler.
but u should.not look at this .
just use inbuilt log function
0
https://code.sololearn.com/c83xuOxFS0H4/?ref=app
This is in python, using Taylor expansion of ln(x) around x = 1