Reputation
6,439
Next privilege 10,000 Rep.
Access moderator tools
Badges
2 11 73
Impact
~63k people reached

Mar
26
comment Complete definition of special functions in Mathematica
I prefer pressing F1.
Mar
23
comment How to accelerate my code?
@Purboo "I think I need to learn Compile first." - Before that, I suggest you to read the last paragraph of this answer. "Sometimes it is not easy to write code using functions like Apply, Map and Thread. " - Yeah, sometimes, but quite rare in my opinion, in most cases, it's just because you're not familiar enough with the coding style of Mathematica.
Mar
22
comment Coupled non-linear differential equations
@Ricoleto As mentioned above, it's just a result of trial and error. Sadly it seems not to be able to handle Tmax=10, and I haven't think out a corresponding solution yet. I think it might help if you add some background information about your equations to your question. BTW, I just noticed that the b.c. in your code is different from what you claimed in the text i.e. $m(0,t)=m(\pi L,t)=v(0,t)=v(\pi L,t)$, is it intended?
Mar
21
comment Coupled non-linear differential equations
Seems that this hasn't been done yet: Hello, welcome to Mathematica.SE! 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!
Mar
21
comment I have several functions and how I know which one is the maximum in a certain range?
Please post your code instead of the picture so we can test it easily.
Mar
21
comment Protected tag in DSolve
Seems this hasn't been done: Hello, welcome to Mathematica.SE! 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!
Mar
20
comment Solving for flow speed?
"Is there some reason why this approach shouldn't work?" - Because it's a transcendental equation?
Mar
19
comment Very slow mathematica finite differences
@Jinxed When compiled to C, this is probably not true, see this and this for example.
Mar
19
comment Very slow mathematica finite differences
You may find this post interesting.
Mar
19
comment Very slow mathematica finite differences
Since you used C compiler, RuntimeOptions -> "Speed" will speed up the code even more.
Mar
18
comment Numerical integration's speed
@yashar Have you checked your task manager? If matlab doesn't use multi-core then the CPU utilization rate should be quite low.
Mar
18
comment Numerical integration's speed
I wonder what's the output of matlab? Is it still reliable?
Mar
18
comment Numerical integration and plotting
I think you mistyped the definition of fP?
Mar
18
comment Numerical integration and plotting
By saying “plot C as a function P”, do you mean you want to use P as the independent variable of C?
Mar
5
comment Correct use of Solve inside Compile
Compile isn't the catholicon for speed, the core part of your code is just not compilable. Generally Compile only speed up low level arithmetic calculation, see the link @george2079 gave for more details.
Mar
5
comment Performance problem with summation in Mathematica
Can you give a set of valid {a, m1, m2, m3, m4} for test?
Feb
27
comment What boundary is added when NDSolve::bcart pops up?
千金市骨 :) Hope someone can answer this question one day.
Feb
21
comment What boundary is added when NDSolve::bcart pops up?
You mixed up -1 and 1 in your code, right?
Feb
16
comment Dramatic speed difference of code on Matlab and Mathematica
@zjx1805 I believe you'll manage to improve the complete code if you fully understand the answers you got. BTW, See my edit for another 2X speedup.
Feb
15
comment Dramatic speed difference of code on Matlab and Mathematica
@zjx1805 Then what's the timing for my code?