syntax flexibility (programming) of xcas on HP-Prime
|
02-08-2019, 09:23 PM
(This post was last modified: 02-09-2019 02:01 PM by compsystems.)
Post: #1
|
|||
|
|||
syntax flexibility (programming) of xcas on HP-Prime
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. |
|||
02-09-2019, 01:39 PM
Post: #2
|
|||
|
|||
RE: syntax flexibility (programming) of xcas on HP-Prime
Another example for IF-THEN-ELSE-END
PHP Code: function AgeVote( ) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)