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
1
vote
1 answer
How to set up Intel C++ Composer XE for Mathematica for Windows?
I tried
Needs["CCompilerDriver`IntelCompiler`"]
greeter = CreateExecutable[StringJoin["#include \n", "int main(){\n", " printf(\"Hello world.\\n\");\n", "}\n"], "hiworld", "Compiler" -> IntelCompiler, "CompilerInstallation" ->…

Osiris Xu
- 713
- 1
- 5
- 13
1
vote
2 answers
solve expression for an equation
I'd like to solve the following expression:
for the following equation:
How? Is there a function for that. This was just an example.
Solve the expression means finds the value of the expression by substituting in the equation, so a+b =…
user342552
1
vote
1 answer
Mathematica CDF Player does not play my Animation correctly
I wrote an animation with Mathematica 8.04 and saved it as myfile.cdf. It plays nicely on my computer which has mathematica installed. If I play this on a different computer with only Mathematica cdf player installed, it only plays a fraction of the…

user1078128
- 11
- 1
1
vote
0 answers
How to use InterpolatingFunction generated by Mathematica 5.2 in version 8.0.1?
Let us interpolate the same data using Mathematica 5.2, 7.0.1 and 8.0.1:
Interpolation[{{0, 0}, {1, 1}, {2, 3}, {3, 4}, {4, 3}, {5, 0}}] // InputForm
The outputs are:
Mathematica 5.2:
InterpolatingFunction[{{0, 5}},
{2, 0, True, False, {3}, {0}},…

Alexey Popkov
- 9,355
- 4
- 42
- 93
1
vote
1 answer
Goal Seek, in Mathematica
For an experiment, we generated in Matlab some images made out of 8 Disks. We constrained, the minimum distance between the disks and between the disks and the frame as well as the location of the Disks Center Of Gravity (COG). Bellow an example of…

500
- 6,509
- 8
- 46
- 80
1
vote
1 answer
How can i use Descarta2D package for Mathematica?
Recently I download a pdf book named -"Exploring Analytical Geometry with Mathematica ".In this book, they used a package "Descarta2D". I can't understand how can I add these packages in my Mathematica.
I look at many websites to solve this problem…

tasneem alam
- 11
- 2
1
vote
1 answer
Finding inverse of a matrix using Gauss - Jordan Method
I am trying to write a program that finds the inverse of an nxn matrix in Mathematica. I've been able to find matrices that don't find the inverse of the matrix but whose product has a determinant of 1, lol. Can you tell me where I went wrong?
m =…

yasirbagci
- 11
- 1
1
vote
1 answer
How do I add numbers to each subset in Wolfram mathematica?
Say I have a deck of 52 cards. I now remove two cards from the deck, say it is Diamond 2 and 4. I now create a subset {5} meaning I print every 5 card combination of the 50 cards I have left.
How do I now add back both the diamond 2 and 4 into each…

Dyson
- 23
- 6
1
vote
1 answer
Pass list element by reference in Mathematica
I am working with this data structure which I call an "associationList", which has the following format:
<| key1->{value1, value2,...}, key2->{value1,value2,...},...|>
I want to have the function Add[assocList_,key_,value_] add key->{value} to the…

Lucas Mumbo
- 162
- 8
1
vote
1 answer
Reusing a function expansion by changing variable in Mathematica
I am using Spherical Hankel Functions, and making a tabulated form like this :
Table[SHF[n, z ] = FunctionExpand[SphericalHankelH1[n, z]], {n, 1, 5,
1}] // TableForm
Now, I need to use the z as different variables, keeping it as function…

ZeroTwo
- 307
- 1
- 3
- 12
1
vote
1 answer
ContextPath of a cell
How do you change the $ContextPath of a cell without using Prepend:
$ContextPath = Prepend[$ContextPath, "PackageName`"]
I was looking around at the Documentation for $ContextPath and I decided to evaluate the first input cell in there.
Before…

jmlopez
- 4,853
- 4
- 40
- 74
1
vote
1 answer
In parallel processing, how to make each processor execute a block of program using mathematica
I want to write a block of C code and send it to every processor to execute it
Is that possible using mathematica?
using gateway to link C with mathematica or what ever
thank you all .. :)

Omar Osama
- 1,401
- 3
- 19
- 29
1
vote
0 answers
Streamlines in Mathematica
Can someone suggest a better way to solve for streamlines in Mathematica?
P.S. StreamPlot is not providing accurate results.
Here, velocity is u[x,y] i + v0[x,y] j. p0x[x] is the pressure gradient. The last line in the code is taking too long to…

Anubhav Kamal
- 11
- 1
1
vote
1 answer
Mathematica: How to evaluate this function?
I need to evaluate a function in 2D but it has three unknowns, the two arguments (x, y) and alpha. I need to evaluate x and y between {0,100}, while alpha between {0,1}.
The function is: f(x, y) = x ^ (a) * y ^ (1-a)
Thank you!

Bernardita
- 11
- 1
1
vote
2 answers
Mathematica: Non-intersecting line segments
How can we tell Mathematica to gives us a set of non-intersecting lines? In this case two lines intersect if they have a point (not an endpoint) in common. Consider this simple case:
l1 = {{-1, 0}, {1, 0}};
l2 = {{0, -1}, {0, 1}};
lines = {l1,…

jmlopez
- 4,853
- 4
- 40
- 74