Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

beaton_john

ARRRRRRRRRRGH - horrible (and possibly unsolvable ) problem

This topic is 5391 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Urk. Don''t you hate those HORRIBLE problems? How would i solve I+(-bav*e^(bv)+a(1-e^(bv))) = 0 : a, I and b are constants (known). (e is of course exponent) This is , like , horrible... i am feeling suicidal already. What is worse, i have to write a program to solve this equation on an 8bit micro!!! yurk! (but let''s get to that barrier later ) Can this be solved? Or am i overlooking something REALLY obvious??

Share this post


Link to post
Share on other sites
Advertisement
Hi,

i think your equation is of the form xe^(x) = cte if v is the variable.
I don''t know if you can solve this one but with a computer you can find a solution with a dichotomi.

have a good day

Plotark

Share this post


Link to post
Share on other sites
That might help:
if f := x -> x*exp(x)
then f^(-1) is the Lambert Omega function:

http://mathworld.wolfram.com/LambertW-Function.html

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You can use taylor''s series:

For every x, e^x = 1 + x + (x^2)/(2!) + (x^3)/(3!)...

Share this post


Link to post
Share on other sites
Are you supposed to be solving it analytically and then using the computer as an oversized calculator or are you supposed to be programming a numerical method to solve it?

Share this post


Link to post
Share on other sites
quote:
Original post by beaton_john
What is worse, i have to write a program to solve this equation on an 8bit micro!!!


HAVE TO write it? Sounds like homework to me. Please review the Forum FAQ

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites
If you don't need exact results you can do something as simple as interval halving aka bisection method. If this doesn't converge fast enough use a linear interpolation method (secant or regula falsi) or even newton's method. These are all pretty simple to progam even in asm.

There is only 1 zero I think so these will work nicely or should anyway =p

[edited by - O_o on March 1, 2004 7:54:25 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by grhodes_at_work
quote:
Original post by beaton_john
What is worse, i have to write a program to solve this equation on an 8bit micro!!!


HAVE TO write it? Sounds like homework to me. Please review the Forum FAQ

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Though to be fair, he''s only asking for the mathematical solution, not the programming solution.

The way I (a complete non-mathematician) would do it is to have the computer guess millions of times per second. Start with some value of v, see if the answer gets closer or farther away from 0 as v rises, and then adjust v until the equation yields 0.001 or possibly something more accurate, and call it the solution. Voila! Hack math!

~CGameProgrammer( );

Screenshots of your games or desktop captures -- Upload up to four 1600x1200 screenshots of your projects, registration optional. View all existing ones in the archives..

Share this post


Link to post
Share on other sites
quote:
Original post by CGameProgrammer
Though to be fair, he''s only asking for the mathematical solution, not the programming solution.


That doesn''t matter. I don''t want people taking advantage of these forums to cheat on any school assignment.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites

This topic is 5391 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!