400 reputation
19
bio website
location China
age
visits member for 2 years, 1 month
seen Nov 13 at 2:08

impatient old boy


Nov
13
accepted Customize your FrameTicks in a MATLAB way
Sep
24
awarded  Autobiographer
Jan
29
awarded  Critic
Dec
25
comment Is it Possible to change dashes into circles with Plot command?
An easy way is to use ListPlot with PlotMarker. For example, ListPlot[Array[{#1, Cos[#1]} &, 200, {0., 4 Pi }], PlotMarkers -> Graphics[{Red, Circle[]}, ImageSize -> 10], PlotRange -> All],however, it violates your demand to use Plot command.
Nov
25
awarded  Yearling
Jun
24
comment Returning an unevaluated expression with values substituted in
I have modified it by replacing HoldForm into Defer.
Jun
24
revised Returning an unevaluated expression with values substituted in
deleted 3 characters in body
Jun
24
comment Returning an unevaluated expression with values substituted in
Thanks!@Mr.Wizard The function Defer is really amazing. It is like HoldForm with ReleaseHold command if copy & paste it.
Jun
23
comment Returning an unevaluated expression with values substituted in
@rm -rf Thanks!
Jun
23
answered Returning an unevaluated expression with values substituted in
Jun
23
comment Have I found a big difference between using the short form and the long form of a pure function?
And impressed by Evaluate[ ]. It totally destroys the sequence of rules transformation held by HoldAll attributes. Simply regard the output form of Evaluate[ ] as Head's argument.
Jun
23
comment Have I found a big difference between using the short form and the long form of a pure function?
Thanks again! StackOverflow seems to be a melting pot for Computer-Language-based problems.
Jun
23
accepted Have I found a big difference between using the short form and the long form of a pure function?
Jun
23
awarded  Commentator
Jun
23
comment Have I found a big difference between using the short form and the long form of a pure function?
Thanks@Mr.Wizard. I wonder how can these undocumented syntax be learned. I am a noob learning from Leonid's note and the built-in documentation. This is the knowledge that I can learn so far. BTW, SE is a good university for learning.
Jun
22
comment Have I found a big difference between using the short form and the long form of a pure function?
Thanks! I also noticed # and & form cannot be easily nested without applying the functionality from With. In the example you mentioned<stackoverflow.com/questions/4920194/using-nested-slots>;, I hope With[{x = #1}, Array[#1^#2 == x &, {x, x}]] & will be an answer.
Jun
22
comment Have I found a big difference between using the short form and the long form of a pure function?
@rm-rf Thanks! Function [x, {##2 & @@ x}]@f[x1, x2, x3, x4] works, although the key to give expected result is due to ##2 & again. BTW, can I reproduce the result by only applying the Function[] form?
Jun
22
revised Have I found a big difference between using the short form and the long form of a pure function?
deleted 1 characters in body; edited title
Jun
22
asked Have I found a big difference between using the short form and the long form of a pure function?
Apr
27
comment Injecting a sequence of expressions into a held expression
Sorry, I haven't noticed that. How to delete this post? Sorry for making duplicate answer.