Difference between revisions of "ZCubes/Array of Functions"
Jump to navigation
Jump to search
(Created page with "==Array of Functions== <br/> You can create an array of functions in ZCubes, and execute these functions for a set of data. The video explains the ArrayFunc function and also...") |
(→Code) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
+ | ==Code== | ||
+ | a:=x^2; | ||
+ | g:= s*t; | ||
+ | c:= r*2+t*5; | ||
+ | ArrayFunc=[a,g,c]; | ||
+ | ArrayFunc[1](2,3); | ||
+ | a⩨;g⩨;c⩨; | ||
+ | ArrayFunc@[1..10,3..12] | ||
− | < | + | |
+ | <br/> | ||
+ | *[[Z3 | Z3 home]] | ||
+ | *[[Z^3 Language Documentation]] | ||
+ | *[[ZCubes_Videos | ZCubes Videos and Tutorials]] | ||
+ | *[[Main_Page | About ZCubes ]] | ||
+ | <br/> | ||
<br/> | <br/> | ||
− | © Copyright 1996- | + | © Copyright 1996-2021, ZCubes, Inc. |
Latest revision as of 00:25, 11 March 2021
Array of Functions
You can create an array of functions in ZCubes, and execute these functions for a set of data. The video explains the ArrayFunc function and also to arrayfy functions to be able to process array of values.
Video
Code
a:=x^2; g:= s*t; c:= r*2+t*5; ArrayFunc=[a,g,c]; ArrayFunc[1](2,3); a⩨;g⩨;c⩨; ArrayFunc@[1..10,3..12]
© Copyright 1996-2021, ZCubes, Inc.