Relative Error of Elementary Functions: Examining f(x) = x2 & ex

Click For Summary
SUMMARY

The discussion focuses on the relative error of elementary functions, specifically examining f(x) = x² and f(x) = e^x. It establishes that for a function f(x), the relationship (f(x)) = f(x)(1 + CE) holds under certain conditions, where C is a positive constant. The forum emphasizes the importance of understanding relative error and encourages participants to define it before attempting to solve related problems. The conversation also highlights that functions of the form f(x) = ax^b are necessary for this relationship to be valid.

PREREQUISITES
  • Understanding of relative error in numerical analysis
  • Familiarity with elementary functions such as sine, logarithm, and exponentiation
  • Basic knowledge of floating-point arithmetic and rounding errors
  • Ability to perform algebraic manipulations and calculus
NEXT STEPS
  • Study the definition and properties of relative error in numerical computations
  • Explore the behavior of elementary functions under floating-point operations
  • Investigate the implications of rounding errors in mathematical modeling
  • Learn about the derivation of Taylor series for approximating functions
USEFUL FOR

Mathematicians, computer scientists, and engineers who are involved in numerical analysis, particularly those interested in the accuracy of computations involving elementary functions.

yenbibi
Messages
2
Reaction score
0
With exact rounding, we know that each elementary operation has a relative
error which is bounded in terms of the rounding unit n; e.g., for two foating point
numbers x and y, (x + y) = (x + y)(1 + E); |E| <= n. But does a similar result hold
for elementary functions such as sin, ln and exponentiation? In other words is it true
that for a function f(x), (f(x)) = f(x)(1+CE), for some (hopefully small) positive constant C?
Note: E=epsilon
a) Consider f(x) = x2. Compute the a formula for the relative error in f(x)
assuming the relative error in x is e and ignoring error in evaluating f(x). Does
(f(x)) = f(x)(1 + CE) hold for this example?
b) Repeat question a but now for f(x) = ex.
c) Show that if (f(x)) = f(x)(1 + CE) holds, then f(x) must have the form
f(x) = axb with constants a and b.
 
Physics news on Phys.org
You have posted several of what are obviously homework problems in a forum that specifically says "this forum is not for homework". In any case, we are not going to do the problems for you. What have you tried and where are you stuck?

You might start by stating the definition of "relative error". After you know what that means, the rest of the problem should be just arithmetic.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
Replies
8
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K