@belisarius my one question on English.SE has 2.8k views and precisely 0 votes
@PatrickStevens note that you cannot get anything useful from spelunking a MathLink function added using Install, either. The internal functions are just runtime library calls so they do not have a definition that exists as source code. Of course you can decompile the RTL if it takes your fancy
I was often complaining about the front end performance under Linux, but it seems I could pin down a very critical issue. I made a screen-cast that shows how to reproduce the issue
Screen-cast on YouTube
How to reproduce: Open a fresh Mathematica and type some code. In the screen-cast I used
...
and after two month of silence I pinged them whether they forgot me and as it turned out, the report was indeed lost under the pile.
Now, I have set up a test-machine and I would test the stuff by myself which will be hard when I have to get a new 30 Test-Licence for each OS I'm testing.
@halirutan @nikie and everyone else: I need to do some shortest path finding in a large binary image. Are there builtin functions for this either in Mathematica or MATLAB? Or do I have to convert to a graph first, and go from there? Maybe that's too slow so I have to do it in C?
I need the actual shortest path between two white points, but just their distance. The region of white points is not convex, thus the shortest path is not necessarily a line.
Dijkstra's algorithm is an algorithm for finding the shortest paths between nodes in a graph, which may represent, for example, road networks. It was conceived by computer scientist Edsger W. Dijkstra in 1956 and published three years later. The algorithm exists in many variants; Dijkstra's original variant found the shortest path between two nodes, but a more common variant fixes a single node as the "source" node and finds shortest paths from the source to all other nodes in the graph, producing a shortest path tree.
For a given source node in the graph, the algorithm finds the shortest path...
@Szabolcs Additionally, note that the solution of Dijkstra depends on the assumed neighbourhood of the pixel. There are extensions to the algorithm that work better, but I'm sure you find them yourself.
@halirutan Do you know what the "indices" copied with the GUI tool represent? Indexing into ImageData? Or ImageData[, DataReversed -> True]? Or PixelValue?
@Szabolcs Since you are searching in Euclidean space, you can speed up Dijkstra's with minimum distance guess to make it A* search. This is very common for path finding in real time strategy games. It was my only real exposure to algorithms in high school. There are lots of existing implementations I'd guess.
@halirutan But then we have PixelValue and related functions which take the bottom left to be {0,0} and the second index refers to vertical position (not columns) ...
So it seems that the difference between PixelValue and ImageValue functions is that PixelValue uses integer coordinates that refer to pixel centres and ImageValue uses real numbers where integers would correspond to pixel corners?
@Szabolcs I think a geodesic distance transform (bwdistgeodesic in MatLab) is close to what you want, no idea how fast it is for large images.
Basically, you give it a mask and a starting point and it tells you the shortest distance to every point, without leaving the mask. If you need the path (and it's fast enough), calculate the GDT from the starting and from end point, then add them - the set of points with the minimal distance from both points is the shortest path between the two points.
I posted a Question this morning and promptly received responses from two users who had not understood the Question at all. I wasted some time trying to rewrite it for them, but to no avail.
This has happened to me before.
I realize that other users can still respond to the Question, but I als...
because of Mathematica says that this doesn't have a solution, but global picard lindelöf is fulfilled and I even can calculate the solution, so why can't mathematica
@halirutan To answer my own question: Yes, it is possible to use the same ActivationKey after installing a different kind of Ubuntu on the same machine.
@DominicMichaelis Well if you are going to be doing a lot of work with those types of differential equations then perhaps the upgrade is a good idea for you. There is no guarantee though that the next type of more difficult problem you try will work even with the most recent version.
@MichaelHale in fact I just answered a question on math.stackexchange and was to lazy to solve a quadratic equation (and mathematica already run) but it really surprises me that this happens, I would be completely fine if it had just given me the input back
@chandan well for nearly every sequence there is no explicit formula, indeed such problem aren't as mathematical as one may expect, because there is totally no unique answer how a sequence goes on. Where did you stumble on that problem?
@Chandan I doubt I would have ever figured out what the sequence is without help, but the formula is to just put as many 9s as you can and then prepend a 1, 4, or 7 as appropriate.
@chuy I am in the lucky situation that I never need to calculate the solution of a differential equation, but I found that one comment really unnecessary