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

Re: problems with delayed write: tag list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79883] Re: problems with delayed write: tag list
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 8 Aug 2007 04:44:49 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f991i3$c99$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

first you should change
 > i=1;myDiff==5;

into

 > i=1;myDiff=5;

Regards
   Jens


P_ter wrote:
> Hello,
> I have a list of elements of two numbers:myList = {{1,2},{2,7},..}. The first number is in this case always the position. I want to know when the difference is a certain value,myDiff, eg. 5
> i=1;myDiff==5;
> now= Reap[While[i<Length[myList],i++;
>        If[myList[[i,2]]-myList[[i,1]]==myDiff,Sow[i]]];w]
> My question is: how do I make "nowFunction[myDiff_]:="? 
> I run into tag list errors in the definition when I try that.
> P_ter
> 


  • Prev by Date: why DateListPlot is so slow?
  • Next by Date: Re: problems with delayed write: tag list
  • Previous by thread: problems with delayed write: tag list
  • Next by thread: Re: problems with delayed write: tag list