This simulation will help you learn how to simplify linear expressions.

Consider an example:

2(4x+3x)+3x

8x+6x+3x

14x+3x

17x

Note that

You can use only one letter for variable notation.

To designate multiplication, you can use either asterisk "∙" or, when multiplying by a variable, use concatenate operands (2∙x=2x ).

You can use parentheses whenever you need.

Note that "/" is not a fraction separator, it is only a divide sign, and its priority is equal to the priority of multiplication operator. 1/5∙3=(1/5)∙3, not (1/(5∙3)

You can either use fractions in the form of "integral_part nominator/denominator" (e.g. 2 3/5), or conventional decimal fractions (e.g. 3.14).

If your quotients are integers, the answer will be given in the form of a fraction (see above), otherwise, it will come in the form of a decimal fraction.

In case the decimal fractions are used, the value of maximal deviation of the user's given root from the exact root is 1e-2.

NB: Blank space is treated as a plus; consequently, you may not place spaces where they are not needed (e.g. before or after the character that is used to designate a variable). If an error message appears, make sure that the equation contains no extra spaces.