861 reputation
218
bio website
location
age
visits member for 1 year, 3 months
seen May 12 at 5:41
stats profile views 68

Apr
26
comment FrameLabel not printing completely
Interestingly, exporting to .pdf shows no issue. But .png and .jpg have the same problem.
Apr
26
revised FrameLabel not printing completely
added 120 characters in body
Apr
26
comment FrameLabel not printing completely
@BrettChampion It doesn't happen without the Style wrappers. I edited to include version and OS.
Apr
26
revised FrameLabel not printing completely
added 111 characters in body
Apr
26
asked FrameLabel not printing completely
Apr
16
comment Trying to prove that $x\sin(\frac{\pi}{x})\ge\pi \cos(\frac{\pi}{x})$ for $x\ge 1$
If you don't time for a full proof, then plotting is a very practical solution. It removes all doubt, and can even help you see how to obtain the proof.
Apr
4
awarded  Popular Question
Mar
24
awarded  Nice Question
Feb
22
comment How to add a common color legend to a grid of density plots?
Is there a way to place the color bar horizontally instead of vertically?
Feb
22
asked How to add a common color legend to a grid of density plots?
Feb
17
awarded  Yearling
Jan
23
accepted FindShortestPath with negative weights isn't working
Jan
20
comment FindShortestPath with negative weights isn't working
That's too bad. I wanted to find the shortest simple path between two vertices in an undirected graph with negative weights.
Jan
20
comment FindShortestPath with negative weights isn't working
Oh, I thought you meant simple cycles. To sum up, FindShortestPath with Method -> "BellmanFord" will work with negative weights with a directed graph without negative weight cycles, and FindShortestPath with Method -> "Dijkstra" will work with positive weights only. For any other graphs it will not work.
Jan
20
comment FindShortestPath with negative weights isn't working
It should work, because there are no cycles now.
Jan
20
comment FindShortestPath with negative weights isn't working
Then FindShortestPath[RandomTreeWeighted[10], 3, 7,Method -> "BellmanFord"] also returns unevaluated. Please tell me if you can reproduce this too.
Jan
20
comment FindShortestPath with negative weights isn't working
RandomTreeWeighted[n_, opts:OptionsPattern[]] := RandomTree[n, EdgeWeight -> RandomReal[{-1, 1}, n - 1], opts]
Jan
20
comment FindShortestPath with negative weights isn't working
You can also try this:
Jan
19
comment FindShortestPath with negative weights isn't working
@belisarius Yes. Putting EdgeWeight -> RandomReal[{0, 1}, n] works fine. Weird, since in the documentation it is claimed that the "BellmanFord" method option should support negative weights. Is this a bug?
Jan
19
comment FindShortestPath with negative weights isn't working
The RandomTree function is from the documentation (up to minor variations). See the Applications section here