Reputation
59,512
Next tag badge:
115/100 score
18/20 answers
Badges
3 123 240
Impact
~562k people reached

Aug
25
comment Undeclared Identifier error in Compile
...In your example, it gave a cryptic error. I couldn't even reproduce your error on my Linux machine. Here, the Kernel just crashed. Therefore, I can only tell you how to do it right and not, what exactly went wrong in your specific case.
Aug
25
comment Undeclared Identifier error in Compile
Beside the error in PointIsWithinCircleWidth that I pointed out, you cannot simply call a compiled function from within another compiled function and expect that it is properly included (injected). The combination of With and the option "InlineCompiledFunctions" is important because otherwise when you call your compiled function, it calls back to Mathematica which is not what you want. You want a compiled function to be fast compiled code only without callbacks to the Mathematica Kernel. The real problem was that with compilation target "C" this produced not only slow code...
Aug
25
awarded  Nice Question
Aug
23
comment Memory usage of compiled function: C vs WVM
Player 3 has joined the game: Creating a C-library from a compiled function. Here is the comparison and you can see the whole notebook by evaluating Import["http://goo.gl/NaH6rM"]["http://i.stack.imgur.com/GTpLl.png"] If we only could trust that MaxMemoryUsed is working correctly..
Aug
21
comment How to stop a summation when a variable is small enough?
@Samuel Question: Can you reduce your function to a very small example that shows the same error when using NSum? Then we might be able to inspect in detail what goes wrong. Question 2: Is your function numerical at m=1? Have you tried yourself?
Aug
21
revised How to stop a summation when a variable is small enough?
edited body
Aug
21
answered How to stop a summation when a variable is small enough?
Aug
21
reviewed Edit How to stop a summation when a variable is small enough?
Aug
21
comment Histogram and Random Lists
Btw, I'm voting to close this question because it can really easily be found in the documentation.
Aug
21
comment Slider Size Problem
Well, you could have edited your question yourself :-) I included it.
Aug
21
revised Slider Size Problem
added 34 characters in body; edited tags
Aug
21
answered Histogram and Random Lists
Aug
21
comment Slider Size Problem
You should add your operating system, because on Linux this does not appear at all. My sliders don't even look blue. See here
Aug
20
answered Working with functionals
Aug
18
comment How can I convert the solution I get from the DSolve to something I can use?
@SeanPatrick It's because I used Plot and not your code and I mentioned that I changed some things in your manipulate, but I'm sure you get the rest yourself. The question was about using s in a Manipulate.
Aug
18
answered How can I convert the solution I get from the DSolve to something I can use?
Aug
18
comment How can I convert the solution I get from the DSolve to something I can use?
As far as I can see, you never use the solution from DSolve! The solution itself is stored in the variable s. I don't see s in your code below the DSolve call.
Aug
18
awarded  Enlightened
Aug
18
awarded  Nice Answer
Aug
18
comment How to use Compile to generate an $n×n$ array using $n$ tensors with both Real and Integer element
@xzczd That was left as exercise for the attentive reader. Fixed.