Suppose you want to calculate the area of a circle with a radius of 10 cm.If you use pi = 3.14 the area will be calculated as 314 cm^2
if, instead, you use pi = 3.145159, the area will be 314.5159 cm^2
if you use pi, as used by Excel on my computer, you will get 314.159265358979 cm^2.
If you use the most accurate value of pi (currently around 10 trillion digits) you will get a more accurate value of the area.
The difference between the calculated value and the true value is the truncation value.
Chat with our AI personalities
A one-block error in the transmitted ciphertext would result in a one-block error in the reconstructed plaintext for ECB mode encryption, while in CBC mode such an error would affect two blocks.
Percent error is calculated by the measured value and the acceped value. For example, if you measure a piece of paper and decide it is 8.45in long, that is your measured value. The package says it is 8.5in long, so it is the accepted value. The formula for percent error is |measured value - accepted value| divided by accepted value ALL times 100.
To get the relative error is the maximum error over the measurement. So the maximum error is the absolute error divided by 2. So the maximum error is 0.45. The relative error is 0.45 over 45 cm.
One way is for each measurement to be accompanied by an error bound.For example, height = 1.78 metre (± 0.5 cm). The error could also be given in percentage terms. That is more common with calculated values rather than measured ones.
(absolute error)/(full scale deflection) x 100 = % error