Simple challenge in RPL, Extract the odd elements from a list
|
08-16-2017, 12:28 PM
(This post was last modified: 08-16-2017 08:29 PM by compsystems.)
Post: #1
|
|||
|
|||
Simple challenge in RPL, Extract the odd elements from a list
Extract the odd elements from a list, with commands: SUB, MAP, AXL, TRAN others
example https://www.mathworks.com/help/symbolic/factor.html with FOR cmd PHP Code: « input: 'x^4-1' FACTORS { 'x+1' 1. 'x-1' 1. 'x+i' 1. 'x-i' 1. } output { 'x+1' 'x-1' 'x+i' 'x-i' } example2 input: 'x^4+x^3-6*x^2-4*x+8' FACTORS { x-2, 1,x-1, 1, x+2, 2 } output { x-2, x-1, x+2 } With SEQ cmd PHP Code: « |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)