MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problem with With


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?



  • Prev by Date: Re: Improper Integral & Mathematica
  • Next by Date: Bookmarks manager for the Documentation Center [DC]?
  • Previous by thread: Re: subscripted local variables?
  • Next by thread: Re: Problem with With