09-28-2014, 04:01 PM

Hi,

I was working on finding a reasonable expression for a Pade approximation to sin(x). The HP Prime has pade(f(x),x,n,p) which outputs a rational function approximation to f(x) of order less than or equal to n+1 with numerator of degree <p.

It works OK, for example pade(sin(x),x,5,4) returns (-7*x^3+60*x)/(3*x^2+60) as expected.

But for some values of the parameters n, p, the Prime gives a warning before returning the answer. For example pade(sin(x),x,5,3) shows Solution may be wrong since a and b are not prime together.

Does anyone know what is happening? What are a and b?

Thanks

A.

I was working on finding a reasonable expression for a Pade approximation to sin(x). The HP Prime has pade(f(x),x,n,p) which outputs a rational function approximation to f(x) of order less than or equal to n+1 with numerator of degree <p.

It works OK, for example pade(sin(x),x,5,4) returns (-7*x^3+60*x)/(3*x^2+60) as expected.

But for some values of the parameters n, p, the Prime gives a warning before returning the answer. For example pade(sin(x),x,5,3) shows Solution may be wrong since a and b are not prime together.

Does anyone know what is happening? What are a and b?

Thanks

A.