1,350 reputation
421
bio website
location
age
visits member for 1 year, 10 months
seen 13 hours ago

Jul
17
asked Mathematica 10 doesn't support path containing Chinese characters
Jul
7
comment Defining a function that differentiates another function with rule replacement
I found this works: hh[i_][x_, y_] := {{tt, x + Sin[x]}, {y, 1}} /. rulelist[[i]]; hhpar[x_, y_, i_] := Derivative[1, 0, 0][hh[i][#1, #2] &][x, y]; While this not works: hh[x_, y_, i_] := {{tt, x + Sin[x]}, {y, 1}} /. rulelist[[i]]; hhpar[x_, y_, i_] := Derivative[1, 0, 0][hh[#1, #2, i] &][x, y];
Jul
7
comment Defining a function that differentiates another function with rule replacement
Thank you very much!
Jul
7
comment Defining a function that differentiates another function with rule replacement
And I forgot what this kind of function definition hhpar[j_, k_][x_, y_, i_] is called? Could you show me a link which has a discussion on this kind of function definition?
Jul
7
comment Defining a function that differentiates another function with rule replacement
Thank you, m_goldberg. Your definition really works, but I don't understand why my definition gives wrong answer. Could you explain a little? I think I miss a lesson on function definition.
Jul
7
revised Defining a function that differentiates another function with rule replacement
added 80 characters in body
Jul
7
awarded  Nice Question
Jul
6
comment Defining a function that differentiates another function with rule replacement
@eldo Thank you, eldo! But it doesn't work.
Jul
6
asked Defining a function that differentiates another function with rule replacement
Jul
6
comment How can I avoid a scoping problem when differentiating?
@Szabolcs Wow! So quick! Thank you very much! This works, and I thought I known the reason, but it terms out that I actually didn't know the true reason is x at that time.
Jul
6
asked How can I avoid a scoping problem when differentiating?
Jul
2
awarded  Inquisitive
Jul
2
awarded  Curious
Jun
26
comment How to get correct numerical integration which should be zero?
Thank you very much! AccuracyGoal works perfectly
Jun
26
accepted How to get correct numerical integration which should be zero?
Jun
26
asked How to get correct numerical integration which should be zero?
Jun
26
accepted Strange numerical integration result
Jun
26
comment Strange numerical integration result
Thank you very much! Trace is so useful!
Jun
26
comment Strange numerical integration result
What is more, the integration of berrycur is rather slow, it tooks me 40 seconds to give result 12.5664. Do you know how to speed it up?
Jun
26
comment Strange numerical integration result
Hi, MikeLimaOscar! Great explanation! How did you come up with the idea to test Integrate[berrycur[x, y][[1]], x, y]? This explains the unreasonable result. But I still want to know why Integrate gives (x^2 y)/2??? It seems that (x^2 y)/2 is the integration of x y in terms of x.