> But that doesn't work...

if that is of any help, i came up with the same result after solving
it exactly like you did, without reading your result first. that
doesn't make it ricght, of course, but i've made another test and the
odds are one in a million that we're both wrong:

var y:Number = Math.random();
var s:Number = Math.random();
var w:Number = Math.random();
var b:Number = Math.random();
var i:Number = Math.random();
var c:Number = ((y - s) / (w - b - s)) * i;
trace( "test: " + ( Math.round( y * 1000000 ) == Math.round( ( ((c /
i) * (w - b - s)) + s ) * 1000000 ) ) );

// traces "test: true"

hth,
mark



On 3/19/06, Steven Sacks <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
> My algebra seems to be failing me.  I need some help here.
>
> Here's my equation:
> c = ((y - s) / (w - b - s)) * i;
>
> I need to solve for y when I have c.  I wrote it out on paper and I came up
> with:
> y = ((c / i) * (w - b - s)) + s;
>
> But that doesn't work...
>
> My logic:
>
> c = ((y - s) / (w - b - s)) * i;
>
> c / i = ((y - s) / (w - b - s));
>
> (c / i) * (w - b - s) = y - s;
>
> ((c / i) * (w - b - s)) + s = y;
>
> Am I missing something?
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to