\section{INLINE Construct Inline Function}

\subsection{Usage}

Constructs an inline function object.  The syntax for its use is
either
\begin{verbatim}
   y = inline(expr)
\end{verbatim}
which uses the \verb|symvar| function to identify the variables in the
expression, or the explicit form
\begin{verbatim}
   y = inline(expr,var1,var2,...,varn)
\end{verbatim}
where the variables are explicitly given.  Note that inline functions
are only partially supported in FreeMat.  If you need features of the
inline function that are not currently implemented, please file a
feature request at the FreeMat website.
\subsection{Example}

Here we construct an inline expression using the autodetection 
of \verb|symvar|
\begin{verbatim}
--> a = inline('x^2')

a = 
  inline function object
  f(x) = x^2
--> a(3)

ans = 

 9 

--> a(i)

ans = 

   -1.0000 +  0.0000i 


\end{verbatim}
In this case, we have multiple arguments (again, autodetected)
\begin{verbatim}
--> a = inline('x+y-cos(x+y)')

a = 
  inline function object
  f(x,y) = x+y-cos(x+y)
--> a(pi,-pi)

ans = 

 -1 


\end{verbatim}
In this form, we specify which arguments we want to use (thereby
also specifying the order of the arguments
\begin{verbatim}
--> a = inline('x+t-sin(x)','x','t')

a = 
  inline function object
  f(x,t) = x+t-sin(x)
--> a(0.5,1)

ans = 

    1.0206 


\end{verbatim}
Inline objects can also be used with \verb|feval|
\begin{verbatim}
--> a = inline('cos(t)')

a = 
  inline function object
  f(t) = cos(t)
--> feval(a,pi/2)

ans = 

 6.1230e-17 


\end{verbatim}
