Solved

Mathematics Problem ??

Posted on 1998-10-29
3
191 Views
Last Modified: 2010-04-30
How can I do this mathematics problem using VB ??

Let say 2 power of 3 is 8.
Q1) 2* = 8     ## where * equal 3

And now using the Q1, I want to find the * by given the other two values(2,8),
How to do this using VB??
0
Comment
Question by:abc1234
  • 3
3 Comments
 
LVL 18

Accepted Solution

by:
deighton earned 100 total points
ID: 1442260
Private Function Star(x As Double, y As Double) As Double

    Star = Log(y) / Log(x)

End Function


Private Sub Command1_Click()
   
    MsgBox Star(2, 8)
   

End Sub

0
 
LVL 18

Expert Comment

by:deighton
ID: 1442261
Oh yes another thing. How does this work?

 y
X  = Z

taking logs of both sides (any base 10 or natural it doesn't matter which, as long as U use the same for each)

y * log(X) = Log(Z)

y = Log(Z)/Log(X)

QED
0
 
LVL 18

Expert Comment

by:deighton
ID: 1442262
U posted this twice. If U want U'r points back send a question to Linda in the Customer Services dept.  She'll delete the duplicate and refund your points, if you ask nicely.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now