(correction) Re: Please Help
- To: mathgroup at smc.vnet.net
- Subject: [mg4166] (correction) Re: [mg4093] Please Help
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Sat, 8 Jun 1996 13:25:39 -0400
- Sender: owner-wri-mathgroup at wolfram.com
There is a typing error in my previous posting in reply to [mg4093]
Please Help:
In the second coding it should be
temp = {{0,0},{1,0},{-1,0},{0,1},{0,-1},{1,1},{1,-1},{-1,1},{-1,-1}}
Not
temp = {{0,0},{1,0},{-1,0},{0,1},{0,-1},{1,1},{-1,1},{-1,1},{-1,-1}}
The likelihood of error might be reduced by using
temp = temp = Flatten[Outer[List,{-1,0,1},{-1,0,1}],1]
Allan Hayes
hay at haystack.demon.co.uk
==== [MESSAGE SEPARATOR] ====