The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
New RPL: New Commands
12-28-2016, 06:06 PM (This post was last modified: 12-28-2016 08:47 PM by compsystems.)
Post: #1
New RPL: New Commands
Hello, the frequent use of commands in USER-RPL within my programs. I always needed the following cmds.

Please for USER-RPL programmers can tell me if they are important or not, if they were, they should be incorporated in NEW RPL?

Thank

1: WAIT CMD detecting [ON] KEY without exit the code
PHP Code:
    waitForKey
    «
"!NO CODE
!RPL
::
    CK0
    WaitForKey
    CodePl>%rc.p
;
64 CHR ASM 'waitForKey' STO
  » 

2: Operators point .+ .- ./ .* .^, which operate on each element of a vector or matrix, With the purpose of making operations outside the linear algebra

PHP Code:
@.+
[[ 
1 2 3 ]]
« AXL 1 « 5 ADD » DOLIST AXL » EVAL -> [[6 7 8]]

NEW-
RPL: [[ 1 2 3 ]] .+ -> [[6 7 8]]

@.-
1 2 3 ]
« AXL 1 « 5 » DOLIST AXL » EVAL  -> [---2]

NEW-
RPL: [ 1 2 3 .- -> [---2]

@.*
1 2 3 * -> [ 5 10 15 
NEW-
RPL: [[ 1 2 3 ]] .* -> [ 5 10 15 ]

[[ 
1 2 3 ]] * -> [[ 5 10 15 ]] 
NEW-
RPL:  [[ 1 2 3 ]] .* -> [[ 5 10 15 ]]

@./
1 2 3 / @ -> [ 1/5 2/5 3/]
NEW-
RPL: [[ 1 2 3 ]] ./ -> [ 1/5 2/5 3/]

@.*
[[ 
'a' 'b' ]
'c' 'd' ]]

[[ 
'a' 'b' ]
'c' 'd' ]]
« AXL SWAP AXL 2 « » DOLIST AXL » EVAL
->
[[ 
'a*a' 'b*b' ]
 [ 
'c*c' 'd*d' ]]

NEW-
RPL

[[ 
'a' 'b' ]
'c' 'd' ]]

[[ 
'a' 'b' ]
'c' 'd' ]] .*

->
[[ 
'a*a' 'b*b' ]
 [ 
'c*c' 'd*d' ]]

@.^
[[ 
'a' 'b' ]
'c' 'd' ]]
[[ 
'a' 'b' ]
'c' 'd' ]]
« AXL SWAP AXL 2 « » DOLIST AXL » EVAL

[[ 
'a^a' 'b^b' ]
 [ 
'c^c' 'd^d' ]] 
Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New RPL: New Commands - compsystems - 12-28-2016 06:06 PM
RE: New RPL: New Commands - Vtile - 12-28-2016, 06:15 PM
RE: New RPL: New Commands - compsystems - 12-28-2016, 08:17 PM
RE: New RPL: New Commands - Claudio L. - 12-29-2016, 03:16 AM
RE: New RPL: New Commands - compsystems - 01-16-2017, 12:17 AM
RE: New RPL: New Commands - Claudio L. - 01-16-2017, 04:24 PM
RE: New RPL: New Commands - compsystems - 01-16-2017, 04:39 PM
RE: New RPL: New Commands - Claudio L. - 01-17-2017, 02:26 PM
RE: New RPL: New Commands - Vtile - 01-17-2017, 03:50 PM
RE: New RPL: New Commands - Claudio L. - 01-17-2017, 07:42 PM
RE: New RPL: New Commands - The Shadow - 01-19-2017, 07:06 AM
RE: New RPL: New Commands - The Shadow - 01-20-2017, 07:42 PM
RE: New RPL: New Commands - Claudio L. - 01-20-2017, 11:47 PM
RE: New RPL: New Commands - The Shadow - 01-21-2017, 04:29 AM
RE: New RPL: New Commands - Claudio L. - 01-22-2017, 01:53 AM
RE: New RPL: New Commands - The Shadow - 01-22-2017, 04:10 AM
RE: New RPL: New Commands - The Shadow - 01-21-2017, 08:17 PM



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