[xCAS request] functions in infix notation,

09282016, 07:41 PM
(This post was last modified: 09282016 07:45 PM by compsystems.)
Post: #1




[xCAS request] functions in infix notation,
Hello Haskell is a functional language and has the option to define functions in prefix or infix notation, while that the hpprime only prefix notation
PREFIX means the function name is before of the arguments Example in prefix notation: FUCTIONAME (arg1, arg2, argN) := expresion ADDITION (X, Y) := X + Y // definition ADDITION (3, 4) returns 7 Infix means that the function name is between the arguments Example: arg1 FUCTIONAME arg2 X ADDITION Y: = X + Y To denote that a function is in infix, HASKELL LANGUAGE use quotes inclined to the left `` X `ADDITION` Y: = X + Y // definition 3 ADDITION 4 returns 7 This and similar to MODULO function 23 MOD 5 returns 3 For n arguments groups in parenthesis (Arg1, arg2, argn) `FUCTIONAME` (arg1, arg2, argn) := ... I think that the HP48 / 50 in SYSPRL can create this kind of infix functions, can incorporate it into xcas? the purpose is to create and writing functions nearest to math textbooks 

« Next Oldest  Next Newest »

Messages In This Thread 
[xCAS request] functions in infix notation,  compsystems  09282016 07:41 PM
RE: [xCAS request] functions in infix notation,  parisse  09292016, 05:56 AM
RE: [xCAS request] functions in infix notation,  compsystems  09292016, 11:30 AM
RE: [xCAS request] functions in infix notation,  parisse  09292016, 06:35 PM

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