# 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

...is that you are not able to phrase out your problem to us "O Master of LMR". Also, this is not a mathematical problem but a physical one. Yes we'll be using a lot of maths to solve it (atleast till I get a PHD in quantum physics and prove that maths is wrong and insufficient).

What I understand from your last para is this- You want to calculate how much gravity is present at the edge of an object relative to a particular surface you define to have gravity equal to 1. All you know is the distance of the object (but from where? Your reference point or what?). What I'm giving below is a possible solution-

Now, going back to what I've studied in my old physics book (Concepts of Physics Part-1 by Dr.H.C. Verma Chapter 6, page 204), here is what Newton wrote when the apple fell on his head-

Force(F)=[Gravitational Constant(G)*Mass of 1st object(M1)*Mass of 2nd object(M2)]/{[Distance b/w the 2 objects(r)]^2}

Or- F=GM1M2/(r^2).

Now, what it simply means is that each object applies a gravitational force on every other object. Simply said, right now as you read this, Pluto is trying its best to pull you off the ground. However, as the distance r is very large and r^2 is just too large for me to mention is, F tends to 0 (limits yes...).

Now coming to the frame of earth (ie all calculations that will be done only on earth),

g(gravitational acceleration aka gravity you feel)=F/M2 where M1 is mass of earth and M2 is mass of any other object.

which implies, g=G*M1/(r^2) where r^2 is the distance of center of object 2 from center of the earth.

Now, as you said, any object will have gravity equal to 1, so g1 felt by that object is = GM1/(r1^2) where r1 is the distance of that object from the center of the earth. Now, if you know the distance of the object 2, ie the object you want to find out about, g2=GM1/(r2^2). So if g1=1 and g1/g2=(r2^2)/(r1^2)=(r2/r1)^2, g2=(r1/r2)^2.

If you are out of earth frame ie in general space- g2=(m2*r1^2)/(m2*r2^2) if g1=1. It also means that g2

`>=1`

if m2>m1 and r2>r1.

What I believe you are not understanding is that gravity is relative and not just that any object has a particular gravity at one point. For the simplest example, consider your weight. If say, its 60kgs on earth, its not kg as in mass but kgwt. On moon, it'll be 20kgs only (gravity on moon is 1/3 of earth roughly). Your gravity is not just a quantity. Its an attractive force which acts on both bodies in opposite directions. If earth pulls you, you also pull it back with the same force. That's one of the reason's why we say there is no gravity in outer space. That's because there is nothing to pull you back. You need some 3rd body to get an idea of what you are going to define gravity by and then calculate the reltives of the 2 bodies.

I don't know if I've made my point, inform me.

hey vishu, don't say that you can prove that maths is wrong! no!!! maths is a language! and dispoving it is like disproving language, plus, maths is the one who can make it easier to calculate properties and make theories explain and learn via numbers, it's hard to just explain a theory with just words, you need to use another language, and that language is maths!

I am out now LOL

Don't calculate it, use a good scientific calculator :P Good ones have limits, differnetiation and integration in it as well!!

Or if you are a guy who likes it the old school way, I believe I can send you a copy of my class 12th Maths Book (if it still exists btw. Dunno, have to check).

Shame on you, vishu, if you, who has this education, would need a scientific calculator to do such simple limit calculations. My most beloved Indian mathematician Srinivasa Ramanujan would be turning in his grave!!

Just that it can be done that way as well...

lol, x+x=x? like 2+2=2 if x=2? hmm...should be undefined if the formula was that :P

if that was a typo...do you mean y=x+x? cause if it is, then if y=2, 2=1+1, x=1 :P

if you are asking about addition...then to know what x is, with a given y, then just devide the y into 2 and there you have the x :P

i.e:

x+x=y

y=214.7787009

x=?

formulae: y/2=x

sol'n: 214.7787009 / 2=107.3893505

checking: 107.3893505 x 2 or 107.3893505+107.3893505= 214.7787009

x=107.3893505

cause if it is only for addition/multiplication, then it is only limited to what the given X is

so.....you are looking for the formulae for x? hmmm...how about:

y=any number but not = to zero, since having zero calculations gives nothing :P

since y is the times of the number that is going to be calculated......y can be the addition of a number that ends up into 1

ie: A=0.25, Y=4, X=1, X=A x Y

0.25x4=1

or 0.25+0.25+0.25+0.25=1

X=gravity, since as you've said, yer gravity=1 and x=1...so it is fixed

so if you are looking for the calculation of the gravity, then. A is the object(or mass...i think) and Y is the distance

Don't know if you've managed to crack this yet, there is a lot of posts in this thread, and I cannot read them all!

But,

If I understand correctly, you're looking to find out for a value of y, with what size of x you can add x to itself y times to sum to 1?

So something along the lines of: 1 = (2^y)*x

Which if you know y, you can solve for x as: x = 1/(2^y)

So for y=4 for example that gives you x=0.0625

which would work out as

0.0625 + 0.0625 = 0.125

0.125 + 0.125 = 0.25

0.25 + 0.25 = 0.5

0.5 + 0.5 = 1

And for y=214.7787009 x=2.214E-65

But then I might be wrong about what it is you are after!

I AM to late to the party, sadness