Post Reply 
user_operator command
11-23-2023, 10:51 PM
Post: #1
user_operator command
Dear Community,

Is there a way to define user operator in HP Prime. There is such a command in XCAS.

The user_operator command lets you define an operator or delete an operator you previously defined. When you use an operator you defined, you have to make sure that you leave spaces around the operator.
Examples
Let R be defined on R × R by x R y = xy + x + y. To input R:
> user_operator("R",(x,y)->x*y+x+y,Binary)
1
(Do not forget to put spaces around R.)
> 5 R 7
4
Find all posts by this user
Quote this message in a reply
Post Reply 




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