Post Reply 
Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
03-08-2014, 08:04 PM
Post: #1
Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(This can be understood as a general question about Xcas <-> Prime compatibility.)
In Chapter 2.31 in the Xcas manual I read that I could define an object in Z/pZ as n:=12%13 (for example). However using this syntax on the Prime leads to an error.

Later in the manual its said that the Xcas' Maple Mode is different in that "In Maple mode, integers modulo p are represented like usual integers instead of using specific modular integers. To avoid confusion with normal commands, modular commands are written with a capital letter (inert form) and followed by the mod command (see also the next section)."

Has the Prime it's own Mode, or is it similiar to the Maple mode? And if the Prime has its own mode, is it documented further anywhere?
I tried the following: 12 mod 13. However this also leads to an error. I get a result if I use a uppercase MOD, but does this mean that it uses then the HOME view MOD instead of the CAS view mod?

(I feel, everytime I use my Prime, half an hour later I am writing a post to this forum :-\ )
Find all posts by this user
Quote this message in a reply
03-09-2014, 01:26 AM (This post was last modified: 03-09-2014 01:48 AM by jebem.)
Post: #2
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(03-08-2014 08:04 PM)Stefan Wrote:  I tried the following: 12 mod 13. However this also leads to an error. I get a result if I use a uppercase MOD, but does this mean that it uses then the HOME view MOD instead of the CAS view mod?

Same question here... We saw similar questions raised here before, concerning the consistency of uppercase/lowercase usage in Home, CAS, and the Catalog entries.

There are a few situations related to CAS environment that I am trying to understand (and failing so far):

1) When picking an uppercase function from the Catalog, it is copied to CAS entry area and converted to a lowercase function... that's what is happening here with this "MOD" command.
There is no "mod" expression in lowercase listed in the Catalog, as there are no trigonometric functions listed in lowercase - all of them are listed in uppercase (for instance, "SIN", "COS", "TAN", and all of them will be converted to lowercase when displayed in the CAS entry area).

2) Also, when we manually type a function in the CAS entry area, it will be in lowercase as well (that's the default).
So far, it looks to be consistent with point (1).

3) Now, after pressing the Enter key, usually the above functions are listed in the history area as uppercase... so it seems that CAS will "digest" these functions in uppercase, after all.
The question is: how many? All of them?

4) After that, when we copy one expression from the history area to the entry area, the functions are converted back to lowercase! Again, it looks to be consistent with points (1), (2) and (3).

5) However, due to a unknown cause (at least to me!), some functions, like the "mod" here, are not being converted to uppercase by the system when we press the Enter key... and because the CAS system expect an uppercase expression, the result is a syntax error!
In fact, the "MOD" function is NOT converted back to lowercase when copying a expression (where it exists) from the history area to the entry area!

6) As I see it, the system/parser tables are not updated with all the functions/expression names that must be converted between uppercase and lowercase when being copied between the different areas (Catalog, CAS entry area, and history area). At least, the "MOD" function is not included.
So, there are a unknown number of uppercase functions in the Catalog that are invalid in CAS environment, due to this abnormal behavior, and for those we need to manually type them in uppercase to be accepted!
The question here is: How many of these Catalog functions/expressions are invalid in the CAS environment?

Does it make any sense at all? I'm sure it does for the good people working hard on this issues to be fixed in due time.
Me? I'm lost here. I have to read the HP user guides in deeper detail to see if I can find some answers.

Jose Mesquita
RadioMuseum.org member

Find all posts by this user
Quote this message in a reply
03-09-2014, 07:31 AM
Post: #3
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
Some clarifications:
Xcas has several syntax compatibility modes: maple, geogebra, ti, hp, that you can change with the xcas_mode and calc_mode commands. For example, calc_mode(-38) on Xcas will somewhat simulate the Prime syntax compatibility mode, this make it easier for me to fix bugs for the Prime CAS.
The Prime CAS parser does not recognize all the keywords that are recognized by Xcas. xcas_mode and calc_mode are not recognized on the Prime, you can not switch to Maple compatibility mode on the Prime.
In addition, some keywords differ, like %, because % is a keyword on the HP. That's why on the Prime, you must use %% instead of % if you want to work in Z/pZ.
For uppercase/lowercase commands: (almost) all the genuine HP38 uppercase commands are built-in CAS commands, which means no conversion happens if you are using them from the CAS. New Prime uppercase Home commands are not built-in CAS commands, if you are using them from the CAS, the call to the Home command is done with conversion to Home objects.
Find all posts by this user
Quote this message in a reply
03-09-2014, 12:17 PM
Post: #4
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
Thank you parisse for the %% hint!

