9,631 reputation
1643
bio website
location
age
visits member for 2 years, 8 months
seen 5 hours ago

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?
Apr
24
comment How to copy a function by value?
it might well not be the right choice for your problem, but I think you should be aware that for those cases where you treat a function as an object, using Functions is often more appropriate than downvalue-definitions. When using func1=Function[x,x^2] for the first definition and func1=Function[x,-x] for the second your example will work as you want...
Apr
24
comment Prevent package from being opened in a notebook interface
I don't see why it would be problematic to open an encoded package or mx file in the frontend, you can never prevent anyone to open such a file in a text editor which will show exactly the same information. Can you explain? Or do I miss your point?
Apr
21
comment an NIntegrate inside a manipulate in mathematica was working and suddenly won't work now. it says indeterminent and it doesn't make any sense why
What I find really strange is that you say you got meaningful results from this before. You have exponentials in your expressions with arguments like -(1.88*^11 + 0.00091823*(kp^2 + kz^2) + kz*Vd)^2/(8*(kp^2 + kz^2)) which will give values in the order of -10^16 for your parameters. Taking an exponential of that clearly gives an underflow. You could try to switch to arbitrary precision calculations but I think you'd be better off trying to rescale your variables to avoid such extreme numeric values...
Apr
20
comment Understanding of method for NDSolve
As for your remaining question: yes, it looks like NDSolve was choosing LSODA, you can find several places where it is mentioned by searching for LSODA in the documentation. One prominent place to look for some more information and references is (stiffness detection)[reference.wolfram.com/mathematica/tutorial/…. The advanced documentation for NDSolve (use this string in the documentation center search field: tutorial/NDSolveOverview) is quite detailed and well worth reading...
Apr
20
comment Understanding of method for NDSolve
I have formatted the code sections in your questions. I think it would make sense if you learn to do that yourself, the syntax is well documented. The higher the total quality of your answer, the more likely you will get an answer. It is also common and welcome to give answers to one's own question, so if you find an answer yourself there is nothing wrong in answering your own question and even accept that.
Apr
20
revised Understanding of method for NDSolve
reformatted code sections
Apr
17
answered Open a pre-existing CDF file from a stand-alone CDF file
Apr
15
comment NDSolve: Couple ODE and PDE
AFAIK NDSolve can't automatically handle this, you can couple PDEs with PDEs and ODEs with ODEs but not PDEs with ODEs. But as NDSolve for all versions up to 9 uses the method by lines only for PDEs you can just as well do the method by lines by hand: generate a set of coupled ODEs by discretizaing in space and then couple that system to the single ODE. See tutorial/NDSolvePDE in the online documentation for more details, an example and even some internal helper methods which help with the discretization...
Apr
10
answered Constraining function found by NDSolve to stay positive
Apr
3
comment Accessing list elements by name
As you mentioned that you are relatively new to Mathematica I wonder whether you have any indication that more common ways to handle this won't do? One straightforward way is (close to Istvans answer): define your formulas e.g. as TiByN="Ti"/"N" and then insert numeric values with something like TiByN /. parameters where parameters = Thread[elements->chemistry] (you could use Dispatch for optimization). With such an approach you can very easily control whether and when to insert values. What you do looks a little like working against the (strong parts of the) system to me...
Apr
1
revised Highlighting or coloring certain words / substrings appearing in a larger string
added 79 characters in body
Apr
1
answered Highlighting or coloring certain words / substrings appearing in a larger string
Apr
1
comment Highlighting or coloring certain words / substrings appearing in a larger string
As I think the handling of overlaps is the demanding part of your question I'd suggest to make an example with overlaps to provide a good test case for that...