It is needed a function called Fold to
apply a Function in the following way:
Fold( f , x0 ,{x1, x2, x3} )
----------------------------
Output:=
f( f( f(x0,x1) , x2) , x3)
Discussion
Anonymous
-
2001-10-21
Logged In: YES
user_id=28981
I attached a Beanshell script for the Fold() function.
Copy this script to your
<settings>/.hartmath/bshscripts
directory.
In the next HartMath release the Fold() function is included
as a built-in function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=28981
I attached a Beanshell script for the Fold() function.
Copy this script to your
<settings>/.hartmath/bshscripts
directory.
In the next HartMath release the Fold() function is included
as a built-in function.
Fold() function as Beanshell script
Logged In: YES
user_id=28981
Added the Fold function to CVS module hartmath2. file:
src\com\hartmath\loadable\EFold.java