24 game/Solve: Difference between revisions

Content added Content deleted
(→‎{{header|J}}: add example with brackets)
(clarify a descriptive sentence.)
Line 150: Line 150:
(1+2)*1+7
(1+2)*1+7


The answer will be either a suitable J sentence or blank if none can be found. This means that, for example, the sentence <code>8*7-4*1</code> is equivalent to the sentence <code>8*(7-(4*1))</code>. [Many infix languages use operator precedence to make polynomials easier to express without parenthesis, but J has other mechanisms for expressing polynomials and minimal operator precedence makes the language more regular.]
The answer will be either a suitable J sentence or blank if none can be found. "J sentence" means that, for example, the sentence <code>8*7-4*1</code> is equivalent to the sentence <code>8*(7-(4*1))</code>. [Many infix languages use operator precedence to make polynomials easier to express without parenthesis, but J has other mechanisms for expressing polynomials and minimal operator precedence makes the language more regular.]


=={{header|Mathematica}}==
=={{header|Mathematica}}==