![]() |
syntax flexibility (programming) of xcas on HP-Prime - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: syntax flexibility (programming) of xcas on HP-Prime (/thread-12383.html) |
syntax flexibility (programming) of xcas on HP-Prime - compsystems - 02-08-2019 09:23 PM Hello, HP-Prime users, the syntax flexibility of xcas makes you like it a lot, some users according to the context they like, at the beginning and at the end of the blocks with symbols {...}, others in a more explicit way is to say for example to define a function with words, Func..EndFunc According to the following set of definitions, Xcas supports 8 different ways to define a function, it is not governed by a particular style, of course the compilation is done in ~ c++ PHP Code: /// c++ style result of compilation PHP Code: nameFunction test f1(3); f2(3); f3(3); f4(3); f5(3); f6(3); ClrIO [enter] returns 15, 15, 15, 15, 15, 15 test online Different ways to define a function. RE: syntax flexibility (programming) of xcas on HP-Prime - compsystems - 02-09-2019 01:39 PM Another example for IF-THEN-ELSE-END PHP Code: function AgeVote( ) |