9,856 reputation
1644
bio website
location
age
visits member for 2 years, 9 months
seen 2 days ago

May
18
answered Problems with For statement
May
18
revised Are there any cases when For[] loops are reasonable?
added section about numeric errors in loop counter
May
18
comment PDE combined with ODE 1D
NDSolve (up to version 9) uses the method of lines exclusively to solve PDEs and AFAIK can't automatically solve coupled equations of PDE and ODEs. What you can do is to apply the method of lines yourself and then combine the resulting set of ODEs for the PDE with the single ODE to one system which then can be solved to NDSolve. I think there are examples of manual application of the method of lines in the advanced documentation of NDSolve as well as on this site...
May
17
comment Running unit tests while debug session is running in Workbench
The workbench is based on an older version of the MUnit package which was available as a standalone Mathematica package before there was the workbench and which you might be able to use in an extra session as Akater suggested for his package. You can still find it deep in the directory tree of the workbench/eclipse installation (put a Print[$Path] in a test and run it). I have never checked if that MUnit package still works without the workbench but it would be the first place to look at. Maybe you'll find documentation for the older package somewhere to start off...
May
16
answered Inserting a closed section
May
16
answered Treat strings as variables?
May
13
comment How to generate a unique file name similar as that created by CreateTemporary
it probably is worth noting that it is common practice to use such random strings as "global unique identifiers" (GUID). Of course they are not guaranteed to be unique, but only have probabilities of almost 1 to be so. See e.g. the wikipedia article on GUID for details. From the format of the strings I could well imagine that the conventions mentioned there are what Mathematica uses for CreateTemporary, or at least something very close...
May
6
comment NDSolve producing an overdetermined system
for me the error message seems to be very clear: you have 3 differential equations but want to solve for 4 functions. What is em? Why don't you have an equation for it?
May
6
comment Why do NDSolve and OutputResponse not evaluate non-analytic functions numerically?
It probably should be noted that it does help to start from a value larger than zero for NDSolve (at least if one adopts the initial condition), but not for OutputResponse...
May
2
revised How to change a parameter dynamically inside NDSolve
distangled some lengthy unclear sentenses (hopefully)
May
2
answered How to change a parameter dynamically inside NDSolve
Apr
30
answered Parallel computation of a system of differential equation
Apr
30
comment How to save the results in an identical Excel file (.xls) in each iteration of a Do loop
the standard Export for excel files can only write content in one go. Of course you can completely overwrite the file for each line, which is inefficient but probably not too problematic. Other than that I see the following possibilities: write to a text file (or CSV) line by line, for these appending is simple and efficient. Depending on the data, you won't loose much compared to an excel file. If you really need excel, you could use NETLink to do what you want, if you search for "NET excel" you'll find many Q+A to start...
Apr
27
awarded  Nice Answer
Apr
26
answered Garbage collection for memoized functions on subkernels
Apr
26
comment Prevent package from being opened in a notebook interface
well thats what I would probably try to do in your situation, but as I said, my experience with .NET is very limited. I would know how to do that in Java or C, so I can hardly imagine it wouldn't be possible with .NET.
Apr
25
comment Prevent package from being opened in a notebook interface
Honestly, I don't know .NET very well, but there are for sure binary libraries/assemblies/object-files that another .NET program can load? If you provide such a binary for them to load from their .NET code that wouldn't make much difference to calling an encoded package file via NETLink for them, would it? You could even sell that as a feature as they wouldn't have to bother with NETLink in their code :-)
Apr
24
comment Dynamic Syntax - Evaluate AppendTo as the second argument
@m_goldberg: I think the missing not makes my previous comment superfluos :-)
Apr
24
comment Prevent package from being opened in a notebook interface
what about compiling the compressed code string into the NET assembly and send it to to the kernel for uncompress/evaluation? Then it would not even live as a file in the filesystem on the executing machine...
Apr
24
comment Dynamic Syntax - Evaluate AppendTo as the second argument
@m_goldberg: you say "only seems to work reliably", but does it work at all and is it supposed to? I would have said it most probably isn't even meant to work, but honestly don't know what actually is the "documented" behavior that I could expect. I also can't see that a naked Dynamic with a 2nd argument does anything relevant concerning its 2nd argument, other than quietly ignoring it. Am I missing something here?