Post Reply 
is "of" a cas operator?
10-10-2017, 06:02 AM
Post: #1
is "of" a cas operator?
I was doing some experiments to see what XCas functions were implemented (or not) in the HP Prime's CAS implementation. I tried the user_operator command as in:
user_operator("R",(x,y)->(x*y+x+y),Binary) (works in XCas).

I got an error message:
of(['Error: Bad Argument value'])

My question is that even though I'm sure user_operator isn't implemented in the Prime, which part of what I typed was getting the Bad Argument? Is "of" referring to an operator or something?

Thx
-Donald
Find all posts by this user
Quote this message in a reply
10-10-2017, 09:12 AM
Post: #2
RE: is "of" a cas operator?
User function applied to something, like f(x), are internally represented by a tree with rootnode of and 2 arguments f and x : of is a commandname
Find all posts by this user
Quote this message in a reply
10-10-2017, 09:45 AM
Post: #3
RE: is "of" a cas operator?
Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)