index and find cmd
|
12-16-2018, 06:31 PM
(This post was last modified: 12-17-2018 03:40 AM by compsystems.)
Post: #1
|
|||
|
|||
index and find cmd
Hello
Please try the following instructions on the hp-prime calculator: index:=1:; E_ := [ "H", "E", "L", "L", "O" ]:; find( "L", E_ ); index(E_,"L"); [enter] "Done","Done",[3,4],3 // ok Now index -> 0 index:=0:; E_ := [ "H", "E", "L", "L", "O" ]:; find( "L", E_ ); index(E_,"L"); [enter] "Done","Done",2,2 the output should be "Done","Done",[2,3],2 index:=1:;index("abracadabrant","c") [enter] error // the output should be 5 index:=0:;index("abracadabrant","c") [enter] -1 // the output should be 4 Thanks |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
index and find cmd - compsystems - 12-16-2018 06:31 PM
RE: index and find cmd - cdmackay - 12-16-2018, 07:34 PM
RE: index and find cmd - compsystems - 12-16-2018, 11:38 PM
RE: index and find cmd - cdmackay - 12-17-2018, 12:02 AM
RE: index and find cmd - rprosperi - 12-17-2018, 12:25 AM
RE: index and find cmd - cdmackay - 12-17-2018, 01:04 AM
RE: index and find cmd - compsystems - 12-17-2018, 02:35 AM
|
User(s) browsing this thread: 1 Guest(s)