A new math function

Suggest changes and improvements to Algodoo.

A new math function

Postby KarateBrot » Sat Oct 24, 2009 9:11 am

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. :thumbup:
Last edited by KarateBrot on Sat Oct 24, 2009 10:28 pm, edited 2 times in total.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: A new math function

Postby Conundrumer » Sat Oct 24, 2009 6:47 pm

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.
User avatar
Conundrumer
 
Posts: 344
Joined: Mon Aug 31, 2009 5:55 pm
Location: NYC

Re: A new math function

Postby KarateBrot » Sat Oct 24, 2009 10:38 pm

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)
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: A new math function

Postby Conundrumer » Mon Oct 26, 2009 2:39 am

KarateBrot wrote:It has something to do with projectile trajectory but it's a secret ;)

Something like this?
Image
User avatar
Conundrumer
 
Posts: 344
Joined: Mon Aug 31, 2009 5:55 pm
Location: NYC

Re: A new math function

Postby Sniperkasa » Mon Oct 26, 2009 11:08 am

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 :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: A new math function

Postby KarateBrot » Mon Oct 26, 2009 2:32 pm

Conundrumer wrote:Something like this?
Image


:clap: :shh:
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: A new math function

Postby Sniperkasa » Mon Oct 26, 2009 2:53 pm

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 :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: A new math function

Postby KarateBrot » Mon Oct 26, 2009 3:39 pm

what do you want to make?
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: A new math function

Postby Sniperkasa » Mon Oct 26, 2009 3:43 pm

No was trying to write out stupid code for Image
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 :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: A new math function

Postby Conundrumer » Mon Oct 26, 2009 4:34 pm

Sniperkasa wrote:No was trying to write out stupid code for Image
But it failed..

I don't see how you can write it without even knowing what the variables are
User avatar
Conundrumer
 
Posts: 344
Joined: Mon Aug 31, 2009 5:55 pm
Location: NYC

Re: A new math function

Postby Sniperkasa » Mon Oct 26, 2009 6:44 pm

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 :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: A new math function

Postby KarateBrot » Tue Oct 27, 2009 4:02 am

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
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 5 guests

cron