Is it intended that the Prime converts the expression 12%%13 in the history to %%(12,13)? That's a little bit confusing, because if I copy this to the entry line it is again converted back to 12%%13. However if I type it like its in the history and execute it there is an error.

Also: I am not familiar to the HP38. How do I know whether a command is one of the "genuine HP38" commands and which not?
Find all posts by this user
Quote this message in a reply
03-09-2014, 03:27 PM
Post: #5
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
There is indeed a display bug in textbook mode for %%. It works if you don't check textbook mode.
For the HP38 genuine commands, I guess the best is to get an HP39G manual from HP website.
Find all posts by this user
Quote this message in a reply
03-09-2014, 04:20 PM
Post: #6
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(03-09-2014 03:27 PM)parisse Wrote:  There is indeed a display bug in textbook mode for %%. It works if you don't check textbook mode.
I cannot reproduce that it works when not set to Textbook: On my Prime, if I switch to "Algebraic" under Home settings, the calculator still converts it to %%(,). Or did you mean another setting?

(However I found another bug while trying some settings, see my other thread)
Find all posts by this user
Quote this message in a reply
03-09-2014, 04:33 PM
Post: #7
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
Yes I meant 2d display, not 2d input.
The %% bug with approx data has been fixed in source a few days ago, should be in the next firmware.
Find all posts by this user
Quote this message in a reply
10-05-2014, 11:09 AM
Post: #8
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
Exactly what I am most interested about! As I work almost exclusively in the CAS environment of the Prime, I would be very grateful for any complete list of:

1) Which of the Xcas commands can be used there, and
2) What exactly is the syntax for them on the Prime.

You see, most of the time the expressions I have to work with are large and completely "unpleasant". Now, the easily accessible commands (from the command catalog, or CAS-Menu etc.) either do not at all perform the expression manipulations the way I want to do them, or they... crash the calculator and I lose everything, having to restart from the beginning. And yes, I know that I could also copy parts of big expressions, paste them into history, do some work with them, and substitute them back to the original expression. But with such big expressions and such a small display it soon becames a nightmare. You know, scroll back and forth, try to select the right part of the expression, oh no it was a mistake, klick-klick-klick on the mouse button, oh no it was the false history item, and so on... This is only wasted time (and nerves.)

So, it would be really a life saver for me to have such a commands list of Xcas on the Prime (along with their syntax), in order to program my set of CAS commands/programs for exploding expressions, doing some manipulations on particular parts of them, and re-combining them back. Simply reading the Xcas manual and trying out the commands on the input line of the Prime is worse than playing roulette.

