Difference between revisions of "ZCubes/Array of Functions"

From ZCubes Wiki
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...")
 
 
(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]
  
  
<<[[Learn_ZCubes | Learn ZCubes ]]
+
 
 +
<br/>
 +
*[[Z3 | Z3 home]]
 +
*[[Z^3 Language Documentation]]
 +
*[[ZCubes_Videos | ZCubes Videos and Tutorials]]
 +
*[[Main_Page | About ZCubes ]]
 +
<br/>
 
<br/>
 
<br/>
&copy; Copyright 1996-2020, ZCubes, Inc.
+
&copy; Copyright 1996-2021, ZCubes, Inc.

Latest revision as of 01: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


Array of Functions














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.