Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
delorme
23
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 23rd May 2003 22:37
Hello

In DBPro what is the function who make log?

Sorry for my english,
Shadow
23
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 23rd May 2003 22:42
dunno, but it's spelt logarithm
kevil
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 23rd May 2003 23:26
Here's one I came up with it. Check the source code.

Kevil

delorme
23
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 24th May 2003 19:21
Thank's for your code

Sorry for my english,
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th May 2003 20:27
As I said before, check out my Maths plug-in...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Cras
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location: United Kingdom
Posted: 24th May 2003 21:12
ARGH LOGARITMS!!! i have a Pure Maths 2 exam very soon and im still yet to see the point of them

uk.geocities.com/maniacimagine check it out. ill soon be formally opening it.
hexGEAR
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 24th May 2003 21:18
damn, i've been using logs all my life and 'tis today i've seen it's origin and raw calculation for the very first time! thanks kevil!

everyday of life is a new chapter that has already been fortold but is up to the soul to capture.
kevil
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 24th May 2003 21:45 Edited at: 24th May 2003 21:46
To be honest, I didn't know myself long either. It is that we learned the Newton-Raphson method with math this year. With that we had to calculate the square root. Now I changed it a bit so it could calculate the log function. I'm not sure though if this is THE way.

A little info:
The Newton-Raphson method is used to calculate the zero value of a function. It calculates the steepness of a function and produces a linear function from that and calculates where this line equals 0. If you keep doing this, you will come closer to the result you want. That means that a recursive function is made with which you can calculate the value. This recursive function looks like this:
Un+1 = Un - f(Un) / f'(Un)
For this you'll need a starting value to work with. This can mostly be like any number, but it's best to choose a number that is closest to the answer. For the log function, I didn't know what that starting value should be, so it's probably not calculated in the normal way.
Now if you want to calculate the log, you need a function which will be zero if x equals the answer. So for 2 log 8, you'll need:
f(x)=2^x-8
This will make the following recursive function:
Un+1 = Un - (2^Un-8) / (2^Un*ln(2))

This would mean you will also need a ln function. That's why I made both.

Maybe this information could be useful to someone, however I don't really think many people are going to use this.

Kevil

Shadow
23
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 25th May 2003 21:12
Quote: "ARGH LOGARITMS!!! i have a Pure Maths 2 exam very soon and im still yet to see the point of them "


Depends what you want to do as a career. Most people in the world, obviously don't need them.
kevil
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 25th May 2003 22:28
Well, they're only used in calculations with exponentional functions. I use them with math and with physics.

Kevil

Cras
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location: United Kingdom
Posted: 26th May 2003 03:45
dont get me wrong, that wasnt intended to be cynical... what i meant was, i dont know what they're actually doing... at first, when it was:

log(little 10)100 or similar, i knew it was something about powers etc... then the little number disappeared, and now i dont know what its actually doing... dont bother explaining, im sure ill learn when necessary, preferably before my exam which is drawing extremely near (1 week or so)... but hey... as long as i know how to... umm... hmm

uk.geocities.com/maniacimagine check it out. ill soon be formally opening it.

Login to post a reply

Server time is: 2026-07-11 09:31:05
Your offset time is: 2026-07-11 09:31:05