It became a trending topic on social media that a smartphone calculator application and a normal calculator gave different results in the same transaction. So what was the reason for this difference?
Not a day goes by that social media users are wondering about a topic that has a very simple logic behind it. like it’s super interesting Don’t bring it up. This time, we will talk about a video that has been on the agenda for a few days.
A social media user, in a video he published a few days ago, showed how a smartphone’s calculator application works with a normal calculator. gives different results in the same operations showed. Many social media users who saw this video said, Couldn’t understand the difference. Let’s take a closer look at that video first and then at the difference.
Here is the video that is trending on social media:
As you can see in the video above, 50+50×2 is performed on both calculators. The result of this operation according to the smartphone calculator 150. The calculator is for the same operation. 200 shows the result. So what exactly causes the difference?
The reason for the difference is transaction priority and subtotal.
The main reason why the calculation made in the video above gives different results is process priority. No matter how many operations you write side by side while doing mathematical calculations, priority issue You have to take it into consideration.
The operation priority in mathematical operations is as follows:
- Exponentiation operations.
- Operations in parentheses.
- Multiplication and division operations
- Addition and subtraction operations
In addition to all this; If a calculation contains more than one operation with the same priority, located on the left transaction is done. This is one of the points that the above social media user missed.
The calculator performs calculations by subtotaling
If you watch the video carefully, the operation priority is not taken into account during the calculation made with the calculator. The machine performs the operations from each other independent takes as. In this case, 100 is taken as the result of the 50+50 operation. This subtotal is then multiplied by 2 to get the answer of 200. But this result incorrect.
The smartphone’s calculator also adjusts transaction priority. Considering doing calculations. In line with the order we just gave, the result of the 50×2 operation is 100. Then the +50 process is performed and the result is becomes 150.
If you want to find the correct result, you must write the operation correctly
In fact, you can achieve the same results on both devices. The important thing here is that you will calculate How is the process? you wrote. According to this;
- (50+50)x2 The result of the process is 200 on both devices,
- 50+(50×2) The result of the process is 150 on both devices.