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

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 (Y2)

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)

## Comment viewing options

Sorry, no.

Domain of function is x IR and not x=0. If x can only be 0, your equation 2^y*x=1 makes no sense anyhow, because then 2^y*0=1 <=> 0=1.

The command x=x+x is valid for most microcontroller, but the function is completely different then the operation in math. It multiplies the current value of x by two and store then this calculated value into the variable x, deleting the old one firstly. So everytime you call this command it does nothing more then multiply the current value of x by 2, buffer then this value, delete the old one, and store the new buffered one into the variable x. But you can not use this command as an equation in math :)

Domain of function is x IR and not x=0.

That's true.

Where did I say that x=0?

The command x=x+x is valid for most microcontroller, but the function is completely different then the operation in math.

True, that's what I was trying to point out. When Frits used x=x+x he meant it as a programming instruction and that's how I interpreted it, not as an equation.

When I said:

Also, x=x+x is a perfectly valid ecuation, the only solution for x is 0 :)

I was just trying to reply to:

First of all, in math x=x+x makes no sense, because x=x+x <=> x=2x <=> 1=2 (contradiction).

I was trying to point out that x=x+x can be interpreted as an ecuation and if you do, the solution is x=0.

You have even a problem with x=0, because then you have a possible 0 through 0 divison which is not defined in some domains, but anyhow, that's another topic.

So let's simply say, z=2x, to avoid all the problems.

Frits now defies the operation z should be performed y-times and the result of the multiplication should always be 1, which simply means yz=1 <=> 2xy=1.

Can you try to derivate your formula from Frits definition in a common mathematical way that I can see how you came to an exponential equation?

I guess Frits wanted to compute the gravitational force between his dick and Mars but failed to explain it in a proper way :P

> I guess Frits wanted to compute the gravitational force between his dick and Mars but failed to explain it in a proper way :P

You don't want Frits to explain anything regarding his dick!

Frits now defines the operation z should be performed y-times and the result of the multiplication should always be 1, which simply means yz=1 <=> 2xy=1.

That's the problem right there. The operation z (z=2x) performed y-times does not mean multiply z by y. On each step the x changes and the next step will double the new value.

so if y is 3 you get something like: (2*(2*(2*x)))

for y=4 you get (2*(2*(2*(2*x))))

for y=5 you get (2*(2*(2*(2*(2*x)))))

-> since we don't need the parens we can write this as 2*2*2*2*2*x or (2^5)*x

y-times is defined as a simple multiplication according to the propositional logic, otherwise you would define the variable not as y, but let Frits simply do a lookup table with some x/y values. Then we are more clear what he wants to compute. Topic closed for me as long as the definitions and notations are ambiguous which is detrimental to any serious discussion.

Antonio, lovebird! How was Paris? :D

I should have asked you right away!

How close do you think this is to anything Einstein said? Seriously, I am doing gravitational stuff, and it appears to look as if I'm backwards engineering him :)

Paris was ok, Amsterdam was better :D, I'm still recovering from driving 7000km...

I didn't even get the chance to upload my Campus Party pictures

What gravitational stuff are you working on?

Amsterday....green city :-)

7000km, that's a long way.