10,641 reputation
12277
bio website
location
age 43
visits member for 2 years, 8 months
seen 12 mins ago

55m
comment Recursive partitioning: Is there a better way to do this?
Looks great. The ArrayReshape documentation says introduced in 9.0, but unfortunately I'm stuck with 8.0, so I can't use that :-( But a +1, because I think this would actually be the perfect solution if only I could use it ...
1h
accepted Where can I put my conditions?
4h
accepted Recursive partitioning: Is there a better way to do this?
4h
asked Where can I put my conditions?
5h
comment Recursive partitioning: Is there a better way to do this?
I didn't know that you can put the condition inside a With. That's a nice way to get a restriction to valid lists. This alone is already a nice improvement to my version.
5h
asked Recursive partitioning: Is there a better way to do this?
21h
awarded  Explainer
Sep
5
revised How to replace While construct to NestWhile(functional-style) correctly?
I forgot to remove the "untested" warning after testing and correcting
Sep
5
comment How to replace While construct to NestWhile(functional-style) correctly?
@Tangshutao: Anyway, I forgot: thank you for correcting my other mistakes (and I also forgot the @-attribution so you get notified).
Sep
5
comment Get a “step by step” evaluation in Mathematica
I just noticed that WalkD[Integrate[f[x],{x,g[x],h[x]}],x] results in an infinite loop of error outputs, each time adding an extra /. $Failed to the end.
Sep
5
comment How to replace While construct to NestWhile(functional-style) correctly?
I've now fixed the error in my code; my tests indicate it works now correctly. The error was rather stupid: I forgot to supply the initial argument and test function to NestWhile, and to close the remaining open function argument brackets.
Sep
5
revised How to replace While construct to NestWhile(functional-style) correctly?
fixed error in code
Sep
5
awarded  programming
Sep
4
answered How to replace While construct to NestWhile(functional-style) correctly?
Sep
4
answered Are there ways to create local variables analogous to a local variable in C++ and other languages?
Sep
1
comment Find the solution of A^2+AB+B^2 = f(a,b,c)
Since he wrote the equation in $\mathrm{\TeX}$, mathematical conventions apply, not Mathematica conventions. And in mathematical conventions, $AB$ is the product of $A$ and $B$. If a single variable had been meant, it would have to be written as $\text{AB}$. Try TeXForm[AB] vs. TeXForm[A B] in Mathematica (and remember, spaces in $\mathrm{\TeX}$ math mode are insignificant unless they separate a macro from adjacent letters).
Aug
27
comment Recursive function with array of variables
@kon: Indeed, that closing bracket was missing (reminder to self: don't skip testing, even for simple changes!). Thank you for noting, and for the accept.
Aug
27
revised Recursive function with array of variables
Added missing closing bracket
Aug
26
comment Recursive function with array of variables
@TeakeNutma: I've now added both. Thank you for noting.
Aug
26
revised Recursive function with array of variables
fixed missing negative condition/memoization