Reputation
9,630
Next privilege 10,000 Rep.
Access moderator tools
Badges
2 21 86
Newest
 Necromancer
Impact
~108k people reached

Jan
16
revised How to do this Function with compile
added 4 characters in body
Jan
16
answered How to do this Function with compile
Jan
16
comment How to do this Function with compile
Is the length of sublists of l1 and l2 always 2?
Jan
16
comment Solving Coupled Differential Equation to Get Smooth Asymptotic Solution
What do you mean by saying "I have tried to get the solution to be smoothly asymptotic to zero at infinity, but I can't get that", in my view the resulting graph already meets this standard.
Jan
16
comment Trouble with shooting method for a 4th-order stiff ODE
I think it's just the nature of your equation: Some choices of {a, b} can't lead to a solution extending to infinity. Just observe this: mid = sol[0.6, 0.6]; {{lb, rb}} = mid["Domain"]; Plot[mid[t], {t, lb, rb}, PlotRange -> All]
Jan
16
comment Heat convection differential equations from 1952 - Mathematica “fails to converge”
Approximating max with 50 seems to be too large for Pr = 0.6 (and Pr = 0.72 in v9), max = 20 solves the problem. I guess max = 50 can also be used if one manually sets the initial guess of "Shooting" method carefully. BTW, I observed similar problem when solving Young-Laplace equation and found using the asymptotic solution at far field as the boundary a good solution. Does this set of equation owns a analytic asymptotic solution at far field?
Jan
15
comment Superscript standalone text
For your specific example, you can simply use \[Degree]C
Jan
14
revised Plot Shown Differently in Mathematica 9 and 10.3
added 4 characters in body
Jan
14
revised What is the default ColorFunction for MatrixPlot?
edited tags
Jan
14
revised What is the default ColorFunction for MatrixPlot?
deleted 2 characters in body
Jan
14
comment Why does Outer sometimes return a packed array, and sometimes not?
Er… personally I think this question is a little scattered, maybe you can consider divide it into 2 or 3 questions?
Jan
14
revised What is the default ColorFunction for MatrixPlot?
added 906 characters in body
Jan
14
comment What is the default ColorFunction for MatrixPlot?
@JasonB Can this be related to the version? I'm in v9.0.1. What if you try pattern Blend[__] & instead?
Jan
14
comment What is the default ColorFunction for MatrixPlot?
@Sayakiss See my edit.
Jan
14
revised What is the default ColorFunction for MatrixPlot?
added 186 characters in body
Jan
14
answered What is the default ColorFunction for MatrixPlot?
Jan
14
comment Manipulating Some Lists in Compile
If I understand the pseudo code correctly, it's just creating t described above? Then how about func[z_, nei_] := Module[{t = ConstantArray[0, Length@Flatten@z]}, t[[Rest@nei]] = 1; Partition[t, Length@z]]; func[Z, Neighbors[[2]]]
Jan
14
answered How to compile effectively?
Jan
14
comment Manipulating Some Lists in Compile
If you insist on compiling the topple[r], at least provide the definition of r, emptl, degZ, ijTok, L, NeighNodeand tcount, without all these one can not tell how to compile the function.
Jan
14
comment Manipulating Some Lists in Compile
Well, to be honest, I think you're in the wrong way. Compile is the toy of experienced Mathematica user and one should gain a good enough understanding for "coding in Mathematica" before trying it. I think you'd better describe what you're trying to do in a more clear way so we can help figuring out if there's a better way to code.