### log calculator

My son has written a program to calculate the logarithm using any base. Be careful of splinters! |

For more stuff about logarithms see my posts:

log base 2 and double, double toil and trouble. And of course, don't forget Wikipedia.

Labels: calculator, log, logarithm

## 186 Comments:

Nice work, Adam!

Helpful little app!

this is awesome!

Glad to hear you like it. Cheers!

Thanks for writing this, just used it for my CS homework :)

as did i? uc berkeley anyone?

pbm with big numbers?

The log base 2 of 576460752303423486,5 is NaN

Actually, the problem is with the comma. The program only understands a dot as a decimal mark.

Thanks man, i almost forgot everything... This is really helpful for my work... I tird to use exel but not working....Cheers man...

very helpful, thanks

Glad to hear it.

Thanks dude, Appreciate your help !

Thank you! i luv u

-Vinila

Just used it for my CS Assignment. Thanks!!

great calculator, it was easy to use than my son's TI-84 Plus

Great app, so useful, fair play to you for going to the trouble of posting it.

Thanks a million from Ireland :)

thumps up!

I am impressed. But an improvement could be made in the way it processes the "of" input field. I entered 311.1/440 and it didn't work. I have to make this division myself and enter the result. If you can fix this then it will be the awesomest ;)

Thanks!

this copyright thing in your program is hilarious..

Nice one. its very helpful

Thanks

I can't believe you put a copyright inside the alert window... that has to be a joke

great help..... thanks alot...

thanks a lot man!

you are a life saver!!!

Thanks......this is very helpful!

quite helpful indeed, thanks!

Thanks a bunch.

thanks! this is super useful!

aweome!!thanks a lot....

It didnt work for me. The answer it gave me in NaN

Not sure what the problem there would be. I just tried it and it worked fine. What numbers did you use?

why no fractions??

tried log(7/8)

very nice

Nice! I was looking for a quick and dirty Log Base 2 Calculator! Thanks!

A Great Help....Thanks

Thanks ......very help.......

HANDY AND ACTS AS PORTABLE DEVICE VERY USEFUL AND NICE !!

WOW!!! THANKS SO MUCH! I FORGOT MY CALCULATOR THE DAY BEFORE A HUGE MATH TEST! I WAS FRANTIC...

YOUR PROGRAM DESIGN HELPED ME TONS!!!!!

I'M REALLY INTERESTED ON EXACTLY HOW YOU PROGRAM!

HTML...

GRACIAS POR LA CALCULADORA...

ES MUY UTIL!!!!!

thank you very much

thanx boss it helped me

Thank you..

Thank you so MUCH! I coundnt figure out why the minumum worst case for my binary search algorithms was not coming out correct, thanks again.

Great work !

Really helpful

used this for my math homework, ty

good one, very helpful

Thanks alot for such a nice application..Good Work

Jawad Hussain

Hey, it's still going strong! I just used it - again.

Thanks for a real handy app.

Grant

helped alot, thanks!

Just used it for some telecom throughput calculations, thanks!

Landed on this page through google search.

Glad it helped me in my calculation.

Thanks

How did you program the calculator

nice and very helpfull,,,,

awsome creation,,,,

A very applicatiion..

looks small but works more..

ChiRan

Thanks alot, nice and simple, and a great help!

I like this calculator thank for helping me

Thank for this. I'm using it for my work :)

I use this all the time for homework. I've written a small Java function that does this as well:

public static double log2(double num){

return(Math.log(num)/Math.log(2));

}

Thanks, Anonymous!

Very Helpful and Simple to use. Thanks

there is limit for double

lame, what about log_2 ½ ?

helped me I was about to make my own code but then found this one

Thanks again for saving my time

log base 1 of 1 appears to be NaN...

"log base 1 of 1 appears to be NaN..."

That's how it should be. The answer is indeterminate in mathematics.

thx alot :P

Thx :)

Crazy how many times I've come here and used this! Really is quite useful - much quicker than finding my old scientific calculator which is gathering dust somewhere. Thanks!

Hi ,I use this all the time for homework. I've written a small Java function that does this as well, my blog usagamezone.blogspot.com

Thanks dear

Great work man!!!

Hey , How is log .532= -0.274 ?

The characteristic is -1 and mantissa is 7259

When we combine them we get -1.7259

Pleasse hellllppppppp !

@Pranjal

Your characteristic is negative, but your mantissa is still positive. -1 + 0.726 = -0.274

Thanks

nice post thanks admin see my blog

katrina-k.blogspot.com have latest news of hot katrina kaif

photo, gallery, videos, upcomming film new, biography even everything what you need to know about her character.

Thanks

You saved my life for my motor learning assignment at BSU... Thanks, Bro!

Thanks

Well done!

Thanks a ton Adam, it helped me a lot :)

cute li'l app :)

Not Good, the answer is always NaN

Hello Mr Nick....HELP!! see calcuation below:

10-6 : 229 ;216

10-7 : 20 ;17

N : 7,05

What is the formula to calculate N? I would be most grateful if you could assist :-)

