Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#1 2005-12-29 23:09:35

Anne54321
Guest

Equation help

Hi



If MARGIN+PICNUM*(MARGIN+WIDTH)+MARGIN+WIDTH=PICW/2



then WIDTH= ?



Thanks

#2 2005-12-30 00:14:56

mathsyperson
Moderator

Offline

Re: Equation help

MARGIN+PICNUM*(MARGIN+WIDTH)+MARGIN+WIDTH=PICW/2

Put the additional MARGIN+WIDTH inside the brackets by factorising:
MARGIN+(PICNUM+1)*(MARGIN+WIDTH)=PICW/2

Put the MARGIN on the right-hand side:
(PICNUM+1)*(MARGIN+WIDTH)=PICW/2-MARGIN

Divide by (PICNUM+1):
MARGIN+WIDTH=(PICW/2-MARGIN)/(PICNUM+1)

Take away MARGIN:
WIDTH=[(PICW/2-MARGIN)/(PICNUM+1)]-MARGIN


Why did the vector cross the road?
It wanted to be normal.

#3 2005-12-30 00:32:23

krassi_holmz
Real Member

Offline

Re: Equation help

Why not
w=(pw/2-m)/(pn+1)-m


IPBLE:  Increasing Performance By Lowering Expectations.

#4 2005-12-30 02:05:41

seerj
Member

Offline

Re: Equation help

MARGIN+PICNUM*(MARGIN+WIDTH)+MARGIN+WIDTH=PICW/2

Let m MARGIN  p PICNUM  x WIDTH   q PICW
Then

m+p*(m+x)+m+x=q/2

px+x=q/2 -m -pm -m

x ( p+1 )=q/2-2m-pm

x= (q-4m-2pm)/2*(p+1)

x= (q-2m*(2+p)) / (2*( p+1 ))


WIDTH=( PICW-2MARGIN*(2+PICNUM))/(2*( PICNUM+1))

Last edited by seerj (2005-12-30 02:06:42)

#5 2005-12-30 08:44:34

Anne54321
Guest

Re: Equation help

I have tried these equations in a computer program and I don't think they're yielding the correct answers.

If you take

MARGIN+PICNUM*(MARGIN+WIDTH)+MARGIN+WIDTH=PICW/2

and then use say MARGIN=10,PICNUM=7,WIDTH=10 and use these numbers to derive PICW

and then use one of the WIDTH solution equations with these numbers inserted they don't balance up ( by my reckoning!) Am I at fault or are these solutions ( which all yield the same answers) missing something ? Is it maybe a question of operator precedence?

#6 2005-12-30 10:01:31

krassi_holmz
Real Member

Offline

Re: Equation help


IPBLE:  Increasing Performance By Lowering Expectations.

#7 2005-12-31 09:07:09

Anne54321
Guest

Re: Equation help

My mistake. It works perfectly. Many thanks for al your help. I've learnt a lot from you all.

#8 2005-12-31 09:10:18

krassi_holmz
Real Member

Offline

Re: Equation help

You'll learn a lot from us.


IPBLE:  Increasing Performance By Lowering Expectations.

Board footer

Powered by FluxBB