4,904 reputation
2954
bio website
location China
age
visits member for 2 years, 4 months
seen 11 hours ago

Feel free to correct the grammar mistakes in my posts.


14h
comment The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?
BTW, please don't use "bugs" tag until the community has confirmed it.
14h
comment The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?
Hello, welcome! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
14h
reviewed Reviewed The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?
14h
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
15h
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.)
18h
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.)
18h
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