Find Relative Error of A: 2.33

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Error Relative
Click For Summary
SUMMARY

The discussion centers on calculating the relative error of a floating-point operation involving the expression \( A = (317 + 0.3) - (171.499 + 145.501) \). The user initially computed the relative error as \( \frac{7}{5} = 2.33 \), but later corrected it to \( \frac{7}{3} \) after realizing the correct values for \( A \) and \( fl(A) \) are 0.3 and 1, respectively. The correct formula for relative error is confirmed as \( \frac{||A - fl(A)||}{||A||} \), leading to the conclusion that the relative error is indeed 2.33, despite the initial miscalculation.

PREREQUISITES
  • Understanding of floating-point arithmetic
  • Familiarity with relative error calculations
  • Knowledge of mathematical notation and expressions
  • Basic grasp of numerical precision concepts
NEXT STEPS
  • Study the implications of floating-point representation in numerical analysis
  • Learn about error analysis in computational mathematics
  • Explore the IEEE 754 standard for floating-point arithmetic
  • Investigate methods for improving numerical precision in calculations
USEFUL FOR

Students and professionals in mathematics, computer science, and engineering who are involved in numerical computations and require a solid understanding of error analysis and floating-point arithmetic.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hey! :rolleyes: I have also an other question :o
Suppose the base $\beta =10$ ,the precision $t=3$, $-L=U=10$ and $$A=(317+0.3)-(171.499+145.501)$$
I have to find the relative error for $A$.
We don't make rounding.For example,if we have the value $345.924$ it is equal to $0.345924*10^3$ and the corresponding floating number is $0.345*10^3$.
I found that it is equal to
$$\frac{||A-fl(A)||}{||A||}=\frac{7}{5}=2.33$$
Could you tell me if it is right?
 
Physics news on Phys.org
evinda said:
Hey! :rolleyes: I have also an other question :o
Suppose the base $\beta =10$ ,the precision $t=3$, $-L=U=10$ and $$A=(317+0.3)-(171.499+145.501)$$
I have to find the relative error for $A$.
We don't make rounding.For example,if we have the value $345.924$ it is equal to $0.345924*10^3$ and the corresponding floating number is $0.345*10^3$.
I found that it is equal to
$$\frac{||A-fl(A)||}{||A||}=\frac{7}{5}=2.33$$
Could you tell me if it is right?

I found that A=0.3 and fl(A)=1..
 
evinda said:
I found that A=0.3 and fl(A)=1..

Looks good! ;)... but doesn't that mean that:
$$\frac{||A-fl(A)||}{||A||} = \frac{|0.3 - 1|}{|0.3|} = \frac{0.7}{0.3} = 2.33$$

Oh wait! You also got $2.33$... while you shouldn't have. :eek: :rolleyes:
 
I like Serena said:
Looks good! ;)... but doesn't that mean that:
$$\frac{||A-fl(A)||}{||A||} = \frac{|0.3 - 1|}{|0.3|} = \frac{0.7}{0.3} = 2.33$$

Oh wait! You also got $2.33$... while you shouldn't have. :eek: :rolleyes:

I accidentally wrote $\frac{7}{5}$ :o I meant that it is equal to $\frac{7}{3}$..

Thank you very much! (Mmm)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
2
Views
1K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 65 ·
3
Replies
65
Views
8K