Post Reply 
[request] [±] key, always as change of sign operator
10-12-2016, 07:27 PM (This post was last modified: 10-12-2016 11:29 PM by compsystems.)
Post: #3
RE: [request] [±] key, always as change of sign operator
| → cursor position
[±] → [−] sign change unary operator −(#/expr) a number or expression but not to SUM or MINUS binary operator (ruler)
[-] → minus binary operator expr1-expr2
[+] → sum binary operator expr1+expr2


case 1:
5
5|± →−5 // ok, sign change to 5
−5|± → −(−5) -> 5 // ok


case 2:
5+3
5+| 3
5+ 3 → 5+(−|3) → 5+(−3) // ok, sign change to 3 ⇒ 5+neg(3)
5+−±|3 → 5+−(−3) → 5+3

case 3:
5+3
5|+ 3 → -(5)+3 → -5+3 // ok, sign change to 5

case 4:
x → x− not acting as sign change, bad =( right no expressions
must be
x → −x

with minus operator
x|- → x- // ok



case 5:
±(+1) → neg(+1) → neg(1) → −1

case 5.1:
±+1 → neg(+1) → neg(1) → −1

case 6:
±(-1) → neg(-1) → −(-1) → 1
or
±(−1) → neg(neg(1)) → −(−1) → 1

case 6.1:
±-1 → Error Why? → neg(-1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [request] [±] key, always as change of sign operator - compsystems - 10-12-2016 07:27 PM



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