Difference between revisions of "Array Indices and XY Functions"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
Line 5: Line 5:
 
These functions operate on array locations and values to create contours and other interesting operations.
 
These functions operate on array locations and values to create contours and other interesting operations.
  
==Array.indices(Function,SubtractByArray,ScaleByArray,DoNotShowIndices,RowArray) ==
+
[[Array.indices()]]
 
 
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 ]
 
]
 
]
 

Revision as of 10:38, 6 March 2017

These functions operate on array locations and values to create contours and other interesting operations.

Array.indices()