Menu

#3 Fold Function required

closed
None
5
2001-10-21
2001-10-20
Anonymous
No

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

    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.

     
  • Anonymous

    Anonymous - 2001-10-21

    Fold() function as Beanshell script

     
  • Anonymous

    Anonymous - 2001-10-21
    • assigned_to: nobody --> khartlage
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2001-10-21

    Logged In: YES
    user_id=28981

    Added the Fold function to CVS module hartmath2. file:
    src\com\hartmath\loadable\EFold.java

     

Log in to post a comment.