Sign in to follow this  
Followers 0
Unc3nZureD

Log() with custom Base number

2 posts in this topic

Hi guys :)

It's just a shortie, which can solve logarithm on any base, not only E-based or 10-based (like most ofthe calculators).

symbol.png

In my code, $Number (1st argument) indicates n and the 2nd argument ($Base) indicates b.

And here is the source :D

Func ExpertLog($Number, $Base)
    return Log($Number) / Log($Base)
EndFunc

That's all :D

1 person likes this

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Thank You, I was looking for this :)

Edited by TheSeeker

"Let me win[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;], [/color]but if I cannot[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;] win, let me be brave in the attempt"[/color]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0