-
Example 1.
Let R be defined on
ℝ×ℝ by x R y= x*y+x+y.
To define R:
Input:
user_operator("R",(x,y)->x*y+x+y,Binary)
Output:
Input:
5 R 7
(Do not forget to put spaces around R.)
Output:
- Example 2.
Let S be defined on ℕ by:
for x and y integers, x S y means that x and y are not coprime.
To define S:
Input:
user_operator("S",(x,y)->(gcd(x,y))!=1,Binary)
Output:
Input:
5 S 7
(Do not forget to put spaces around S.)
Output:
Input:
8 S 12
Do not forget to put spaces around S.
Output:
- Example 3.
Let T be defined on ℝ by T x = x2.
To define T:
Input:
user_operator("T",x->x^2,Prefix)
Output:
Input:
T 4
(Do not forget to put a space before T.)
Output:
- Example 4.
Let U be defined on ℝ by x U = 5x.
To define U:
Input:
user_operator("U",x->5*x,Postfix)
Output:
Input:
3 U
(Do not forget to put a space before T.)
Output: