Command: Table

NEST HelpDesk Command Index NEST Quick Reference
Name:
Table - Generate an array according to a given function
Synopsis:
[N] {f} Table -> [f(1) ... f(N)]
[N1 N2] {f} Table -> [f(N1) ...f(N2)]
[N1 N2 d] {f} Table -> [ f(N1) f(N1+d) f(N1+2d) ...]
Examples:
[5] {2 mul} Table -> [2 4 6 8 10]
[2 5] {2 mul} Table -> [4 6 8 10]
[1.0 10.0 2.5] {2 mul} Table -> [2.0 7.0 12.0 17.0]
Description:
Table accepts an array which contains either
1) a single integer
2) in interval specified by two integers or two doubles
3) an interval and a stepsize, specified by three integers or
three doubles.
and a procedure object which is to be applied. From the
interval specification an array of numbers is generated, using Range.
The supplied procedure is the applied to each number in the array.
Bugs:
Remarks:
Resembles the function Table of Mathematica
References:
Author:
Gewaltig
SeeAlso:
Source:
/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/mathematica.sli
NEST HelpDesk Command Index NEST Quick Reference

© 2004 The NEST Initiative