Command: ExecFunction

NEST HelpDesk Command Index NEST Quick Reference

Name:
 ExecFunction - immediately execute a pure function with named arguments
Synopsis:
   {proc} literal_1 ... literal_n ExecFunction -> val
   string literal_1 ... literal_n ExecFunction -> val

Description:
  ExecFunction is equivalent to the sequence
  Function exec
Examples:
 2   {x 1 x add mul} /x    ExecFunction --> 6
 2 3 {x 1 x add mul} /x /y ExecFunction --> 6
 2 3 {x y x add mul} /x /y ExecFunction --> 10
 2 3   ( x*(y+x) )   /x /y ExecFunction --> 10

Version: 090304
Author:
 Diesmann
SeeAlso:Function CompileMath Inline
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/mathematica.sli

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative