Inverse Log in VB.Net

  • Thread starter Thread starter Milton
  • Start date Start date
M

Milton

I am having trouble in finding the propoer way to find the Inverse Log of a
number in VB.Net Express edition. Can anyone tell me how it is done.

Thanks!
 
Milton,
For a number of derived math functions see:

http://msdn2.microsoft.com/en-us/library/w3t84e33.aspx


System.Math.Log returns "the natural (base e) logarithm of a specified
number".

http://msdn2.microsoft.com/library/system.math.log.aspx

While Math.Exp return "e raise to the specified power".

http://msdn2.microsoft.com/library/system.math.exp.aspx


--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|I am having trouble in finding the propoer way to find the Inverse Log of a
| number in VB.Net Express edition. Can anyone tell me how it is done.
|
| Thanks!
|
|
|
 
Thanks for the reply.

Unfortunately, in trying to get the Inv Log of 3 (I should get 1000 as
result), i get 20.09

I'll keep trying to figure it out.

Thanks again.

Milton
 
What base (base 10 or something else)
--
Dennis in Houston


Milton said:
Thanks for the reply.

Unfortunately, in trying to get the Inv Log of 3 (I should get 1000 as
result), i get 20.09

I'll keep trying to figure it out.

Thanks again.

Milton
Jay B. Harlow said:
Milton,
For a number of derived math functions see:

http://msdn2.microsoft.com/en-us/library/w3t84e33.aspx


System.Math.Log returns "the natural (base e) logarithm of a specified
number".

http://msdn2.microsoft.com/library/system.math.log.aspx

While Math.Exp return "e raise to the specified power".

http://msdn2.microsoft.com/library/system.math.exp.aspx


--
Hope this helps
Jay [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|I am having trouble in finding the propoer way to find the Inverse Log of
a
| number in VB.Net Express edition. Can anyone tell me how it is done.
|
| Thanks!
|
|
|
 
| Unfortunately, in trying to get the Inv Log of 3 (I should get 1000 as
| result), i get 20.09
It sounds like you are expect base 10 logs & are using base e logs.

Remember Math.Log & Math.Exp are base e, not base 10. Its been too long to
remember the conversion, based on the "find the Inverse Log of a number"
thread in this newsgroup, the conversion appears to be:

log(x) / log(base)

and

exp(x * log(base))

In addition to Math.Log & Math.Exp, there are VB.Log & VB.Exp.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Thanks for the reply.
|
| Unfortunately, in trying to get the Inv Log of 3 (I should get 1000 as
| result), i get 20.09
|
| I'll keep trying to figure it out.
|
| Thanks again.
|
| Milton
| message | > Milton,
| > For a number of derived math functions see:
| >
| > http://msdn2.microsoft.com/en-us/library/w3t84e33.aspx
| >
| >
| > System.Math.Log returns "the natural (base e) logarithm of a specified
| > number".
| >
| > http://msdn2.microsoft.com/library/system.math.log.aspx
| >
| > While Math.Exp return "e raise to the specified power".
| >
| > http://msdn2.microsoft.com/library/system.math.exp.aspx
| >
| >
| > --
| > Hope this helps
| > Jay [MVP - Outlook]
| > .NET Application Architect, Enthusiast, & Evangelist
| > T.S. Bradley - http://www.tsbradley.net
| >
| >
| > | > |I am having trouble in finding the propoer way to find the Inverse Log
of
| > a
| > | number in VB.Net Express edition. Can anyone tell me how it is done.
| > |
| > | Thanks!
| > |
| > |
| > |
| >
| >
|
|
 
Thanks for the help.

I thought Math.Exp was base e by default and that the base could be changed.
I found figured out that it cannot do other than base e. I needed to use
Math.Pow to use another base. VB.Net reminds me of twenty years ago when I
first learning to use PCs. Trashing directories in DOS, using Debug to
prepare a HD controller for an MFM Hard Drive. The more obstacles I
encountered the more I learned.

Thanks for steering me the right way.

Milton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

inverse color 3
How to print inverse in GDI Text 2
Inverse DFT 2
Inverse Tan function 2
log inverse 1
Calculating a generalized inverse matrix 10
inverse matrices 6
Find angle between 2 points using 2d coordinates. 3

Back
Top