55,982 reputation
5136324
bio website
location ND
age 31
visits member for 2 years, 6 months
seen 3 hours ago

contact details

Visit Mathematica.SE


Jul
27
comment Can NDSolve handle discountinuos data?
it's also possible to just make a numerical black box out of UnitBox, as in f[x_?NumericQ] := UnitBox[(x - 0.5) 0.5/0.2]. Then it works. But I'd like to understand why Mathematica thinks that it shouldn't attempt solving this equation when it knows that there are variables taking discrete values.
Jul
27
comment Can NDSolve handle discountinuos data?
This is relevant: reference.wolfram.com/language/ref/DiscreteVariables.html
Jul
27
answered Can NDSolve handle discountinuos data?
Jul
27
awarded  Popular Question
Jul
27
revised Providing a color function for ListPointPlot3D
added 44 characters in body
Jul
27
comment Providing a color function for ListPointPlot3D
Fair enough, removed that remark. And +1 :)
Jul
27
awarded  plotting
Jul
27
awarded  Socratic
Jul
26
comment Partial Differential Equation in Parallel
Calling it "useless" is unfair. You get great convenience from Mathematica at the price of performance. If you solve the same in C or Fortran, you'll gain much more performance than parallelization would give you in Mathematica. Use the right tool for the problem.
Jul
26
revised Providing a color function for ListPointPlot3D
deleted 8 characters in body
Jul
26
revised Providing a color function for ListPointPlot3D
edited tags
Jul
26
answered Providing a color function for ListPointPlot3D
Jul
26
comment Converting a nested for loop from MATLAB
@blochwave That's why I don't like to translate code I don't understand. For relatively simple code like this it's usually easier to understand the problem first, then re-implement it, than to blindly translate an algorithm when we don't know where it comes from. Maybe the starting index of 0 makes sense for the physics (?) problem the code is solving.
Jul
26
revised Converting a nested for loop from MATLAB
added 173 characters in body
Jul
26
answered Converting a nested for loop from MATLAB
Jul
26
comment Converting a nested for loop from MATLAB
Never use For unless you know you need For. Do gives you the same in a more readable and safer (localized iteraror) manner. As a first step, I'd translate the code as is using Do and would only think about using alternatives later.
Jul
26
revised Fast method to select matrix elements based on a vector of positions
added 6 characters in body
Jul
26
revised Deploying to the Cloud for Public Access
added 18 characters in body
Jul
26
answered Conditions in SparseArray
Jul
26
awarded  Nice Question