?
Solved

Mathematics Problem ??

Posted on 1998-10-29
3
Medium Priority
?
205 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 200 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

762 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