| bio | website | |
|---|---|---|
| location | Budapest, Hungary | |
| age | 32 | |
| visits | member for | 1 year, 4 months |
| seen | 2 hours ago | |
| stats | profile views | 803 |
Mathematica 9.0.1.0, Windows 7, 64-bit, 2 CPUs

|
May 7 |
comment |
How to make the imaginary part of a +0. I zero globally? @bills But isn't $Post (or $PrePrint) just the right thing to use whenever one wants to display things? The problem here is that it won't apply to Printed output (try it without the Print statement). |
|
May 5 |
comment |
Automatically evaluating related cells @m0nhawk No other easy way. You either tell each related cell to listen to a dynamic value by wrapping their contents in Dynamic OR you re-evaluate these cells. You can play with cell options, but Mathematica will never figure out on its own which cells it should update and which cells it shouldn't. |
|
May 2 |
comment |
How can I find ,Which InputField was recently updated? Could you please tell us why do you keep using so much whitespace with your code formatting? I am simply curious. |
|
May 2 |
comment |
why set values in this way doesn't work? The assignment to list part ( ttt[[3]]=val) only works, if the list part is at the left hand side of the Set operator (as Set has attribute HoldFirst), otherwise it simply returns the appropriate element of ttt. |
|
May 1 |
comment |
Use different kernels for different Notebooks Related: mathematica.stackexchange.com/q/853/89 |
|
Apr 30 |
comment |
How can Private functions be made completely opaque? The way I understood the OP's question, "The trick is not to use the Private context" in the other package is the right answer here. +1 |
|
Apr 25 |
comment |
large matrix eigenvalue problem @hsxie Of course if you could refit your problem for C or Fortran, then (C)LAPACK would most probably be both faster and more economic memorywise to calculate eigenvalues. I recently ran such code and it quite easily solved matrices of size (2^15)*(2^15), requiring around 16GB memory. 2^16 would need ~60GB, and it failed on a machine with 70GB. Needless to say, I did all the prototyping in Mathematica. |
|
Apr 25 |
comment |
Non linear equation phase spaceNDSolve cannot numerically integrate the system of equations since at this point r0 and u0 don't have numerical values. You have to wrap Table[..., {r0, ...}, {u0, ...}] around NDSolve instead of the plot curves! |
|
Apr 20 |
comment |
Using RSolve correctly If you run your code, the returned error ("...the given boundary conditions lead to an empty solution.") is pretty helpful. |
|
Apr 20 |
comment |
How can I format a table to look nice? Just a note: TableView is notoriously unstable, you can easily crash the kernel fiddling with it, e.g. by editing a field. Until better integration (making it a proper, documented built-in) I wouldn't recommend using it. |
|
Apr 18 |
comment |
Graph does not evaluate some options when not displayed Thanks Jacob again for the thorough investigation, you convinced me about the way PropertyValue works :) I'll wait a bit before accepting it, though it seems other are not so interested in this issue (pity). |
|
Apr 18 |
comment |
Solving a system of ODEs with the Runge-Kutta method Please don't use single capital letters as variables: both C and E are protected system symbols, and no value should be assigned to them. Also note that multiplication requires at least a space, thus Cx is a symbol while C x is C times x |
|
Apr 18 |
comment |
Graph does not evaluate some options when not displayed But that is what PropertyValue contradicts: even if the graph is not displayed at all, you can query the coordinates which obviously exist then inside g, and are not added at to the it when queried (as the size of g does not change). |
|
Apr 17 |
comment |
Keeping axes fixed in an Animate of a 3D graphic Ok, that is some strange data structure... Did you intend to use lists as the head of your lists? |
|
Apr 17 |
comment |
Keeping axes fixed in an Animate of a 3D graphic Note that Mathematica starts list indices with 1 and not 0. Dat2[[0]] returns the Head of Dat2 instead of its first element. |
|
Apr 17 |
comment |
Font sizes in graphics Related, perhaps useful: Fontsize is too small. |
|
Apr 17 |
comment |
Graph does not evaluate some options when not displayed Yes, PropertyValue is the way to go, thanks. Am I right assuming that coordinates are calculated at start (as {g=Graph[...];ByteCount[g], PropertyValue[{g, 1}, VertexCoordinates],ByteCount[g]} shows that no extra memory is required for g after "calculating" the coordinates) and only options are left unevaluated until actual display? |
|
Apr 17 |
comment |
Graph does not evaluate some options when not displayed Thanks Jacob for the details! "the reason Graph does not automatically make such conversions is that expressions with Graph head can also be used in calculations". Now that is precisely what I wanted to do by Reap[Graph[..., VertexShapeFunction -> (Disk[Sow@#, .1] &)]. So if what you say was WRI's intention, it only works partially. |
|
Apr 17 |
comment |
Fastest way to measure Hamming distance of integers It seems that the dll is fine (compiled with 64bit MinGW), file (under Cygwin) reports hammingDistance.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows, though Mathematica through $LibraryError returns Library load error 193: %1 is not a valid Win32 application. |
|
Apr 17 |
comment |
Fastest way to measure Hamming distance of integers Thanks for the detailed instructions! However, after successful linking, compiling and inclusion of the dll dir in $LibraryPath I got an error when loading the library: LibraryFunction::libload: The function hammingDistance_I_I was not loaded from the file [...]\hammingDistance.dll. |