BTW, it is a real pity to have such power under the hood and not being able to access it. (The Apps and the like constructs are perhaps good for commercials and fancy demonstrations, but for work beyond the "student level"..... Sorry, I don't "explore" (how fancy!!!) the quadratic equation anymore... ;-))

Ciao,

Nick.

P.S.: Oh, yet another question: Why does the commands catalog of the Prime not include such things like for example op, union etc??
Find all posts by this user
Quote this message in a reply
10-05-2014, 12:46 PM
Post: #9
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
Here is a list of Giac/Xcas commands that are not available on the Prime:
Code:

//{"ARC",13,-124,0,0},
//{"Airy_Ai",13,9,0,0},
//{"Airy_Bi",13,9,0,0},
//{"Archive",13,77,0,0| 1},
//{"BesselI",13,9,0,0},
//{"BesselJ",13,9,0,0},
//{"BesselK",13,9,0,0},
//{"BesselY",13,9,0,0},
//{"BlockDiagonal",13,9,0,0},
//{"CHOOSE",13,-124,0,0 | 1},
//{"Celsius2Fahrenheit",13,-124,0,0},
//{"Ci0",13,9,0,0},
//{"Circle",13,77,0,0},
//{"ClrDraw",13,8,0,0},
//{"ClrGraph",13,8,0,0},
//{"ClrIO",13,8,0,0},
//{"CyclePic",13,77,0,0},
//{"DEGXRAD",13,-124,0,0},
//{"DISP",13,-124,0,0| 1},
//{"DelFold",13,77,0,0| 1},
//{"DelVar",13,77,0,0},
//{"Det",13,9,0,0},
//{"DispG",13,8,0,0},
//{"DispHome",13,8,0,0},
//{"DrawFunc",13,77,0,0},
//{"DrawInv",13,77,0,0},
//{"DrawParm",13,77,0,0},
//{"DrawPol",13,77,0,0},
//{"DrwCtour",13,77,0,0},
//{"EXPORT",13,77,0,0},
//{"Ei0",13,9,0,0},
//{"Ei_f",13,9,0,0},
//{"Eta",13,9,0,0},
//{"Exec",13,77,0,0},
//{"Factor",13,9,0,0},
//{"Fahrenheit2Celsius",13,-124,0,0},
//{"Fill",13,77,0,0| 1},
//{"GETKEY",13,-124,0,0},
//{"Gcd",13,9,0,0},
//{"Gcdex",13,9,0,0},
//{"Get",13,77,0,0| 1},
//{"GetCalc",13,77,0,0| 1},
//{"GetFold",13,8,0,0},
//{"Graph",13,77,0,0},
//{"HMSX",13,-124,0,0},
//{"INPUT",13,-124,0,0| 1},
//{"INVERSE",13,-124,0,0},
//{"ISOLATE",13,-124,0,0| 1},
//{"Input",13,77,0,0| 1},
//{"InputStr",13,77,0,0| 1},
//{"Int",13,9,0,0},
//{"Inverse",13,9,0,0},
//{"LINE",13,-124,0,0},
//{"LINEAR?",13,-124,0,0| 1},
//{"MSGBOX",13,-124,0,0},
//{"NewFold",13,77,0,0| 1},
//{"NewPic",13,77,0,0},
//{"Nullspace",13,9,0,0},
//{"Output",13,77,0,0},
//{"Ox_2d_unit_vector",13,9,0,0},
//{"Ox_3d_unit_vector",13,9,0,0},
//{"Oy_2d_unit_vector",13,9,0,0},
//{"Oy_3d_unit_vector",13,9,0,0},
//{"Oz_3d_unit_vector",13,9,0,0},
//{"PIXOFF",13,-124,0,0},
//{"PIXON",13,-124,0,0},
//{"PRINT",13,-124,0,0},
//{"Pause",13,77,0,0},
//{"Phi",13,9,0,0},
//{"Pictsize",13,9,0,0},
//{"PopUp",13,77,0,0| 1},
//{"Prompt",13,77,0,0| 1},
//{"Psi_minus_ln",13,9,0,0},
//{"PtOff",13,77,0,0},
//{"PtOn",13,77,0,0},
//{"PtText",13,77,0,0},
//{"PxlOff",13,77,0,0},
//{"PxlOn",13,77,0,0},
//{"QUAD",13,-124,0,0| 1},
//{"Quo",13,9,0,0},
//{"RADXDEG",13,-124,0,0},
//{"Rank",13,9,0,0},
//{"RclPic",13,77,0,0| 1},
//{"Rem",13,9,0,0},
//{"Resultant",13,9,0,0},
//{"RplcPic",13,77,0,0| 1},
//{"Rref",13,9,0,0},
//{"SWAP",13,85,0,0},
//{"SetFold",13,77,0,0| 1},
//{"SiCi_f",13,9,0,0},
//{"SiCi_g",13,9,0,0},
//{"SortA",13,77,0,0| 1},
//{"SortD",13,77,0,0| 1},
//{"StoPic",13,77,0,0| 1},
//{"Store",13,9,0,0| 1},
//{"Sum",13,9,0,0| 1},
//{"TAYLOR",13,-124,0,0| 1},
//{"TeX",13,9,0,0},
//{"Unarchiv",13,77,0,0| 1},
//{"VIEWS",13,77,0,0},
//{"WAIT",13,-124,0,0},
//{"XHMS",13,-124,0,0},
//{"ZoomRcl",13,77,0,0},
//{"ZoomSto",13,77,0,0},
//{"accumulate_head_tail",13,9,0,0},
//{"add",13,9,0,0| 1},
//{"add_language",13,9,0,0},
//{"adjoint_matrix",13,9,0,0},
//{"alors",13,49,0,0| 1},
//{"animate",13,9,0,0},
//{"animate3d",13,9,0,0},
//{"animation",13,9,0,0},
//{"archive",13,9,0,0},
//{"areaplot",13,9,0,0},
//{"array",13,9,0,0},
//{"array_sto",13,9,0,0| 1},
//{"as_function_of",13,9,0,0| 1},
//{"assign",13,9,0,0},
//{"augment",13,9,0,0},
//{"avance",13,126,0,0},
//{"avgRC",13,9,0,0},
//{"background",13,9,0,0| 1},
//{"baisse_crayon",13,126,0,0},
//{"bar_plot",13,9,0,0},
//{"bernoulli",13,9,0,0},
//{"bezout_entiers",13,9,0,0},
//{"binprint",13,9,0,0},
//{"bitmap",13,9,0,0},
//{"blockmatrix",13,9,0,0},
//{"border",13,9,0,0},
//{"boxwhisker",13,9,0,0},
//{"c1oc2",13,9,0,0},
//{"c1op2",13,9,0,0},
//{"cache_tortue",13,126,0,0},
//{"calc_mode",13,9,0,0},
//{"camembert",13,9,0,0},
//{"cap",13,126,0,0},
//{"cas_setup",13,9,0,0},
//{"cd",13,9,0,0},
//{"ceil",13,9,0,0},
//{"cell",13,9,0,0},
//{"center2interval",13,9,0,0},
//{"centered_cube",13,9,0,0},
//{"centered_tetrahedron",13,9,0,0},
//{"changebase",13,9,0,0},
//{"choosebox",13,9,0,0| 1},
//{"classes",13,9,0,0},
//{"click",13,9,0,0},
//{"close",13,9,0,0},
//{"coeffs",13,9,0,0},
//{"colNorm",13,9,0,0},
//{"coldim",13,9,0,0},
//{"color",13,9,0,0},
//{"colspace",13,9,0,0},
//{"combine",13,9,0,0},
//{"comment",13,9,0,0},
//{"cone",13,9,0,0},
//{"cont",13,9,0,0| 1},
//{"contourplot",13,9,0,0| 1},
//{"convertir",13,9,0,0},
//{"copy",13,9,0,0},
//{"cote",13,9,0,0},
//{"count_eq",13,9,0,0},
//{"count_inf",13,9,0,0},
//{"count_sup",13,9,0,0},
//{"courbe_parametrique",13,9,0,0| 1},
//{"courbe_polaire",13,9,0,0| 1},
//{"crayon",13,126,0,0},
//{"crossP",13,9,0,0},
//{"cross_ratio",13,9,0,0},
//{"crossproduct",13,9,0,0},
//{"csv2gen",13,9,0,0},
//{"cube",13,9,0,0},
//{"cumulated_frequencies",13,9,0,0},
//{"current_sheet",13,9,0,0| 1},
//{"cycle2perm",13,9,0,0},
//{"cycleinv",13,9,0,0},
//{"cycles2permu",13,9,0,0},
//{"cylinder",13,9,0,0},
//{"de",13,57,0,0| 1},
//{"debug_infolevel",13,9,0,0},
//{"debut_enregistrement",13,126,0,0},
//{"decrement",13,9,0,0| 1},
//{"densityplot",13,9,0,0| 1},
//{"deriver",13,9,0,0},
//{"dessine_tortue",13,126,0,0},
//{"det_minor",13,9,0,0},
//{"developper",13,9,0,0},
//{"developper_transcendant",13,9,0,0},
//{"dfc",13,9,0,0},
//{"dfc2f",13,9,0,0},
//{"disque",13,126,0,0},
//{"disque_centre",13,126,0,0},
//{"div",13,22,0,0},
//{"divcrement",13,9,0,0| 1},
//{"divide",13,9,0,0},
//{"divisors",13,9,0,0},
//{"dodecahedron",13,9,0,0},
//{"dotP",13,9,0,0},
//{"dotprod",13,9,0,0},
//{"droit",13,9,0,0},
//{"droite_tangente",13,9,0,0},
//{"dsolve",13,9,0,0| 1},
//{"e2r",13,9,0,0},
//{"ecart_type",13,9,0,0},
//{"ecart_type_population",13,9,0,0},
//{"ecris",13,126,0,0},
//{"efface",13,126,0,0},
//{"egv",13,9,0,0},
//{"egvl",13,9,0,0},
//{"eigenvalues",13,9,0,0},
//{"eigenvectors",13,9,0,0},
//{"entry",13,9,0,0},
//{"envelope",13,9,0,0},
//{"epsilon2zero",13,9,0,0| 1},
//{"equal2diff",13,9,0,0},
//{"equal2list",13,9,0,0},
//{"erase3d",13,9,0,0},
//{"erfs",13,9,0,0},
//{"et",13,33,0,0| 1},
//{"euler_mac_laurin",13,9,0,0},
//{"eval_level",13,9,0,0},
//{"evala",13,9,0,0},
//{"evalb",13,9,0,0| 1},
//{"evalm",13,9,0,0},
//{"execute",13,9,0,0},
//{"exp2list",13,9,0,0| 1},
//{"exponential_regression_plot",13,9,0,0},
//{"fPart",13,9,0,0},
//{"faces",13,9,0,0},
//{"facteurs_premiers",13,9,0,0},
//{"factoriser",13,9,0,0},
//{"factoriser_entier",13,9,0,0},
//{"factoriser_sur_C",13,9,0,0},
//{"factoriser_xn",13,9,0,0},
//{"faire",13,59,0,0| 1},
//{"fclose",13,9,0,0},
//{"ffaire",13,76,0,0| 1},
//{"ffonction",13,76,0,0| 1},
//{"fieldplot",13,9,0,0},
//{"fin_enregistrement",13,126,0,0},
//{"findhelp",13,9,0,0| 1},
//{"float",13,9,0,0},
//{"float2rational",13,9,0,0},
//{"fonction",13,73,0,0| 1},
//{"fonction_derivee",13,9,0,0},
//{"fopen",13,9,0,0},
//{"fourier_an",13,9,0,0},
//{"fourier_bn",13,9,0,0},
//{"fourier_cn",13,9,0,0},
//{"fpour",13,76,0,0| 1},
//{"fprint",13,9,0,0},
//{"frame_2d",13,9,0,0},
//{"frame_3d",13,9,0,0},
//{"fsi",13,76,0,0| 1},
//{"ftantque",13,76,0,0| 1},
//{"funcplot",13,9,0,0| 1},
//{"fxnd",13,9,0,0},
//{"gauche",13,9,0,0},
//{"gaussjord",13,9,0,0},
//{"gcdex",13,9,0,0},
//{"genpoly",13,9,0,0},
//{"geo2d",13,9,0,0},
//{"geo3d",13,9,0,0},
//{"getDenom",13,9,0,0},
//{"getKey",13,9,0,0},
//{"getNum",13,9,0,0},
//{"getType",13,9,0,0},
//{"giac",13,9,0,0},
//{"goto",13,77,0,0},
//{"graph2tex",13,9,0,0},
//{"graph3d2tex",13,9,0,0},
//{"graphe",13,9,0,0| 1},
//{"graphe3d",13,9,0,0},
//{"graphe_suite",13,9,0,0},
//{"groupermu",13,9,0,0},
//{"hadamard",13,9,0,0},
//{"half_cone",13,9,0,0},
//{"hasard",13,126,0,0},
//{"heap_mult",13,9,0,0},
//{"heugcd",13,9,0,0},
//{"hexprint",13,9,0,0},
//{"hold",13,9,0,0| 1},
//{"horner",13,9,0,0},
//{"hp38",13,9,0,0},
//{"hyperplan",13,9,0,0},
//{"hypersphere",13,9,0,0},
//{"hypersurface",13,9,0,0},
//{"ichrem",13,9,0,0},
//{"icosahedron",13,9,0,0},
//{"idn",13,9,0,0},
//{"igcdex",13,9,0,0},
//{"imag",13,9,0,0},
//{"image",13,9,0,0},
//{"implicitplot",13,9,0,0},
//{"implicitplot3d",13,9,0,0},
//{"in_ideal",13,9,0,0},
//{"increment",13,9,0,0| 1},
//{"indets",13,9,0,0},
//{"inequationplot",13,9,0,0| 1},
//{"input",13,9,0,0| 1},
//{"inputform",13,9,0,0| 1},
//{"insmod",13,9,0,0},
//{"intDiv",13,9,0,0},
//{"integer_format",13,9,0,0},
//{"integrer",13,9,0,0},
//{"interactive",13,9,0,0| 1},
//{"interactive_odeplot",13,9,0,0},
//{"interactive_plotode",13,9,0,0},
//{"interp",13,9,0,0},
//{"inverse",13,9,0,0},
//{"iratrecon",13,9,0,0},
//{"is_cospheric",13,9,0,0},
//{"is_cycle",13,9,0,0},
//{"is_permu",13,9,0,0},
//{"is_prime",13,9,0,0},
//{"is_pseudoprime",13,9,0,0},
//{"isom",13,9,0,0},
//{"jusque",13,58,0,0| 1},
//{"kernel",13,9,0,0},
//{"keyboard",13,9,0,0},
//{"kill",13,9,0,0},
//{"label",13,77,0,0},
//{"latex",13,9,0,0},
//{"ldegree",13,9,0,0},
//{"legend",13,9,0,0| 1},
//{"leve_crayon",13,126,0,0},
//{"lhs",13,9,0,0},
//{"ligne_polygonale",13,9,0,0},
//{"ligne_polygonale_pointee",13,9,0,0},
//{"limite",13,9,0,0},
//{"line_inter",13,9,0,0},
//{"line_segments",13,9,0,0},
//{"linear_regression_plot",13,9,0,0},
//{"lineariser",13,9,0,0},
//{"lineariser_trigo",13,9,0,0},
//{"lis",13,77,0,0| 1},
//{"lis_phrase",13,77,0,0| 1},
//{"listplot",13,9,0,0},
//{"lll",13,9,0,0},
//{"lnGamma_minus",13,9,0,0},
//{"logarithmic_regression_plot",13,9,0,0},
//{"logistic_regression_plot",13,9,0,0},
//{"lsmod",13,9,0,0},
//{"mRowAdd",13,9,0,0},
//{"makemod",13,9,0,0},
//{"makesuite",13,9,0,0},
//{"makevector",13,9,0,0},
//{"maple2mupad",13,9,0,0| 1},
//{"maple2xcas",13,9,0,0| 1},
//{"maple_ifactors",13,9,0,0},
//{"maple_mode",13,9,0,0},
//{"mathml",13,9,0,0},
//{"modgcd_cachesize",13,9,0,0},
//{"modp",13,9,0,0},
//{"mods",13,9,0,0},
//{"montre_tortue",13,126,0,0},
//{"moustache",13,9,0,0},
//{"moyal",13,9,0,0},
//{"moyenne",13,9,0,0},
//{"mpzclass_allowed",13,9,0,0},
//{"mul",13,9,0,0},
//{"multcrement",13,9,0,0| 1},
//{"multiplier_conjugue",13,9,0,0},
//{"multiplier_conjugue_complexe",13,9,0,0},
//{"multiply",13,9,0,0},
//{"mupad2maple",13,9,0,0| 1},
//{"mupad2xcas",13,9,0,0| 1},
//{"nCr",13,9,0,0},
//{"nInt",13,9,0,0},
//{"nPr",13,9,0,0},
//{"ncols",13,9,0,0},
//{"newList",13,9,0,0},
//{"newMat",13,9,0,0},
//{"newton",13,9,0,0},
//{"nextperm",13,9,0,0},
//{"nodisp",13,9,0,0},
//{"non",13,11,0,0},
//{"non_recursive_normal",13,9,0,0},
//{"nop",13,9,0,0},
//{"nops",13,9,0,0},
//{"norm",13,9,0,0},
//{"normal_cdf",13,9,0,0},
//{"normal_icdf",13,9,0,0},
//{"nrows",13,9,0,0},
//{"nuage_points",13,9,0,0},
//{"nullspace",13,9,0,0},
//{"octahedron",13,9,0,0},
//{"octprint",13,9,0,0},
//{"odeplot",13,9,0,0},
//{"op",13,9,0,0},
//{"open",13,9,0,0},
//{"ord",13,9,0,0},
//{"orthogonal",13,9,0,0},
//{"os_version",13,9,0,0},
//{"ou",13,33,0,0| 1},
//{"output",13,9,0,0| 1},
//{"p1oc2",13,9,0,0},
//{"p1op2",13,9,0,0},
//{"padic_linsolve",13,9,0,0},
//{"papierl",13,9,0,0},
//{"papierp",13,9,0,0},
//{"papierq",13,9,0,0},
//{"papiert",13,9,0,0},
//{"parabolic_interpolate",13,9,0,0},
//{"parallelepiped",13,9,0,0},
//{"parameter",13,9,0,0},
//{"paramplot",13,9,0,0| 1},
//{"pari",13,9,0,0| 1},
//{"pari_unlock",13,9,0,0| 1},
//{"part",13,9,0,0},
//{"pas",13,60,0,0| 1},
//{"pas_de_cote",13,126,0,0},
//{"pcar",13,9,0,0},
//{"pcar_hessenberg",13,9,0,0},
//{"perminv",13,9,0,0},
//{"permu2cycles",13,9,0,0},
//{"permu2mat",13,9,0,0},
//{"permuorder",13,9,0,0},
//{"peval",13,9,0,0},
//{"pixoff",13,9,0,0},
//{"pixon",13,9,0,0},
//{"plane",13,9,0,0},
//{"plot",13,9,0,0| 1},
//{"plot3d",13,9,0,0},
//{"plot_style",13,9,0,0},
//{"plotarea",13,9,0,0},
//{"plotdensity",13,9,0,0| 1},
//{"pnt",13,9,0,0},
//{"point3d",13,9,0,0| 1},
//{"pointer",13,9,0,0},
//{"polar2rectangular",13,9,0,0},
//{"polarplot",13,9,0,0| 1},
//{"polygone_rempli",13,126,0,0},
//{"polyhedron",13,9,0,0},
//{"polynomial_regression_plot",13,9,0,0},
//{"position",13,126,0,0},
//{"pour",13,56,0,0| 1},
//{"power_regression_plot",13,9,0,0},
//{"powermod",13,9,0,0},
//{"prevperm",13,9,0,0},
//{"printpow",13,9,0,0},
//{"prism",13,9,0,0},
//{"prog_eval_level",13,9,0,0},
//{"propFrac",13,9,0,0},
//{"psrgcd",13,9,0,0},
//{"pwd",13,9,0,0},
//{"pyramid",13,9,0,0},
//{"quadric",13,9,0,0},
//{"quaternion",13,9,0,0},
//{"quest",13,9,0,0},
//{"r2e",13,9,0,0},
//{"ramene",13,126,0,0},
//{"rassembler_trigo",13,9,0,0},
//{"rat_jordan",13,9,0,0},
//{"rat_jordan_block",13,9,0,0},
//{"rationalroot",13,9,0,0},
//{"rdiv",13,9,0,0},
//{"read",13,77,0,0},
//{"readrgb",13,9,0,0},
//{"readwav",13,9,0,0},
//{"real",13,9,0,0},
//{"realroot",13,9,0,0},
//{"rectangle_plein",13,126,0,0},
//{"rectangular2polar",13,9,0,0},
//{"recule",13,126,0,0},
//{"reduced_quadric",13,9,0,0},
//{"remain",13,9,0,0},
//{"remove_language",13,9,0,0},
//{"repete",13,77,0,0| 1},
//{"reset_solve_counter",13,9,0,0},
//{"resoudre",13,9,0,0| 1},
//{"resoudre_dans_C",13,9,0,0| 1},
//{"resoudre_systeme_lineaire",13,9,0,0| 1},
//{"restart_modes",13,77,0,0},
//{"restart_vars",13,77,0,0},
//{"resultat",13,77,0,0| 1},
//{"reverse_rsolve",13,9,0,0},
//{"revert",13,9,0,0},
//{"rhs",13,9,0,0},
//{"rm_a_z",13,9,0,0},
//{"rm_all_vars",13,9,0,0},
//{"rmbreakpoint",13,9,0,0| 1},
//{"rmmod",13,9,0,0},
//{"rmwatch",13,9,0,0| 1},
//{"rond",13,126,0,0},
//{"roots",13,9,0,0},
//{"rowNorm",13,9,0,0},
//{"rowdim",13,9,0,0},
//{"rowspace",13,9,0,0},
//{"saute",13,126,0,0},
//{"sauve",13,126,0,0| 1},
//{"save_history",13,9,0,0},
//{"scalarProduct",13,9,0,0},
//{"scalar_product",13,9,0,0},
//{"scatterplot",13,9,0,0},
//{"semi_augment",13,9,0,0},
//{"seqplot",13,9,0,0},
//{"show_language",13,9,0,0},
//{"si",13,46,0,0| 1},
//{"sialorssinon",13,51,0,0| 1},
//{"signe",13,126,0,0},
//{"simp2",13,9,0,0},
//{"simplex_reduce",13,9,0,0},
//{"simplifier",13,9,0,0},
//{"singular",13,9,0,0},
//{"sinon",13,50,0,0| 1},
//{"sizes",13,9,0,0},
//{"smod",13,9,0,0},
//{"solve_zero_extremum",13,9,0,0| 1},
//{"somme",13,9,0,0| 1},
//{"sommet",13,9,0,0},
//{"sphere",13,9,0,0},
//{"split",13,9,0,0},
//{"spread2mathml",13,9,0,0},
//{"spreadsheet",13,9,0,0},
//{"sst",13,9,0,0| 1},
//{"sst_in",13,9,0,0| 1},
//{"stdDev",13,9,0,0},
//{"submatrix",13,9,0,0},
//{"substituer",13,9,0,0},
//{"switch_axes",13,9,0,0},
//{"syst2mat",13,9,0,0},
//{"tCollect",13,9,0,0},
//{"tExpand",13,9,0,0},
//{"tablefunc",13,9,0,0},
//{"tableseq",13,9,0,0| 1},
//{"tangente",13,9,0,0},
//{"tantque",13,62,0,0| 1},
//{"tcoeff",13,9,0,0},
//{"testfunc",13,-124,0,0},
//{"tests",13,-124,0,0},
//{"tetrahedron",13,9,0,0},
//{"textinput",13,9,0,0| 1},
//{"threads_allowed",13,9,0,0},
//{"throw",13,9,0,0},
//{"tourne_droite",13,126,0,0},
//{"tourne_gauche",13,126,0,0},
//{"tran",13,9,0,0},
//{"triangle_plein",13,126,0,0},
//{"unarchive",13,9,0,0},
//{"unarchive_ti",13,9,0,0},
//{"unitV",13,9,0,0},
//{"unquote",13,9,0,0},
//{"vers",13,126,0,0},
//{"vertices_abc",13,9,0,0},
//{"watch",13,9,0,0| 1},
//{"whattype",13,9,0,0},
//{"widget_size",13,9,0,0},
//{"with_sqrt",13,9,0,0},
//{"write",13,9,0,0| 1},
//{"writergb",13,9,0,0},
//{"writewav",13,9,0,0},
//{"xcas_mode",13,9,0,0},
//{"xyztrange",13,9,0,0},
Find all posts by this user
Quote this message in a reply
10-05-2014, 05:34 PM
Post: #10
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(10-05-2014 12:46 PM)parisse Wrote:  Here is a list of Giac/Xcas commands that are not available on the Prime:
Code:

//{"ARC",13,-124,0,0},
8< ------------------------- 
//{"xyztrange",13,9,0,0},

Which makes 555 commands.... Sigh! That many!

I guess that at least some of the calculation commands could be replaced by more or less adequate programs on the Prime. But my hopes for making good replacement programs ( based on onboard means of the Prime) for exploding and constructing expressions get vanishing by the minute.

Anyway, thank you very much and ciao,

Nick
Find all posts by this user
Quote this message in a reply
10-05-2014, 06:04 PM (This post was last modified: 10-05-2014 06:08 PM by Tim Wessman.)
Post: #11
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
You appear to be counting lines and not actually looking at the list itself.

The vast majority of them fall into 3 categories. Commands that are complete synonymns of others and ARE in there, just under one name instead of 2-5 different names for the same command, commands that are for drawing and doing UI things on the calculator (created for the 39gII, and turned off since the native functions can be used directly in the CAS now), and then things that don't make sense at all for the calculator (writewav,csv2gen,spread2mathml, etc).

Once you actually eliminate all of those, you are left with maybe 20-30 commands that were turned off because they were completely undocumented, untested, and need to have that done before allowing them to be used.

Are we really back to counting "functions" in order to determine capability?

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
10-05-2014, 08:31 PM
Post: #12
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(10-05-2014 06:04 PM)Tim Wessman Wrote:  You appear to be counting lines and not actually looking at the list itself.

The vast majority of them fall into 3 categories. Commands that are complete synonymns of others and ARE in there, just under one name instead of 2-5 different names for the same command, commands that are for drawing and doing UI things on the calculator (created for the 39gII, and turned off since the native functions can be used directly in the CAS now), and then things that don't make sense at all for the calculator (writewav,csv2gen,spread2mathml, etc).

Once you actually eliminate all of those, you are left with maybe 20-30 commands that were turned off because they were completely undocumented, untested, and need to have that done before allowing them to be used.

Are we really back to counting "functions" in order to determine capability?

I do not remember having asked a question about "all possible" commands but especially for those that manipulate expressions and parts of expressions. I do admit that I was (and still am) quite surprised to see how big the missing part of the Xcas is, because I didn't expect that (and thus the sigh), but this is not my focus here. My focus is that this way it will be hardly possible to make programs for algebraic manipulations as I need them. And I need many of them. The more the better! So I guess, I will have to try whatever is available and see how far I can get..

Last remark: Remember, you neither define for me what "makes sense" on a tool that I use, nor what I consider important about the tool's capabilities, OK Tim? If for me the number of specific functions is important, then it is important for me whatever impression you might have about that. For I am the one depending on that, not you.

Ciao,

Nick
Find all posts by this user
Quote this message in a reply
10-06-2014, 05:57 AM
Post: #13
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
If f is an expression, you can get the node operator/function with f[1], and all arguments with f[2], etc., size(f) is the number of args.
Find all posts by this user
Quote this message in a reply
10-06-2014, 06:58 AM
Post: #14
RE: Xcas Syntax / Prime Syntax (in particular computing in Z/pZ)
(10-06-2014 05:57 AM)parisse Wrote:  If f is an expression, you can get the node operator/function with f[1], and all arguments with f[2], etc., size(f) is the number of args.

Great, thanks a lot!

So, having this and also op(f) it seems possible to completely decompose any given expression for manipulating its parts in any thinkable way.

Ciao,

Nick
Find all posts by this user
Quote this message in a reply
Post Reply 




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