For questions specific to version 8.x.x of Wolfram Mathematica, or not applicable to versions 7 or earlier. Dedicated Mathematica Stack Exchange site: https://mathematica.stackexchange.com/
Questions tagged [mathematica-8]
199 questions
7
votes
3 answers
Evaluate[] seems to not work inside Button[]
Any idea how to get this to work?
y = {}; Table[Button[x, AppendTo[y, Evaluate[x]]], {x, 5}]
Result: Click [1] , click [2], get {6,6}
I'm trivializing the actual task, but the goal is to set what a button does inside a Map or a Table or…

Gregory Klopper
- 2,285
- 1
- 14
- 14
7
votes
4 answers
How to Label Graph Edges with their weights
Warning! I posted the question when Mathematica v 8.0 was the coolest kid. The bug has been solved as of version 9.0.1
The help for EdgeLabels states:
However:
CompleteGraph[4,
EdgeWeight -> Range@6,
VertexShapeFunction -> "Name",
EdgeLabels…

Dr. belisarius
- 60,527
- 15
- 115
- 190
7
votes
1 answer
Export Graphics in Mathematica with Texture
Hello guys i've been having a problem with Mathematica 8.0.
When i export my Graphics3D to 3DS or any other format, texture is always missing. For example in the screenshot attached, , u'll see that i created a plane, texturized it and exported to…

omarzouk
- 933
- 10
- 23
7
votes
3 answers
How can I programmatically access information about a 'Graph` object in Mathematica 8?
I'm trying to access information within a Graph object in Mathematica 8. For some reason, the Part command does not seem to work.
myGraph is the object I want to gain access to.
The first line below displays myGraph. The others serve to inspect…

DavidC
- 3,056
- 1
- 20
- 30
7
votes
1 answer
Mathematica and CUDA
Is it possible that built in functions in Mathematica (like Minimize[expr,{x1,x2,...}]) will start to work via CUDA after installation of CUDA module for Mathematica?

Roman Pominov
- 1,403
- 1
- 12
- 17
7
votes
3 answers
Function minimization with equality constraints in Mathematica 8
When using constraints with simple equality in Mathematica 8, minimization doesn't work. E.g.
FindMinimum[{x^2 + y^2, y == 1}, {x, y}]
works ok in Mathematica 6, but gives errors in version 8. Can anyone else confirm (or explain) this? Looks like…

Boocko
- 731
- 5
- 16
7
votes
1 answer
Mathematica -- How to compile BitShiftRight (or Left)?
I want to compile a Mathematica module because I am after speed.
testC = Compile[{{inputInt, _Integer}},
Module[{outputInt, bitShift = 5},
outputInt = BitShiftRight[inputInt, bitShift]
]
, CompilationTarget -> "C",…

Oscar6E
- 106
- 4
6
votes
0 answers
Initialization command
I noticed in the Cell > Cell properties menu an item I assume was recently added, but I really wouldn't know for sure (8.0.4/Win here). It's called Initialization Command:
Nothing about it to be found in my documentation center. Neither does it…

Sjoerd C. de Vries
- 16,122
- 3
- 42
- 94
6
votes
1 answer
Using a compiled listable function on non tensor lists
I am interested in using a Listable Compiled function on lists that need not be tensors. I want to understand why some functions work, where as others do not and shut down the kernel. Here is an example.
Suppose we have two matrices m1 and m2 as…

asim
- 389
- 2
- 10
6
votes
1 answer
quantiles of sums using copula distributions too slow
Trying to create a table for quantiles of the sum of two dependent random variables using built-in copula distributions (Clayton, Frank, Gumbel) with Beta marginals. Tried NProbability and FindRoot with various methods -- not fast enough.
An example…

kglr
- 1,438
- 1
- 9
- 15
6
votes
2 answers
Photo Mosaic in Mathematica: an example from 2008 doesn't work in Mathematica 8
I'm trying to get a Mathematica example working. It's the one on Theo Gray's blog.
I think that Mathematica must have changed since he wrote that code (May 2008), since I'm unable to get anything reasonable out of it, despite changing nearly…

cormullion
- 1,672
- 1
- 10
- 24
6
votes
1 answer
Why does InverseFunction[0 &]@0 return 33/10?
In Mathematica 8.0.1.0 on 32-bit Linux, the expression
InverseFunction[0 &]@0
returns 33/10. (The same occurs for other integer and rational values; I'm using 0 as an example.)
According to the documentation for InverseFunction:
As discussed in…

Mechanical snail
- 29,755
- 14
- 88
- 113
6
votes
3 answers
Mathematica: Can I match the BarChart Legend to the stacked bars?
I would like to have the vertical arrangement of colors in stacked bars match the arrangement of colors in the chart legend. But no matter what I try, they don't match. Here's the situation
BarChart[{{5, 37, 56}, {22, 49, 28}, {31, 60, 10}},
…

DavidC
- 3,056
- 1
- 20
- 30
6
votes
2 answers
Exporting a row of graphics objects broken in MMA8
How do you make Mathematica export a Row of graphics. I do not like how GraphicsRow handles the graphics, all the aspect ratios and paddings in the figures get messed up. What I like to do is work with each individual figure and then use a simple…

jmlopez
- 4,853
- 4
- 40
- 74
6
votes
4 answers
Re-layout graph after small modification while preserving features of original layout
Is there a simple way to do the following in Mathematica 8?
Construct a graph, and display it using some graph layout.
Modify the graph slightly (e.g. add or remove an edge or a vertex).
Re-compute the layout starting from the original layout, in…

Szabolcs
- 24,728
- 9
- 85
- 174