Problem with With
- To: mathgroup at smc.vnet.net
- Subject: [mg80630] Problem with With
- From: Miguel <misvrne at gmail.com>
- Date: Sun, 26 Aug 2007 23:26:37 -0400 (EDT)
Let the matrix M={{Cos[alfa], -Sin[alfa], 0},{Sin[alfa], Cos[alfa],
0}, {0, 0, 1}}.
In[]:
With[{alfa=45=BA}, M]
Out[]:
Out[]: {{Cos[alfa], -Sin[alfa], 0},{Sin[alfa], Cos[alfa], 0}, {0, 0,
1}}
Mathematica does'nt evaluate the matrix.
But
In[]:
{{Cos[alfa], -Sin[alfa], 0},{Sin[alfa], Cos[alfa], 0}, {0, 0,
1}}/.alfa->45=BA
works fine.
Any idea?