cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

minimax remez function

DaveWooff
5-Regular Member

minimax remez function

Based on this:

http://www.math.unipd.it/~alvise/CS_2008/APPROSSIMAZIONE_2009/MFILES/Remez.pdf

Please find attached remez.mcd and remeztest (simple test harness).

Not exhaustively tested but seems to work for me although I do get some errors with high order polynomial approximation.

Parameters:

F: function to be approximated

a: low limit of x range over which F is to be approximated

b: high limit ditto

n: order of polynomial

convergence limit: e.g. if 0.01 will stop iterating when error in approximation is within 1% of error in previous iteration

returns approximating polynomial coefficients c0, c1, ..., cn, maximum error in approximation

Any comments, improvements welcome.

Dave W.

6 REPLIES 6

DaveWooff
5-Regular Member
(To:ValeryOchkov)

That would have saved me a lot of sweat.

David Wooff wrote:

That would have saved me a lot of sweat.

What that?

DaveWooff
5-Regular Member
(To:ValeryOchkov)

Your link.

David Wooff wrote:

Your link.

Sori, Ai nou inglish not khorosho!

DaveWooff
5-Regular Member
(To:ValeryOchkov)

Why oh why does every village I visit have one?

Top Tags