exec

EXEC()                                                                  EXEC()



 6 "IRIT Version 8.0"

NAME
       EXEC



        EXEC( StringType Command );

       Executes string Command in the IRIT interepreter, indirectly.

       Example:

           Univariate2Bezier = function( Polynom, Deg ): x: f:
           return = nil():
           f = 1:
           for ( x = 0, 0.05 / Deg, 1,
               EXEC( "f = " + Polynom ):
               snoc( ctlpt( E1, f ), return ) ):
           return = coerce( cinterp( return, Deg + 1, Deg + 1, PARAM_UNIFORM,
       FALSE ),
                            bezier_type );

       defines a function that converts univariate expressions into explicit,
       E1, Bezier curves.  For example "Univariate2Bezier( "3 * x verb-^- 2 -
       2 * x + 5", 3 );" would return a cubic Bezier curve representing "3 * x
       verb-^- 2 - 2 * x + 5".



                                                                        EXEC()