Hi all,
I'm trying to find a way to define my tex output and then use it in a
function. Needless to say, I'm running into trouble or you wouldn't be
reading this.
Consider the session below where I define an tex output string for y.
In my mind, it is not used correctly when I define y as a function.
-----------
(%i1) texput(y,y_1)$
(%i2) tex(y)$
$$y_1$$
(%i3) tex(define(y(x),m*x+b))$
\begin{verbatim}
y(x):=m*x+b;
\end{verbatim}
(%i4) tex(y)$
\begin{verbatim}
$ y(x):=m*x+b;
\end{verbatim}
(%i5) tex(y(x))$
$$m\,x+b$$
(%i6) tex('y(x)=y(x))$
$$y\left(x\right)=m\,x+b$$
----------
In my mind, the output of %i4 (and maybe %i3) should read:
$$y_1\left(x\right):=m\,x+b$$
The output of %i6 should read:
$$y_1\left(x\right)=m\,x+b$$
Perhaps this is a feature not a bug. Is there a reason the outputs are
as they are? Is there a way I can force the behavior that I expect?
Thanks in advance,
Pete