67,308 reputation
5164380
bio website szhorvat.net/pelican/pages/…
location ND
age
visits member for 3 years, 2 months
seen 11 mins ago

contact details

Please do not write me with Q/A related questions. Post them on the site instead!

Visit Mathematica.SE


1h
comment How to debug an existing notebook in Workbench
You could convert it to an .m file: mathematica.stackexchange.com/q/2202/12 (also see the links within).
1h
comment If the earth's rotational speed increased by 2% each day starting today…what would be the difference in age 20 years from now?
This website is only for questions about Mathematica. Wrong site?
3h
comment Memory Problem with Modules and NDSolve
This is the workaround I would use ... hope this helps.
3h
comment Memory Problem with Modules and NDSolve
you don't assign the interpolating functions to the same symbol that you used inside NDSolve. It might also help to use Block instead of Module, as Block doesn't create temporary symbols, it just makes definitions temporary. The usual problem with using Block instead of Module is when you pass symbols to the function (the arguments x and y) that have names identical with something you use internally. This cannot happen here because of ?NumericQ. So Block would be appropriate. All that said, it is still very annoying that this problem happens ...
3h
comment Memory Problem with Modules and NDSolve
That's because Clear removes definitions associated with the symbol, but it doesn't remove the symbol itself. Remove removed the symbol and replaced references to it (if they exist) with "something else" that is formatted as Removed["name"] but is really a special object. About why this happens: it's strange that e.g. a isn't cleared properly because it doesn't in fact have a downvalue, only an ownvalue. It is likely that NDSolve creates some internal structures that hold references to the symbols that were used in the equation. It might help if ...
3h
comment Memory Problem with Modules and NDSolve
Sorry, I see that doesn't work either, but at least it prevents the memory from filling up ...
3h
comment Memory Problem with Modules and NDSolve
Do not use ClearAll because it removes the Temporary attribute. Use simply Clear instead. I don't remember all the details of how this works, but see also the comment discussion under the answer I linked.
3h
comment Memory Problem with Modules and NDSolve
See the last paragraph under Module -- Advanced Uses here. It's likely due to that. The solution is to clear these variables after (not before) they've been used. Try ending the Module with result = Trad[tf]*a[tf]; Clear[...]; result, where you clear everything that doesn't seem to get cleared properly.
3h
revised Memory Problem with Modules and NDSolve
deleted 208 characters in body
5h
comment Mathematica on Raspberry Pi
I cannot answer this question. If you are worried, you can contact Wolfram Research. My personal interpretation (which might be wrong!) of that limitation is that one can't use the Raspberry Pi version for commercial purposes. If you are developing the package with the intention to sell it, that might not be allowed. If you are running someone else's open source package for commercial reasons on the free RPi version, that might not be allowed. If someone else uses your open source package for commercial purposes, that you developed on the RPi, that's not your problem any more. It's theirs.
5h
comment 3D Gamma function
I didn't know about the Compiled option, thanks for mentioning it!
5h
revised Is there a way to convert mathematica code to OpenMP or OpenACC?
edited tags
5h
revised Mathematica on Raspberry Pi
edited tags
5h
comment Mathematica on Raspberry Pi
Your question is not clear. The licensing of any Mathematica package you write is up to you, regardless of what platform you are developing it on.
5h
comment How to change line lengths in LineLegend
Is LegendMarkerSize what you're looking for? Please check the examples for this option on the LineLegend documentation page.
6h
comment Strange result of an infinite sum
I would not consider the fact that Product[x, {x, 0, a}] evaluates to 0 a bug.
6h
comment Strange result of an infinite sum
Please do not add the bugs tag to new questions you posted. It is meant to be added later, after it is confirmed by the community. This is mentioned in the description of the tag.
6h
revised Strange result of an infinite sum
edited tags
6h
comment Floating point arithmetic bug caused by Table[]
Related: mathematica.stackexchange.com/questions/22082/…
6h
comment Floating point arithmetic bug caused by Table[]
Please never use the bugs tag when posting a question. It is meant to be added later only, when others confirm that it's a bug.