Post Reply 
Replica a number
02-03-2022, 02:04 PM
Post: #5
RE: Replica a number
(02-03-2022 10:20 AM)robmio Wrote:  
(02-03-2022 10:16 AM)robmio Wrote:  Good morning,
Is there in HP Prime a command that replaces a series of numbers with other numbers?
For example:
{1,1,0,0,0,1} --comand--> {1,1,2,2,2,1}
all zeroes replaced by 2.

Thak you, Roberto

Another examle:

{1,1,0,1,0,0,1,1,0,1} --》{1,1,2,1,2,2,1,1,2,1}

Great: I used a "for" loop: it works, but it slows down the execution of my other programs. Your solution is quick and easy: thank you very much.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Replica a number - robmio - 02-03-2022, 10:16 AM
RE: Replica a number - robmio - 02-03-2022, 10:20 AM
RE: Replica a number - robmio - 02-03-2022 02:04 PM
RE: Replica a number - Didier Lachieze - 02-03-2022, 01:43 PM
RE: Replica a number - robmio - 02-03-2022, 02:07 PM
RE: Replica a number - Arno K - 02-03-2022, 01:52 PM
RE: Replica a number - robmio - 02-03-2022, 02:10 PM
RE: Replica a number - Tyann - 02-08-2022, 11:34 AM
RE: Replica a number - robmio - 02-08-2022, 12:50 PM



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