Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Need clarification.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122060] Need clarification.
  • From: SEJ080003 student <ain_nadrah at siswa.um.edu.my>
  • Date: Tue, 11 Oct 2011 04:24:18 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

loc = FixedPoint[#1 + {{1, 0}, {0, 1}, {-1, 0}, {0, -1}}
[[Random[Integer, {1, 4}]]] &,
        (Round[rad {Cos[#1], Sin[#1]}] &)
        [Random[Real, {0, N[2 \[Pi]]}]],


 SameTest -> (Plus @@ (#2^2) > (rad + s)^2 || occupiedSites \
[Intersection] (Function[y,y + #2] /@ {{1, 0}, {0, 1}, {-1,0}, {0,
-1}}) != {} &)];



Hi,
I want to do the calculation manually so I would like to confirm if my
understanding is correct. From what I understood, to get "loc", I have
to first solve the 3rd line to obtain the argument, #1 for the 2nd
line. Then solve the 2nd line to obtain the argument, #1 for the 1st
line. Is it correct?

Plus, what is the use of SameTest? Can someone elaborate? Does it
produce a value?? or just TRUE or FALSE? How do I get #2??

Please help. Thank you.
-Ain



  • Prev by Date: NDSolve confusion
  • Next by Date: Parameter replacement with known parameters
  • Previous by thread: NDSolve confusion
  • Next by thread: Parameter replacement with known parameters