# Simple math problem.. I think.. If I was good at math :)

By fritsl

September 5, 2012

September 5, 2012

I am going nuts over this (possibly) simple equation that I need for a fun Processing project.

I need to have the "calculation" or "equation" for** X**

**Y** is the number of times we go (X=X+X), and the end result should always be **1**

EXAMPLE:

IF Y is 2 then X = **0.25**, because

0.25+0.25=0.5 (Y1)

0.5+0.5=1 (Y**2**)

HOW on earth does one calculate X? (if Y is for example 214.7787009)?

I imagine it'd be something like X=1/SQR Fish Y Something Hotdog?!?

There's SO much respect to the person cracking this! :) (Or I'll delete the post and pretend this never happened, if the answer is really simple :)

Thanks :) (and respect)

## ahh yeah !

... now I understand me shivering while doing the ecuation ... the dreaded limits !!!!

## Well maybe ...

.... Processing is not the right language :-)

On the other hand I think you can probably kill any language or computer with a large enough Y.

My mad math skills stop here ... good luck :-)

## Based on TH heavy lifting,

X = 1 / (2Y)

X = 1 / (2 * 214.7787009)

x = 1 / (429.5574018)

x = 002327978

After all that, I agree with PaulJD. :)

## How about this...

X=(1/Y)/2

with your example of Y=2,

X=(1/2)/2, or X=0.25

So, with Y=214

X=(1/214)/2

X=0.00233645

## I would say ...

Edit/: need pen and paper brb

But me ain't good at math either ...

Ok so what I got is:

1=y(2x)

So if we need to know x the ecuation would look like:

X=1/2y

... I think :-)

## Actually,

if 1=y(2x) then, x = 1/(2y). Slightly different from x = 1/2 * y.

If x = .25 & y = 2 and x = 1/2 * y, then .25 != 1/2 * 2

However, .25 = 1 / (2 * 2).

## yes

Forgot the parenthesis :-)

5