4,614 reputation
2949
bio website
location China
age
visits member for 2 years, 3 months
seen yesterday

Feel free to correct the grammar mistakes in my posts.


1d
comment NDSolve and strange “nonlinear coefficients problem”
As to the last question, have a look at this and this.
1d
comment Having difficulty with NDSolve
possible duplicate of Solving System of Nonlinear with Three Differential Equations
Nov
20
awarded  Custodian
Nov
20
reviewed Close Why does LyapunovSolve solve non-standard form?
Nov
20
reviewed Close Where can I learn to use mathematica comprehensively?
Nov
20
comment NDSolve and strange “nonlinear coefficients problem”
Using Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", "MaxPoints" -> 151, "MinPoints" -> 151, "DifferenceOrder" -> "Pseudospectral"}} in SIM1 also leads to the u[x, t] = x solution.
Nov
20
comment Maxwell propagator problem 2D
I've also used 1D/2D FDTD code as example in many of my questions, for example this, you can have a look.
Nov
20
comment 1/2D FDTD problem
@MariusLadegårdMeyer is right, though the code contains improper Compile usage. Using fdtd[[2]] instead of hx in ListPlot will give you the desired result.
Nov
20
revised How to get a more compact form of this probability calculation?
deleted 32 characters in body
Nov
20
revised How to get a more compact form of this probability calculation?
deleted 14 characters in body
Nov
20
comment Maxwell propagator problem 2D
And you have mistakenly used Dot as Times, moreover, how can you "implemented only the first equation for Hy"? FDTD is a leap-frog finite difference scheme! You need to first understand what FDTD is before programming. To learn FDTD, you can read this book.
Nov
20
comment How to get a more compact form of this probability calculation?
@hengxin It's OK to wait 24 hours or even longer before accepting so your question may attract better answers :) . I added a ErlangDistribution approach, have a look.
Nov
20
revised How to get a more compact form of this probability calculation?
added 716 characters in body
Nov
17
comment How to get a more compact form of this probability calculation?
Network is a bit slow today. See my answer.
Nov
17
answered How to get a more compact form of this probability calculation?
Nov
17
comment How to get a more compact form of this probability calculation?
I think your program is wrong. In your program, a3 and a4, s4 and s5 are independent, but actually they're not, a3 is part of a4, s4 is part of s5!
Nov
17
comment How to solve this probability symbolically or numerically?
@hengxin You can use FindSequenceFunction: FindSequenceFunction[Table[(μ^m (2 λ + μ))/(2^(m + 1) (λ + μ)^(m + 1)), {m, 5}], m]
Nov
15
comment Calculating integral by Romberg Algorithm
I'm not surprised that @DanielLichtblau is confused. It'll be better to keep your original code in the question.
Nov
15
comment Calculating integral by Romberg Algorithm
@ShutaoTang Oh, I should have read the document of Flatten more carefully. Thanks for pointing out.
Nov
15
revised Calculating integral by Romberg Algorithm
deleted 24 characters in body