Excellent little calculator. I saved it to my delicious.com account.

Thank you!

Thanks for this!

This is so helpful. Thanks!

good work

sounds good, BUT there are other simple methods

to calculate log base 2 for x

calculate log x / log 2

this is the answer...

Wow it is great calculator. thanks so much.

not bad

Nice!!!

Great!

Thank you!!! This app is wonderful although I still have no idea how to work out the equation myself at least I got through the first 8 using this app. Good job!!

great :)

this is cool. good job.

but make the result appear in another box than in a dialog.

also, strip out spaces from the number fields

Thanks!

thanks, good for checking my work.

Can anyone help me with what this exact number means 1.5E-002? Does it mean 0.15 or 0.015? Thanks

0.015.

Gràcies, molt útil.

hey guys can you help me with log2 of 5^4

Does anyone know how to use this on a calculator?

This helped a lot! Thanks :)

Thanks so much for this!!! It's saving me in Algebra 2 :) <3

very helpful :) thanks

Fantastic tool...thanks :)

Very much helpful....great effort to be acknowledged... :) :) <3

Excellent, it works well for base of non integer values also.

Thanks!

SO HELPFUL! Thanks a lot!

does anyone know a program in c++ for finding a log to any base for any number without using math.h library?????? please helppp meeee.thanx in advance.

it is very simple. if u can use only log.. then base is not issue.. simply take log(number_required_for_solving)/log(base)=answer :) .if can not use log fuction.. then be brave and make log function and use this algo by calling your function.

How does this calculator work? Do you have to take a log base 10 and divide it by log of input number? meaning:

log(input2)/log(input1)= the answer?

input 1 is the one on the top "log base"

input 2 is the one on the bottom "of.."

Is that close to what you did?

beats google calculator, says a professor. thanks for the simple app.

Thanks a lot

+log/2 of 2

:-)

Awesome! Please tell your son thank you for me!

ty man, helpful

Thanks, it was quick search & use ..

Took me a while to figure out the background... calculators... timber? ohh It is a LOG! lol cute ;p

Helpful little tool !! Great Job !!

Why is log base 1 of 1 NaN? Wouldn't it be one?

Pfff i need the log_2 of (1-2x) deal with it

Thank You. Proved useful to me too.. Cheers mate.. Happy coding.. \m/

Thank you!!!

Great app Cheers!

Thank you man, helpful..

Just used to calculate the maximum depth of a weighted union find tree

It's good ! Only thing is it won't accept the fractions like 6/20 ,instead 0.3 has to be entered.It's just suggestion , but still so helpful. Thank You.

thanks alot bro :)

I have used this many times now.

Great work

Thank you! I'm taking a Geology class right now and we're dealing with half life equations. It's been about a decade since I've dealt with this kind of math and I couldn't for the life of me figure out how to even do this on my calculator.

amazing work :)

Awesome! This is a helpful lifesaver! I just used this for my Trigonometry and pre-calculus lesson.

Awesome!

Great job! Awesome! You saved my day! You are a real lifesaver! You saved the world!

You're Awesome!

Thanks man.

kgk

Big thx :) student in Tallinn University of Technology

Showing nephew how numbers are awesome and mysterious, I ran across this online. Made his day full of smiles ( he's five). Thanks!

I have been using this everyday since I found it!

Nice!!!! Now if we could implement fractions into the input.

For those who do not use a calulator...

put this into your calulator if you if your calulator does not have a log base 2 button....

(log(what ever number you want)/log(2))

You can sub in any number you want for the top or the bottom really

Thank you so much

Excellent work, very usefull Nick.

Regards from Mexico.

Psicology Student at Universidad de Guadalajara

Nice Work Adam :) quite helpful

Thank you ! <3

Innovative work.. as we know that if we are doing accounting homework then it is very necessary. there are many online homework help organization are available who worked for helping student assignment problem in any subject.

Excellent calculator, thank you so much!

Thanks! I was asking my club members to bring a friend to each meeting, and wondered how long it would be before the entire population of the planet would be coming. Answer: 32 meetings (= log[2]7000000000). Exponential growth always surprises!

infinty Thanx.....

thank you sir..

thanks a lot sir

very nice

Amazing work :)

Thanks, this was really helpful and easy to use! :)

great work.

i love you :) thanks!!

Awesome tool, great job.

I like you as a person.

THANK YOU!! This was super helpful!

hi

xquee me aparese todoo en ingless

Great job!

Arigatou

Thanks man! I can never remember how to do this. Mary Delia

Very interesting and helpful

You saved me

This was very helpful. Thank you! :)

balls

niceeee

handy app thanks :)

nice app

Thanks, nice app!

thanyou m using ths app 4 ma work.

Thank you!

Thanks for this calculator! Hadn't found anything like it before.

thanks

bery good

Thanks Nick, it helped me

FUCK

i will become an actor and will be well known by many by the age of 30 i swear it

good calculator, cheers nick!! :)

cool

dude,what?

dude,what?

## Post a Comment

<< Home