Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

wizards with all your mental esoterica. I'm a lowly peasant who never took more than high-school precal. Here is my question:

I've got an equation:

margY = (imageHeight + (2*margY))*mYRatio;

margY is on both sides of this equation. I'd like to get it on one side by itself. In a sense, taking the recursivity out of the definition of margY. Is this a mathematical chimera? Sounds like a mystical achievement. But my lowly mind sniffs a vague intuition that there is some algabraic manipulation for it, just too lowly to figure it out.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You have

$$ \text{margY} = \text{imageHeight} \text{*} \text{mYRatio} + 2\text{margY}\text{*}\text{mYRatio}, $$ so

$$ \text{margY} - 2\text{margY}\text{*}\text{mYRatio}= \text{imageHeight} \text{*} \text{mYRatio} , $$ so $$ \text{margY}(1 - 2\text{*}\text{mYRatio})= \text{imageHeight} \text{*} \text{mYRatio} , $$ and thus $$ \text{margY}= \frac{\text{imageHeight} \text{*} \text{mYRatio}}{1 - 2\text{*}\text{mYRatio}} , $$ provided that mYRatio is not $1/2$.

share|improve this answer
    
wow,very straight forward. –  Colin Brogan Apr 29 '12 at 17:44
    
I guess I could have done that with basic algebra knowledge, didn't think it all the way through. –  Colin Brogan Apr 29 '12 at 18:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.