Tool to remove unnecessary parentheses in mathematical expressions. Some parentheses or braces or brackets are redundant according to priority of math operators.

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

This page is using the new English version of dCode, please make comments !

Tool to remove unnecessary parentheses in mathematical expressions. Some parentheses or braces or brackets are redundant according to priority of math operators.

Answers to Questions

How and when to remove parentheses?

Enter a mathematical expression including parentheses and click on the button. If unnecessary or redundant parentheses are detected then the expression can be simplified (visually).

((a*b)+(c*d)) can be rewritten without parenthesis in a*b+c*d

(a+b)*(c+d) can not be simplified

The rules to remove the parentheses are simple and depend on the precedence of mathematical operators. Exponentiations precedence over multiplication and division have themselves priority over addition and subtraction.

How to simplify a negative parenthesis?

It is possible to remove some parentheses preceeded by a - sign. Indeed, the subtraction operation equals the addition of the opposite.

'a-(b+c) is equivalent to a+(-b-c) or a-b-c

Ask a new question

Source code

dCode retains ownership of the source code of the script Remove Parentheses. Except explicit open source licence (free / freeware), any algorithm, applet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any snippet or function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in PHP (or Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Remove Parentheses script for offline use, for you, your company or association, see you on contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK