10,587 reputation
12276
bio website
location
age 43
visits member for 2 years, 8 months
seen 1 hour ago

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
Aug
26
answered Recursive function with array of variables
Aug
24
awarded  Good Question
Aug
23
answered ToExpression from commandline
Aug
23
comment ToExpression from commandline
OK, I now could reproduce the problem, except that for me it tried to connect to ":0.0" (which explains why my previous attempt to reproduce it failed; I tried on a computer where I was also logged in/running X locally, and thus connecting to :0.0 would not fail). Using strace reveals that it executes a front end at some time; I guess that's where the problem arises.
Aug
23
comment ToExpression from commandline
I can't reproduce this with Mathematica 8.0.0.0, neither with nor without X forwarding. In both cases I get x == 2.
Aug
22
awarded  Nice Answer
Aug
16
comment Communication between local kernels
Just curious: Is there a reason why you don't use the parallelism features of Mathematica, using SubKernels? Those include easy-to-use functionality for information sharing.