Difference between revisions of "Array.$CELLS()"
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
==Array.$CELLS(Function|Array of Functions[,param1,param2,...]) == | ==Array.$CELLS(Function|Array of Functions[,param1,param2,...]) == | ||
| − | + | Apply a function (first parameter), to cell addresses (last parameter as an array), with all other as parameters, and return the array. | |
| + | |||
| + | <pre> | ||
| + | a=|4|.fillwith(1..100); | ||
| + | |||
| + | a.$CELLS(SIN,[0,1,2,2]) | ||
| + | </pre> | ||
| + | <pre> | ||
| + | 1 0.9092974268256817 0.1411200080598672 4 | ||
| + | |||
| + | 5 -0.27941549819892586 0.6569865987187891 8 | ||
| + | |||
| + | 9 10 11 12 | ||
| + | |||
| + | 13 14 15 16 | ||
| + | </pre> | ||
Latest revision as of 10:30, 4 February 2020
Array.$CELLS(Function|Array of Functions[,param1,param2,...])
Apply a function (first parameter), to cell addresses (last parameter as an array), with all other as parameters, and return the array.
a=|4|.fillwith(1..100); a.$CELLS(SIN,[0,1,2,2])
1 0.9092974268256817 0.1411200080598672 4 5 -0.27941549819892586 0.6569865987187891 8 9 10 11 12 13 14 15 16