摘要: 2 x == 0,it is perfectly clear that the only possible solution is x->0.However, if you havean equation like a a x == 0.things are not so clear,If the a is not equal to zero, then x->0. is again the only answer.If a is in fact equal to zero,then any value of x is a solution, You can see this by 阅读全文
posted @ 2012-06-26 13:20 geometry_ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: f[x_]=x^2+1f[x]=x^2+1--------------------------------------f[x_]:=x^2+1***************************The differences of the two is the previous is evaluate firstThat is the RHS is evaluate first then assign it the LHSbut the later assignment is lazy which is say the equation isevaluate when at the spec 阅读全文
posted @ 2012-06-26 13:07 geometry_ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Apply @@Map @Thread Transpose special usage1 txrandommin = 0;2 txrandommax = 5;3 randomxlist = Range[txrandommin - 1, txrandommax];4 randomylist = BinCounts[5 RandomInteger[txrandommax, 1000000], 6 {txrandommin - 1, txrandommax + 1, 1}];7 Transpose[{randomxlist, randomylist}];8 ListPlot[Transpose[.. 阅读全文
posted @ 2012-06-26 10:45 geometry_ 阅读(98) 评论(0) 推荐(0) 编辑