Solved

Mathematics Problem ??

Posted on 1998-10-29
3
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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