Array Indices and XY Functions
Revision as of 10:35, 6 March 2017 by Joseph (talk | contribs) (Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
These functions operate on array locations and values to create contours and other interesting operations.
Array.indices(Function,SubtractByArray,ScaleByArray,DoNotShowIndices,RowArray)
Returns the result of applying the Function/FunctionSet to each x,y location of the array, then subtracts and scales the results with SubtractByArray and ScaleByArray. DoNotShowIndices suppresses the x,y indices when outputting the result.
[1,2,3].indices(SIN).print()
[ [ [0,0 ] ],
[ [1,0.8414709848078965 ] ],
[ [2,0.9092974268256817 ] ] ]