MathGroup Archive 2006

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

Search the Archive

sparsearray and random

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71442] sparsearray and random
  • From: Arkadiusz.Majka at gmail.com
  • Date: Sat, 18 Nov 2006 04:41:12 -0500 (EST)

Hi,

Why this:

a = Random[Integer, {3, 7}]
Normal[SparseArray[(i_ /; 3 â?¤ i â?¤ a) -> p, 10]]

is not the same as this:

Normal[SparseArray[(i_ /; 3 â?¤ i â?¤Random[Integer, {3, 7}] ) -> p,
10]]


Thx,

Arek


  • Prev by Date: simple question
  • Next by Date: Limit of Infinitely Nested Expression
  • Previous by thread: simple question
  • Next by thread: Re: sparsearray and random