School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,438 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,480 people online right now. Registration is fast and FREE... Join Now!




Logarithm calculation problems

 

Logarithm calculation problems

jcmaster2

7 Jun, 2009 - 09:28 PM
Post #1

D.I.C Head
**

Joined: 27 Apr, 2009
Posts: 139



Thanked: 4 times
My Contributions
Kind of an offshoot of my previous post but this has to do with logarithmic properties

Change of base:

logbX = logaX/logaB

and

logb(X/Y ) = logbX - logbY

and

X/Y = X(1/Y) exponents


here is the formula I have:
logc (b / a) where c = 3, b = 88 , a = 3

how can I write b/a: Is it actually

logc (logcb - logxa) or

logc (X(1/Y)

confused on how to proceed with the b/c- do I simpify that first then convert from base 5 to base 10

Insight would be appreciated...



User is offlineProfile CardPM
+Quote Post


bsaunders

RE: Logarithm Calculation Problems

8 Jun, 2009 - 01:53 PM
Post #2

D.I.C Addict
****

Joined: 18 Jan, 2009
Posts: 554



Thanked: 42 times
My Contributions
So are you trying to divide two logarithms of different bases?
User is offlineProfile CardPM
+Quote Post

jcmaster2

RE: Logarithm Calculation Problems

12 Jun, 2009 - 06:08 AM
Post #3

D.I.C Head
**

Joined: 27 Apr, 2009
Posts: 139



Thanked: 4 times
My Contributions
I fixed the other problems-

These formulas- I have put together seem to work...Since, this place can really support the symbols I will use what I can

Also, very detailed what the formulas are for..some basic clues for helping. 4 formulas different situations

a, b, and c are integer and positive numbers...

1. value = ceiling((abs(b -a)) /c)
2. value = floor ((abs(b-a)) /c ) + 1

3. value= ceiling (abs (logb/logc- loga/logc)) when b no equal 0
other wise value = ceiling(abs(loga/logc))

4. value= floor (abs (logb/logc- loga/logc)) + 1when b no equal 0
other wise value = floor(abs(loga/logc)) + 1


Anyway to simplify these formulas even further or OK...
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 01:06AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month