Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to display a function with the values of the variables?

For the generation of worksheets I need to know, if its possible to show a function with the assigned values? What could be a process to do that?

My hope is to generate a output like: (lamda_z,s_k) |--> lambda_z * s_k = 5 * 4 = 20

\begin{sagesilent}
tension (lambda_z, s_k) = lambda_z * s_k
lambda_za = 5
s_ka = 4

\end{sagesilent}
$ \sage {tension (lambda_za, s_ka)}$
\end{document}

thank you

click to hide/show revision 2
retagged

How to display a function with the values of the variables?

For the generation of worksheets I need to know, if its possible to show a function with the assigned values? What could be a process to do that?

My hope is to generate a output like: (lamda_z,s_k) |--> lambda_z * s_k = 5 * 4 = 20

\begin{sagesilent}
tension (lambda_z, s_k) = lambda_z * s_k
lambda_za = 5
s_ka = 4

\end{sagesilent}
$ \sage {tension (lambda_za, s_ka)}$
\end{document}

thank you