# mathematica result problem

Printable View

• Nov 20th 2010, 09:12 AM
yosso
mathematica result problem
Hi.
I have following problem:

In some calculations I use an interpolation such like this:

li=Interpolation[{{0,0},{1,1},{2,2},{3,3},{4,4},{5,5},{6,6},{7,5},{ 8,4},{9,3},{10,2},{11,1},{12,0}},PeriodicInterpola tion->True,InterpolationOrder->1]

I use it to simplify results of matrix operations, for example Kronecker Product of matrices like this

$
A=\left(
\begin{array}{cc}
2 & 5 \\
0 & 3
\end{array}
\right)

B=\left(
\begin{array}{cc}
4 & 6 \\
3 & 1
\end{array}
\right)
$

is "Kab = KroneckerProduct[A, B]":

$

\left(
\begin{array}{cccc}
8 & 12 & 20 & 30 \\
6 & 2 & 15 & 5 \\
0 & 0 & 12 & 18 \\
0 & 0 & 9 & 3
\end{array}
\right)
$

but I prefer to simplify it with interpolating function shown above to "[li[Kab]]"

$
\left(
\begin{array}{cccc}
4 & 0 & 4 & 6 \\
6 & 2 & 3 & 5 \\
0 & 0 & 0 & 6 \\
0 & 0 & 3 & 3
\end{array}
\right)
$

So, the problem appears when I try to use matrices like this:

$
A=\left(
\begin{array}{cc}
2 & 5 \\
0 & i
\end{array}
\right)
$

The result is as follows:

$
\left(
\begin{array}{cccc}
4 & 0 & 4 & 6 \\
6 & 2 & 3 & 5 \\
0 & 0 & \text{InterpolatingFunction}[\{\{0,12\}\},<>][4 i] & \text{InterpolatingFunction}[\{\{0,12\}\},<>][6 i] \\
0 & 0 & \text{InterpolatingFunction}[\{\{0,12\}\},<>][3 i] & \text{InterpolatingFunction}[\{\{0,12\}\},<>][i]
\end{array}
\right)
$

Is there a possibility to change a way of interpretation of symbol "I"? So, to obtain a result without information "InterpolatingFunction", etc...:

And so, could I change it for all symbols, like "x", "a", etc.?

Thanks for all help.