\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 = 
  <double>  - size: [1 1]
 9  
--> a(i)
ans = 
  <complex>  - size: [1 1]
  -1+  0 i  

\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 = 
  <double>  - size: [1 1]
 -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 = 
  <double>  - size: [1 1]
 1.020574461395797  

\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 = 
  <double>  - size: [1 1]
 6.123031769111886e-17  

\end{verbatim}
