HP Forums

Full Version: Different forms of operation, RPN, INFIX; POSTFIX, PREFIX, EXOFIX, etc.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, you agree with the following definitions.

INFIX, operator in the middle.
PREFIX, operator at the beginning.
POSTFIX, operator at the end.
EXOFIX, operator on the outside.


PHP Code:
a union b (union as infix operator), a ∪ b (∪ as symbolic infix operator), ∪ a,(∪ as prefix operator),  (a,b) (∪ as prefix functional operator),  (ab)∪ (∪ as postfix functional operator), ab ∪ (∪ as postfix operator)

a intersection b (intersection as infix operator), a ∩ b (∩ as symbolic infix operator), (a,b) (∩ as prefix functional operator),  (ab)∩ (∩ as postfix functional operator)

not a (not as prefix operator), ¬a (¬ as symbolic prefix operator), ¬(a) (¬ as prefix functional operator), a¬ (¬ as postfix operator)

ceil(a) (ceil as functional operator⌈a⌉ (ceil as exofix operator)

floor(a) (floor as functional operator), ⌊a⌋ as (floor as exofix operator)

abs(a) (floor as functional operator), |a| (abs as exofix operator)

root(a) (root as functional operator(a) (√ as symbolic functional operator

integral() (integral as functional operator), () (∫ as symbolic functional operator

sum() (sum  as functional operator), Σ() (Σ as symbolic functional operator

product() (product as functional operator), Π() (Π as symbolic functional operator

<= (<= as digraph infix operator), a ≤ b (≤ as real infix operator
>= (>= as digraph infix operator), a ≥ b (≥ as real infix operator
!= (!= as  digraph infix operator), a ≠ b (≠ as real infix operator

factorial(a) (functional operator), a! (postfix operator
a^(^ explicit infix operatorto a³ (implicit infix operator
a^(^ explicit infix operatorto a² (implicit infix operator

Example
 
(3+4) * (5-6returns -// infix operation (standard notation)  
*(+(3,4),-(5,6)) // symbolic functional prefix operation
Product(Sum(3,4),Subtraction(5,6)) // functional prefix operation
Product Sum 3,4Subtraction 5,// prefix operation

34 Sum56 SubtractionProduct // postfix operation
( (3,4)Sum, (5,6)Subtraction )Product // functional postfix operation
( (34)+ (56)- )* // symbolic functional postfix operation
3,+, 5- * // symbolic postfix operation 
3 4 5 6 - * // RPN 
Reference URL's