Hp prime questions (plus little explorations).
|
12-27-2017, 06:22 AM
Post: #24
|
|||
|
|||
RE: Hp prime questions (plus little explorations).
(12-27-2017 02:52 AM)toml_12953 Wrote:(12-26-2017 10:57 PM)pier4r Wrote: Aside from the question about the software of the competition. Is there a composite data type for the prime, like a "record"? How about HP PPL's 'table' object type (DOM_MAP)? It not only lets you store multiple objects of any type into one table, but it even lets you create your own custom indices, including names for each entry. Silly example in CAS: t:=table(71 = "Titan", "Chuck" = 48, "Fir" = "Prime") This creates a CAS variable called 't' which contains a table with 3 objects in it, each with a custom index, accessible like this: t[71] --> "Titan" t["Chuck"] --> 48 t["Fir"] --> "Prime" The objects themselves, as well as the indices, apparently can be any valid CAS object. The Xcas documentation for 'table' says, "It may be used for example to store a table of phone numbers indexed by names." An address-book type application is usually created using record-type structures, so Prime's 'table' object might be what you're looking for. Fair Warning: 'table' has always been a little buggy in Prime, and never supported, so if you use it in programs, be sure to test it thoroughly, and beware that 'table' MIGHT vanish entirely in a future firmware update. <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)