High precision evaluation of orthogonal polynomials

1 vue (au cours des 30 derniers jours)
Mehdi
Mehdi le 3 Sep 2014
Modifié(e) : Mehdi le 3 Sep 2014
Hi everybody,
I need to evaluate some orthogonal polynomials with high precision. For example for Legendre polynomials this is what I do:
% psi=@(n,x)(feval(symengine,'orthpoly::legendre',n,x));
But the problem is that the function does not distinguish between inputs which are different in digit numbers beyond double precision. For example psi(1,0.333333333333333324234) and psi(1,0.33333333333333345) have the same answer, while in my calculations I need different answers which are more precise.
Any suggestions?!
Thanks very much in advance!
  1 commentaire
Mehdi
Mehdi le 3 Sep 2014
Modifié(e) : Mehdi le 3 Sep 2014
I think the problem is that at first, an input is converted to a fraction which is not different for inputs which are different beyond double precision digits...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by