11,329 reputation
12355
bio website
location
age 28
visits member for 2 years, 6 months
seen Oct 18 at 21:30

Jan
12
answered Pure Functions with Lists as arguments
Jan
12
comment Problem with ParametricPlot of multiple Curves
@user5373 You could provide arbitrary placeholder functions, just so people have somthing to test it with. I used f[Ne_?NumericQ,t_?NumericQ,T_?NumericQ]:={Ne t T,0} and g[t_,T_]:=t Sin[T] testing my solution.
Jan
11
comment How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?
If add "*)"~~("\n"|"")~~s2__ it will also remove the newline as OP did in his example.
Jan
11
answered Problem with ParametricPlot of multiple Curves
Jan
10
comment Elegant manipulation of the variables list
@Mr.Wizard I quickly pasted the code into a notebook to test figure out if something was wrong and also wondered why c wasn't getting set, I updated the answer slightly. :)
Jan
10
revised Elegant manipulation of the variables list
added 45 characters in body
Jan
9
comment defining recursively a function with multiple if conditions
Your code doesn't seem to match your definition. For instance f depends on x not on A[x,n-1,l] as you write initially. Could you write out what F[input_] is supposed to be?
Jan
9
answered Pattern matching not going over a list when using default values
Jan
9
comment Plotting a 3D sphere i.e. how to vizualise the spanned volume $\int_0^{2\pi}\int_0^{\pi} d\theta d\phi$?
@MichaelE2 I like the output, I meant the code. For one thing, you have a huge load of code dealing with special cases for plotting the volume, why not just put this into a single function like buildVolume that way both the graphics generation is easier to read, and the whole special case handling.
Jan
8
comment Plotting a 3D sphere i.e. how to vizualise the spanned volume $\int_0^{2\pi}\int_0^{\pi} d\theta d\phi$?
Clean session, I'm also getting errors same as Hypnotoad. Also, if this is used in any sort of teaching setting, I would advice cleaning it up to improve readability.
Jan
8
answered How to override `?NumericQ`
Jan
8
comment Using Control Objects with TabView
Please post an example of code that displays this problem. I have a hunch about what it might be, but it's hard to tell without seeing some code.
Jan
7
comment Coding mistake?
Sin(nx) is the product (or multiplication) of the symbol Sin with the symbol nx. You should be using Sin[n x].
Jan
7
comment Why is Mathematica treating my text as input?
What do you mean by "why is text still evaluated?" Text cells don't evaluate.
Dec
26
answered Grid without lines, but with dots
Dec
22
comment Quickly look-up usages, options and attributes of symbols
The options panel seems very sluggish at times. If you are generating all usage cells when opening, perhaps it would help to delay the generation until it's opened the first time. A good symbol to see this on is CreatePalette
Dec
21
awarded  Nice Answer
Dec
21
comment Can Depth be used as an equivalent for MatrixQ?
@wuber New users to mathematica don't yet know what levels are supposed to mean, they don't know intuitively what FullForm is. Most likely he saw a function like f[x_]/;Depth[x]-1 == 2 which should have been f[x_?MatrixQ] I simply can't see the reason for closing a question because the person asking the question doesn't know enough about the system to answer it himself. His question contained everything needed though. He asked: Are they equivalent. The answer is no for reasons obvious to experienced users, but that doesn't make the question worth closing in my oppinion.
Dec
21
comment Can Depth be used as an equivalent for MatrixQ?
@roger For the purpose of timing expressions you should look at the doc pages for the function Timing
Dec
21
comment Can Depth be used as an equivalent for MatrixQ?
@whuber I think you are being exceptionally hars. While it's true that the answer is most likely not what was expected, it's still a valid question, and if someone was reading through code littered with the first check, which would work correctly some times but fail other times, it's worth asking if they are the same.