The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP Prime: Vector field CURL(). How-to...
Message #1 Posted by Chris Tvergard on 26 Sept 2013, 2:03 p.m.

In the manual p. 327 is an example of the CURL function in CAS mode.

This is the error I get when I try to reproduce:

"curl([[2*x*y,x*z,y*z],[x,y,z]])

Error:"curl([[2*x*y,x*z,y*z],[x,y,z]])

Error: Bad Argument Type" Bad Argument Type"

What am I doing wrong?

Thanks in advance,

Chris

      
Re: HP Prime: Vector field CURL(). How-to...
Message #2 Posted by Han on 26 Sept 2013, 2:08 p.m.,
in response to message #1 by Chris Tvergard

Is that a typo w/ respect to the open double quote without a corresponding ending one?

1. curl is presumably a symbolic calculation, so you should be in CAS mode

2. If you are using RPN mode, that would also affect the behavior.

            
Re: HP Prime: Vector field CURL(). How-to...
Message #3 Posted by Chris Tvergard on 26 Sept 2013, 5:29 p.m.,
in response to message #2 by Han

Han,

Thanks for your response. I finally figured it out. (See below.)

Chris

      
Re: HP Prime: Vector field CURL(). How-to...
Message #4 Posted by fhub on 26 Sept 2013, 2:16 p.m.,
in response to message #1 by Chris Tvergard

Quote:
This is the error I get when I try to reproduce:

"curl([[2*x*y,x*z,y*z],[x,y,z]])


One pair of brackets too much, it should be:
curl([2*x*y,x*z,y*z],[x,y,z])

And it only works in CAS mode.

Franz

            
Re: HP Prime: Vector field CURL(). How-to...
Message #5 Posted by Chris Tvergard on 26 Sept 2013, 3:55 p.m.,
in response to message #4 by fhub

Franz,

You were right with the double parentheses. That solved it.

I entered the function as curl([],[]) first and then filled out the two single line matrices individually.

Thanks for your help. I can now move on to the Laplace transform after half a day lost.

Chris


[ Return to Index | Top of Index ]

Go back to the main exhibit hall