Calculating Forward and Backwards error of the sine function

Click For Summary
SUMMARY

The discussion focuses on calculating the forward and backward errors of the sine function using its Taylor series expansion. The forward error is computed by approximating sin(x) with the first term of the series, resulting in Fhat = x for values x = 0.1, 0.5, and 1.0. The backward error involves finding xhat such that sin(xhat) equals the approximation Fhat. The solution reveals that the inverse sine function, arcsin(Fhat), is used to determine the backward error, clarifying the relationship between the approximation and the original function.

PREREQUISITES
  • Understanding of Taylor series expansion for functions
  • Familiarity with numerical methods concepts
  • Knowledge of forward and backward error definitions
  • Basic understanding of inverse functions, specifically arcsin
NEXT STEPS
  • Study Taylor series convergence and error analysis
  • Learn about numerical methods for function approximation
  • Explore the properties and applications of inverse trigonometric functions
  • Investigate error analysis techniques in numerical computing
USEFUL FOR

Students in numerical methods courses, mathematicians, and anyone interested in understanding error analysis in function approximations, particularly for trigonometric functions.

harrisiqbal
Messages
14
Reaction score
0
1. The sine function is given by the infinite series
sin(x) = x - x3/3! + x5/5! + x7/7! + ...
a) What are the forward and backward errors if we approximate the sine function
by using only the first term in the series, for x = 0.1, 0.5, 1.0?
b) Using the first two terms.

Homework Equations



Forward Error: Fhat - F
Backward Error:xhat - x

Fhat is the function approximation.
Xhat is the input modification used to calculate the backward error.

This is basically from my Numerical Methods Course.

The Attempt at a Solution



I don't have any problem with the Forward Error analysis.

For part a. I simply evaluated the original sin(x) function with x = .1 and got a number. Then evaluated the approximation function Fhat = x

[ this is the sin function expanded into the Taylor series.. but only using the first term of the series]

and then I used the F. Error equation to get the answer...

The problem is the backward error where I have to satisfy this equation:

F(xhat) = Fhat(x) Basically I want a xhat that when put into the original sin function will output my approximation function.

I can't figure this out.. at all. I mean. the only time sin(x) = x is when x = 0? or am i wrong? What am i missing here? It has to be trivial!

I mean if my function was the exponential function then my xhat would be log(Fhat) so e^xhat outputs the Fhat function.. that's easy.. but how is that applied to the sin(x) = x condition?

Thanks!
 
Physics news on Phys.org
NVM. I feel so retarded.

I figured it out. Obviously it would be the inverse Sin(x) function that would allow me to calculate the backwards error..

SO obvious wow.
 
harrisiqbal said:
NVM. I feel so retarded

You're probably very far from being retarded :smile:
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K