ARRRRRRRRRRGH - horrible (and possibly unsolvable ) problem

Started by
26 comments, last by beaton_john 20 years, 1 month ago
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??
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
the furthest i got was

ln(-I/A - 1) = BV + ln(-BV-1)

urk.
That might help:
if f := x -> x*exp(x)
then f^(-1) is the Lambert Omega function:

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

Act of War - EugenSystems/Atari
You can use taylor''s series:

For every x, e^x = 1 + x + (x^2)/(2!) + (x^3)/(3!)...
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?
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
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.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
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]
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..
~CGameProgrammer( );Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
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.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net

This topic is closed to new replies.

Advertisement