Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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?



  • 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