Approximate function

  • Thread starter dirk_mec1
  • Start date
  • #1
761
13

Main Question or Discussion Point

I want to have the following function approximated (in elementary functions) within a error of 1e-6:

[tex] (x^2+a^2)^{1/4}\ \forall x\ \in [-1,1],\ a\in \mathbb{R} [/tex]


If I use Legendre polynomials I have to use a lot to get convergence (since if I use an estimate of the error the error decreases with n^3/2 with n the number of polynomials). So I suppose that I can use taylor polynomials, right? But taylored around 0 the polynomials tends to have a large error moving away from zero. So my idea is to use several taylor polynomials for certain intervals. Is this an idea or do I have to do something else?
 

Answers and Replies

  • #2
Stephen Tashi
Science Advisor
7,216
1,326
From the point of view of computer programming, the most efficient approximations of commonly encountered functions are approximations by rational functions ( ratios of polynomials). For example, if you look at the famous book by Abramawitz and Stegun, you find that sort of approximation.
 

Related Threads on Approximate function

  • Last Post
Replies
3
Views
525
Replies
2
Views
1K
Replies
2
Views
7K
Replies
3
Views
466
Replies
6
Views
2K
Replies
2
Views
2K
Replies
2
Views
562
Replies
3
Views
2K
Replies
1
Views
466
Replies
1
Views
2K
Top