Post Reply 
all about strings
10-22-2018, 07:06 PM
Post: #1
all about strings
Hello,
pressing the softmenu Cmds/Strings menu when Programming, i can access only to string commands like:
ASC
LOWER
STRINGFROMID
ROTATE
MID
UPPER
RIGHT
INSTRING
STRING
EXPR
DIM
CHAR
LEFT
REPLACE

I am missing, in the same menu the following commands to handle strings:
SUPPRESS
INSERT

Are there other missing commands?
Is it possible to insert them in the same menu in a new firmware release?

thanks

Giancarlo
Find all posts by this user
Quote this message in a reply
10-22-2018, 09:02 PM
Post: #2
RE: all about strings
I would guess that the latter two commands are not in the String menu because they also apply to lists and arrays.
Find all posts by this user
Quote this message in a reply
10-22-2018, 09:46 PM (This post was last modified: 10-23-2018 02:53 PM by compsystems.)
Post: #3
RE: all about strings
SUPPRESS & INSERT should be included, operate on strings, although they can operate in other objects, should not be excluded.

suppress
Returns list or string without the element of index n;
L1:=suppress(L1,n) or L1.suppress(n).
suppress(Vect||Str,Intg(n))

although it is also necessary to clarify that it is affected by the reserved variable Index

index:=1:; suppress("-x^3",1) returns "Done","x^3"
index:=0:; suppress("-x^3",1) returns "Done","-^3"

index:=0; [enter]
s1:="-x^3"; s1. suppress(0); s1.suppress(0) => "[] index start 0","-x^3","x^3","^3" // ok

bug
up up copy
equal(s1,"-x^3"), s1.(suppress(0)), s1.(suppress(0)) =>
equal("^3","-x^3"),"3",""
Find all posts by this user
Quote this message in a reply
10-24-2018, 08:17 PM
Post: #4
RE: all about strings
Hello,
i think you are right. These two commands are not limited to strings hence they can be inserted in other menu like the list commands.

However i was thinking if there were other commands to handle strings…

thanks

Giancarlo
Find all posts by this user
Quote this message in a reply
10-24-2018, 08:31 PM
Post: #5
RE: all about strings
I have found few days ago Xcas documentation on English, however seems that now site is unavailable...

https://www-fourier.ujf-grenoble.fr/~par...cmd_en.pdf

It is important that all is organized quite well, thus each group have list of related functions available in one place. Perhaps, the most of functions are in the Prime, even should be differences depending what is implemented from Xcas.
Find all posts by this user
Quote this message in a reply
10-24-2018, 10:09 PM
Post: #6
RE: all about strings
(10-24-2018 08:31 PM)sasa Wrote:  I have found few days ago Xcas documentation on English, however seems that now site is unavailable...

https://www-fourier.ujf-grenoble.fr/~par...cmd_en.pdf

It is important that all is organized quite well, thus each group have list of related functions available in one place. Perhaps, the most of functions are in the Prime, even should be differences depending what is implemented from Xcas.

Confirmed, site is not working.

Can you share the copy you got when you did reach the site?

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
10-25-2018, 02:09 AM
Post: #7
RE: all about strings
(10-24-2018 10:09 PM)rprosperi Wrote:  
(10-24-2018 08:31 PM)sasa Wrote:  I have found few days ago Xcas documentation on English, however seems that now site is unavailable...

https://www-fourier.ujf-grenoble.fr/~par...cmd_en.pdf

Confirmed, site is not working.

Can you share the copy you got when you did reach the site?

If it's the same version that was there 4.5 years ago (dated 2007), here's the copy that I downloaded at that time:

http://holyjoe.net/Prime/cascmd_en.pdf

If this is an obsolete version, please advise.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
10-25-2018, 03:07 AM
Post: #8
RE: all about strings
(10-25-2018 02:09 AM)Joe Horn Wrote:  If this is an obsolete version, please advise.

I assumed this is a (hopefully much) more recent version, as the one Joe mentioned has been in circulation for years as noted. I did not notice the filename in the link was identical... Sad

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
10-25-2018, 05:04 AM (This post was last modified: 10-25-2018 05:04 AM by sasa.)
Post: #9
RE: all about strings
(10-25-2018 03:07 AM)rprosperi Wrote:  I did not notice the filename in the link was identical... Sad

Since filename do not specify date of revision, it could be newer... However it is not, this is version from 2007.
Find all posts by this user
Quote this message in a reply
08-23-2019, 03:22 PM
Post: #10
RE: all about strings
Updating this discussion

Document specifically for HP Prime, translated from the French

"Symbolic computation and Mathematics with the calculator HP Prime"
(2013), which is a 513 page pdf file.

Follow link to "Documentation" on this page
https://www-fourier.ujf-grenoble.fr/~par...glish.html
under the HP Prime header
Find all posts by this user
Quote this message in a reply
08-23-2019, 07:28 PM (This post was last modified: 08-23-2019 07:31 PM by Carlos295pz.)
Post: #11
RE: all about strings
I have not counted the new commands have been added or extended but are not yet in the help of the calculator or have not been relocated. I think only are two command.

(01-31-2018 05:24 PM)Tim Wessman Wrote:  
Quote:HP Prime – Release Notes
-------------------------

Date Released: 2018/01/24

...

19. Added SUPPRESS and INSERT commands for list/matrix/vect/string. Also added new CAS "insert" command
20. Added a new date picker through system in places where dates are asked as input. Added CHOOSEDATE user command to get date input in HPPPL.

...

I just remembered that I still wait for the Date type within INPUT.

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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