5,586 reputation
2968
bio website
location China
age
visits member for 2 years, 8 months
seen 7 hours ago

Feel free to correct the grammar mistakes and unidiomatic expressions in my posts.

Can we improve the quality of posts with tag differential-equations?


Dec
22
revised The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?
delete the bug tag, and add the original post
Dec
22
comment InverseFourierTransform of simple function takes forever
@Hugh Just tried your code. The answer seems to be incorrect. (The correct one is given by bbgodfrey in the answer below.)
Dec
22
comment Compiling If statement
And though not well documented, the multiple issues have been well discussed in this site actually. I really suggest you to have a look at those posts tagged with "compile" first. You may also interested in this page, though it's based on v4, the 6 principles mentioned therein are still valid today. (The only difference might be that the number of compiliable functions has increased a little. Also see here for an up-to-date list.)
Dec
22
comment Compile a Module wich has a loop with undetermined bound
@yashar As mentioned by Michael E2 above, that's mainly because Tr isn't compiled. Something like test[int_] := Module[{m}, m = Table[i, {i, 1, 2 int}]; Do[m[[i]] = i*i, {i, 1, int}]; Return[m]] and test3[10^4]; // AbsoluteTiming is enough to show the difference.
Dec
18
answered Compile a Module wich has a loop with undetermined bound
Dec
18
comment Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?
This seems not to work, at least on v8.0.4, vista 32bit.
Dec
18
comment Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?
Quite interesting. The reason is exactly your special setting $CompilationTarget = "C", and the problem won't appear if CompilationTarget -> "C" is used! Don't why though……BTW, the solution from @Szabolcs also works.
Dec
17
revised pde wiki excerpt
added 157 characters in body
Dec
17
revised difference-equations wiki excerpt
added 112 characters in body
Dec
17
revised fem wiki excerpt
added 129 characters in body
Dec
17
reviewed Leave Open Derivative of Vectoral NDSolve Interpolated Function / Rule Solutions,/., and Vector NDSolve
Dec
17
wiki created pde excerpt
Dec
17
suggested approved edit on pde tag wiki excerpt
Dec
17
wiki created fem excerpt
Dec
17
suggested approved edit on fem tag wiki excerpt
Dec
17
wiki created difference-equations excerpt
Dec
17
suggested approved edit on difference-equations tag wiki excerpt
Dec
17
comment Derivative of Vectoral NDSolve Interpolated Function / Rule Solutions,/., and Vector NDSolve
Well, I'm afraid this doesn't solve OP's problem. The true reason is that the mm outputs a list while it is one InterpolatingFunction, so list manipulations like First, Most etc. won't work anymore!
Dec
17
reviewed Reviewed Using If statement for more than two cases
Dec
17
revised Using If statement for more than two cases
added 54 characters in body; edited tags; edited title