A new math function
12 posts • Page 1 of 1
A new math function
There are a lot of math functions in Algodoo but there's one I miss very much: the logarithm function
I tried to make it myself and it works but it's not exactly the logarithm (in most cases about 99.8% or 99.9% accuracy). It's just an approximation.
It's important for some advanced calcuations so it would be really cool to see a better function than mine implemented.
I tried to make it myself and it works but it's not exactly the logarithm (in most cases about 99.8% or 99.9% accuracy). It's just an approximation.
It's important for some advanced calcuations so it would be really cool to see a better function than mine implemented.
Last edited by KarateBrot on Sat Oct 24, 2009 10:28 pm, edited 2 times in total.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: A new math function
Support. I've planned to use logarithm functions to cancel out exponentially increasing stuff, and I'm sure there are many other uses for logarithms.
-
Conundrumer - Posts: 344
- Joined: Mon Aug 31, 2009 5:55 pm
- Location: NYC
Re: A new math function
I plan to use them, too. It has something to do with projectile trajectory but it's a secret If someone knows functions for the projectile trajectory very well he knows what I'm trying to do with the natural logarithm, I guess.
Until then I have to use my approximation (which is quite accurate but not perfectly accurate)
Until then I have to use my approximation (which is quite accurate but not perfectly accurate)
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: A new math function
KarateBrot wrote:It has something to do with projectile trajectory but it's a secret
Something like this?
-
Conundrumer - Posts: 344
- Joined: Mon Aug 31, 2009 5:55 pm
- Location: NYC
Re: A new math function
Im guessin its something like that conun.. but he wont tell xD
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem
No really just PM me if you have a problem
-
Sniperkasa - Posts: 493
- Joined: Tue Sep 01, 2009 5:34 pm
- Location: The bottom of a lake.
Re: A new math function
Conundrumer wrote:Something like this?
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: A new math function
Edit : Noticed error in script... argh.. :/ I'll try to make it tomoro / today..
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem
No really just PM me if you have a problem
-
Sniperkasa - Posts: 493
- Joined: Tue Sep 01, 2009 5:34 pm
- Location: The bottom of a lake.
Re: A new math function
what do you want to make?
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: A new math function
No was trying to write out stupid code for
But it failed..
But it failed..
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem
No really just PM me if you have a problem
-
Sniperkasa - Posts: 493
- Joined: Tue Sep 01, 2009 5:34 pm
- Location: The bottom of a lake.
Re: A new math function
Sniperkasa wrote:No was trying to write out stupid code for
But it failed..
I don't see how you can write it without even knowing what the variables are
-
Conundrumer - Posts: 344
- Joined: Mon Aug 31, 2009 5:55 pm
- Location: NYC
Re: A new math function
I know what the variables are.. but not sure what that mvo means.. mass times velocity.. but what then 0.o
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem
No really just PM me if you have a problem
-
Sniperkasa - Posts: 493
- Joined: Tue Sep 01, 2009 5:34 pm
- Location: The bottom of a lake.
Re: A new math function
Sniperkasa wrote:I know what the variables are.. but not sure what that mvo means.. mass times velocity.. but what then 0.o
y: height
m: mass
v₀ : initial velocity
sin(θ): sine of the initial angle
k: constant (tells how strong air friction is)
e: euler's number
t: time
g: acceleration of fall
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
12 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests