Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5593

Need clarification.

From SEJ080003 student <ain_nadrah@siswa.um.edu.my>
Newsgroups comp.soft-sys.math.mathematica
Subject Need clarification.
Date 2011-10-11 08:27 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j70um1$sj$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Need clarification. SEJ080003 student <ain_nadrah@siswa.um.edu.my> - 2011-10-11 08:27 +0000

csiph-web