Re: Plus[listOfReal__]=1.
- To: mathgroup at smc.vnet.net
- Subject: [mg21348] Re: [mg21314] [mg21202] Plus[listOfReal__]=1.
- From: "Pascal BAES" <pascal.baes at skynet.be>
- Date: Tue, 28 Dec 1999 01:47:20 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
TheQuestionWas: Plus[mylistOfReal__List]=1.? In[1]:= n=10(*for exemple*); lili=Sort[Flatten[{0.,Table[Random[Real,{0,1}],{n}],1.}]] Out[1]= {0.,0.00272209,0.0755838,0.369115,0.385011,0.457089,0.630669,0.697763, 0.709775,0.791473,0.826874,1.} Answer: In[2]:= li2=Plus[-#1,#2]&@@#&/@Partition[lili,2,1] Out[2]= {0.00272209,0.0728617,0.293532,0.0158955,0.0720782,0.17358,0.0670942, 0.0120116,0.0816981,0.0354011,0.173126} Verif: In[3]:= Plus@@li2 Out[3]= 1. It's Seems "simplicime"!? or Quest is other? "_Le monde nous a ete donne comme enigmatique et inintelligible, et la tache de la pensee est de le rendre, si possible, encore plus enigmatique et inintelligible." Jean Beaudrillard said...