• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to calculate log values of base 2

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How to calculate log values of base2. The Math.log gives the natural logarithm value.
Please help
Thanks
Praveen.
 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Praveen
I you want to find log(2)10, You can use this rule:
log(10)/log(2) (where log() is a natural logarithm)
Additionally you can read mathematical base:
http://www.sosmath.com/algebra/logs/log4/log43/log43.html
With Best Regards,
Jamal Hasanov
www.j-think.com
 
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How much do we have to have to know about log conversion to be able to pass exam...
[ September 16, 2002: Message edited by: Barkat Mardhani ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
or a little more Java-ish:

[ September 16, 2002: Message edited by: Barry Gaunt ]
reply
    Bookmark Topic Watch Topic
  • New Topic