如何获得所需订单的清单 [英] How can I get a list of desired order
问题描述
我有两个变量L,m,使得
L =,0 => m = 0
L = 1 => m = -1,0,1
L = 2 => m = -2,-1,0,1 ,2 $ / b $ b(对于L的每个值,m从-L到+ L,增量为1)
现在我想要生成包含订单的列表,例如
list = {{0,0},{1,0},{2,0},{1,-1},{2,-1},{ 1,1},{2,1},{2,-2},{2,2}} //
// m的所有值为m = 0
所有L值为m = -1
所有L值为m = 1
所有L值为m = -2
所有L的值为m = 2
此列表的代码应该是什么?在文本
I have the two variables L,m such that
L=,0 => m=0
L=1 =>m=-1,0,1
L=2 =>m = -2,-1,0,1,2
(for each value of L, m is from -L to +L with increment 1)
now I want to generate a list with the order like
list= {{0,0},{1,0},{2,0},{1,-1},{2,-1},{1,1},{2,1},{2,-2},{2,2}}//
//all values of L for m=0
all values of L for m=-1
all values of L for m=1
all values of L for m=-2
all values of L for m=2
What should be the code for this list? kindly help and sorry for mistake in the text
推荐答案
这篇关于如何获得所需订单的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!