Top "Simplify" questions

This tag refers to the process of making something simpler or smaller in order to increase its efficiency, usability, or operation speed.

Strategies for simplifying math expressions

I have a well-formed tree that represents a mathematical expression. For example, given the string: "1+2-3*4/5", this gets parsed into: …

algorithm math simplify
Improving Python Palindrome code

So I recently implemented a code that checks a word to see if it's a palindrome. def isPalindrome(): string = input(…

python palindrome simplify
Simplify replacement of date object with "today" and "yesterday" strings in Java static method

I have following method that I would like to make shorter or faster if nothing else. Please all comments are …

java date replace simplify
Get mathematica to simplify expression with another equation

I have a very complicated mathematica expression that I'd like to simplify by using a new, possibly dimensionless parameter. An …

wolfram-mathematica simplify
PHP Make a simple if-isset-empty function

I'm coding a worksheet app for a printer company. I'm getting flood of forms. For every single input field I …

php function post isset simplify
Simplification / optimization of GPS track

I've got a GPS track produced by gpxlogger(1) (supplied as a client for gpsd). GPS receiver updates its coordinates every 1 …

optimization gps simplify gpx
Java: if statement can be simplified (box contains point)

I have the following statement to check if a Vector2D is within a box, and IntelliJ gives me a …

java if-statement compiler-warnings simplify
Efficient finding primitive roots modulo n using Python?

I'm using the following code for finding primitive roots modulo n in Python: Code: def gcd(a,b): while b != 0: …

python performance python-3.x optimization simplify
Is there a way to shorten this while condition?

while (temp->left->oper == '+' || temp->left->oper == '-' || temp->left->oper == '*…

c++ algorithm if-statement while-loop simplify