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...") |
(→Video) |
||
Line 7: | Line 7: | ||
{{#ev:youtube|2rRqrEGwp8g|480|left|Array of Functions}} | {{#ev:youtube|2rRqrEGwp8g|480|left|Array of Functions}} | ||
<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] | ||
Revision as of 04:37, 18 May 2020
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]
<< Learn ZCubes
© Copyright 1996-2020, ZCubes, Inc.