limited website.

Assuming that we have an online coding website which restricts the number of variables in your code to 2 and you can do only 1 math calculation per line.(+,*,/,-, x \sqrt{x} ,.......).

If we need to make a program like x+y=? we can use 2 variables only to make the code .

x = x + y, (Where x is your final answer and x,y are the variables).

A problem like xy + 2x=? will be .

y = x × \times y.

x = 2 × \times x.

x = x + y, ( x is your answer).

Which of following equations can't be done with this website ?

3xy+2x^{3} All of them can be done. x y 2 + y y 2 \frac{xy^{2} + y}{y^{2}} 5 x 2 + 3 x y x + y \frac{5x^{2}+3xy}{x+y} 5 x 2 + 5 x y x + y \frac{5x^{2}+5xy}{x+y}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Mohamed Yahia
Sep 15, 2018

The first one x y 2 + y y 2 \frac{xy^{2}+y}{y^{2}} :

It can also be written as y ( x y + 1 ) y 2 \frac{y(xy+1)}{y^{2}} so :

x = x y x = x*y

x = x + 1 x = x+1

x = x y x = x*y

y = y y y = y*y

x = x / y x = x/y , (There is another solution try to find it.)

The second one 3 x y + 2 x 3 3xy+2x^{3} :

Tt can also be written as x ( 3 y + 2 x 2 ) x(3y+2x^{2}) so :

y = y 3 y = y*3

x = x x x = x*x

x = x 2 x = x*2

y = x + y y = x+y

x = x / 2 x = x/2

x = x x = \sqrt{x}

x = x y x = x*y

The third one 5 x 2 + 5 x y x + y \frac{5x^{2}+5xy}{x+y} :

It can also be written as 5 x ( x + y ) x + y \frac{5x(x+y)}{x+y} = 5 x 5x so :

x = x 5 x = x*5

The fourth one 5 x 2 + 3 x y x + y \frac{5x^{2}+3xy}{x+y} :

Here comes the trick 5 x 2 + 3 x y x + y \frac{5x^{2}+3xy}{x+y} = 2 x 2 + 3 x 2 + 3 x y x + y \frac{2x^{2}+3x^{2}+3xy}{x+y} = 2 x 2 + 3 x ( x + y ) x + y \frac{2x^2+3x(x+y)}{x+y} = 2 x 2 x + y + 3 x \frac{2x^{2}}{x+y}+3x :

y = x + y y = x+y

x = x x x = x*x

x = x 2 x = x*2

y = x / y y = x/y

x = x / 2 x = x/2

x = x x = \sqrt{x}

x = x 3 x = x*3

y = y + x y = y+x

thanks for reading ;)

Last one was tricky!

Pratyush Ranjan - 2 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...