06-12-2014, 09:36 PM

This prgm. is just to illustrate the problem.

EXPORT test1(f,v)

BEGIN

diff(f,v);

END;

As soon as I have f with e^x and execute the test1 I get "Error: Bad argument type". For any other f ex. test1(2*x+5*x^3,x) I get the correct ans. 15*x^2+4*x. For test1(2*e^(2*x),x) I get "Error: Bad argument type" and for test1("2*e^(2*x)","x") I get 2*2*e, the 2*x disappeared. On the command line, in CAS mode, everything seams to work OK and that is why I think there is a BUG in HP Prime.

EXPORT test1(f,v)

BEGIN

diff(f,v);

END;

As soon as I have f with e^x and execute the test1 I get "Error: Bad argument type". For any other f ex. test1(2*x+5*x^3,x) I get the correct ans. 15*x^2+4*x. For test1(2*e^(2*x),x) I get "Error: Bad argument type" and for test1("2*e^(2*x)","x") I get 2*2*e, the 2*x disappeared. On the command line, in CAS mode, everything seams to work OK and that is why I think there is a BUG in HP Prime.