2
votes
1answer
225 views

What are the min and max arguments to EdgeDetect?

What are the min and max arguments to EdgeDetect, for all methods and specifically "Sobel"? How do I find the limits or ranges ...
0
votes
1answer
121 views

GraphPlot3D: How to plot undirected graph with a list of edges?

I have a list of edges defined based on vertices like this: ...
-1
votes
2answers
101 views

EventHandler and ActionMenu

Here is the bit of code causing me issues: ...
3
votes
2answers
141 views

EventHandler and Refresh rate

Based on the example of the Documentation of MousePosition, Properties and Relations, here is my test code using "MouseDragged" instead of "MouseClicked": ...
2
votes
1answer
117 views

Need help looping a notebook evaluation

I'm a new user and would like to find the minimum value of soln1[30] obtained after repeating the following evaluation (below) for 1000 cycles (for instance). I can obtain sequential values of ...
0
votes
2answers
174 views

Replace all elements of a list

I have a set that looks like: s = {{1, 2, 3} -> 9, {4, 1, 9} -> 9, {3, 7, 3} -> 1}; Now, I want to replace each element of the set by the lhs of "...
1
vote
3answers
172 views

professionalize/optimize my code that calls a function

I have the following construction, which defines a function that I subsequently call in a loop multiple times. I use this very often, but I have never looked into if there is a more professional way ...
0
votes
1answer
53 views

How to make the default table alignment “right”

The default table alignment is Center, however I would like to make it Right so that ...
2
votes
2answers
183 views

Writing Fold in terms of Map or MapThread?

Consider Fold[f,z,{a,b,c}] ==> f[f[f[z,a],b,c]] I'm looking for a way to write this (in general) using Map or ...
3
votes
4answers
143 views

AccountingForm w/o significant figures

Basically I want to build a chart like something I would do in Excel. It should look like this: Here is the formula I'm using and what I've done so far ...
9
votes
4answers
423 views

Measure the length and width of the image

I obtained the images from a Magneto Optic Kerr Effect system from which I have to do some calculations. I cannot calculate the desired information from the images. The details are as follows: From ...
3
votes
2answers
172 views

RSolve with assumptions

I want to solve the following non-linear first order difference equation: $$ k_{t+1} = (1-a) k_t^{a} $$ with $0 < a < 1$, and $k_0 = \text{const.}$ . Of course, the solution is easily found, ...
9
votes
1answer
498 views

Mathematica Application in Real Life

As an 'user'-level in Mathematica, I mainly use built-in Mathematica function and benefit Mathematica as a mathematical tool-box for my specific scientific problem. My level is not yet ...
0
votes
1answer
99 views

How to solve the recursion equation that include the uncertain value i in it?

I write the following code of a recursion equation, but it can not work correctly. ...
6
votes
3answers
219 views

Understanding Function and Variable in Mathematica for beginner [closed]

I'm reading the book of Leonid Shifrin, and I love the way the book explains the core in Mathematica. As everything is an expression, now I understand that, there ...
0
votes
0answers
145 views

Code performance problem

Could anyone help me with the attached code? How would you speed up my attached code in some degree? Your comments are highly welcome. ...
1
vote
1answer
84 views

Plotting with multiple variables [closed]

What is the simplest way of plotting across multiple variables? eg: I would like to plot something like this: Plot[{x^0,x^1,x^2,x^3,x^4,x^5,x^6}, {x, 0, 10}] ...
2
votes
1answer
108 views
0
votes
0answers
20 views

How can I obtain absolute result for Root[ # ] symbol [duplicate]

I'm using mathematica 8.0. When I calculate NDSolve`ImplicitRungeKuttaGaussCoefficients[10, Infinity] function, it gives me some symbolic results. I trided //N and //FuıllSimplify operation as in How ...
2
votes
2answers
190 views

Triple series - evaluation delayed

Trying to figure out if the infinite triple series has a nice closed form. It seems Mathematica is unable to help us here. Numerically, things remain the same, no response. Could you help? ...
10
votes
4answers
417 views

Refering to global variables inside modules

How do I refer to global variables inside modules if the same name is used for a local one? In code, I want that ...
4
votes
1answer
108 views

How to control format options of an exported animation?

My woes with Mathematica animations exported in SWF-format continue. The goal is to Export an animation in SWF-format, and also make it scalable, so that when I embed it into a slide set (produced by ...
0
votes
2answers
177 views

Can't find where to download VEST package for Mathematica

In the Internet I have found the article about the VEST package for abstract vector calculus simplification in Mathematica. http://arxiv.org/abs/1309.2561 However, I can not find any reference for ...
1
vote
0answers
588 views

Can Mathematica automatically take advantage of the GPU on the new Mac Pro?

I'm upgrading my Mac to one of the new Mac Pro R2D2 Darth Vader models that have just been released. They come standard with twin AMD FirePro D300 cards, or twin D500 cards. I don't need that much ...
0
votes
1answer
70 views

Problem with Sort - unexpected order with Sqrt [duplicate]

Sort[{13, Sqrt[157], Sqrt[163]}] (*{13, Sqrt[157], Sqrt[157]}*) Sort[{13, Sqrt[157], Sqrt[157]}, #1 < #2 &] (*{Sqrt[157], Sqrt[157], 13}*) This seems ...
5
votes
1answer
169 views

MapThread over large graph

I am trying to build a very large graph with approximately $16\,000\,000$ edges, each being a two-dimensional integer vector. I have a list of edges in the form $\{\{e_{11}, e_{12}\}, \{e_{21}, ...
5
votes
5answers
1k views

How to detect if a sequence of integers is consecutive

I'm not a math-guy really (a programmer actually) and this is my first question. And excuse me if I can not explain my problem good. The problem is I have a sequence of integers and I want to detect ...
1
vote
0answers
142 views

Efficient submatrix swaps for large sparse matrix

I am implementing the 'swap' algorithm for a binary matrix to generate matrix permutations that maintain row and column totals. My problem is that my matrices are large and sparse (e.g., 19774 x 942, ...
1
vote
0answers
106 views

ListDensityPlot: How to only retain regions with data without using interpolation?

I'm working with ListDensityPlot on a set of triples, $\{\{x_1, y_1, z_1\}, \dots\}$. The data is on a semi-regular grid and looks just as it should through most of ...
1
vote
1answer
120 views

Decomposing a diagonal positive real matrix

I would like to 'decompose' a diagonal positive real matrix $E$ of rank $D$ onto $\sum_{i=1}^{D}c(i)N^i$: $$E = \left( \begin{array}{ccc} 0 & & & \\ & a & & \\ ...
18
votes
1answer
405 views

Is there a difference between Divide[a,b] and a/b?

In this comment it was asserted that Divide[a,b] and a/b are different, though the documentation indicates that they are the ...
1
vote
0answers
98 views

Sum slowing down computations

I am trying to compute higher order Casimir invariants for some representations of certain groups. I can get the quadratic, cubic and quartic but beyond that things are taking too long to the point I ...
3
votes
2answers
118 views

Select elements of a Matrix that are the same (or have certain relationship) and return their position and the element itself

I have a matrix and I want to pick the elements that are the same and return their positions and their values. It seems easy to me, but all I know is how to pick elements that satisfy certain ...
28
votes
4answers
467 views

Any ideas on how to use the Region` context?

If you type ?Region`* you'll get: which seems a bunch of interesting and not documented symbols. Any idea (or experience) on how to use them? Edit By ...
0
votes
1answer
174 views

How to enter and solve this equation in finite fields?

Is there a way in Mathematica 9 to enter and solve the following equation $p(x) = r^x$ where $p(x)$ is a polynomial whose coefficients are drawn from a finite field, and $r$ is a primitive root of ...
7
votes
2answers
342 views

How to choose the OpenCL device to use?

OpenCLInformation tells me that my computer has three available OpenCL devices. How can I choose which one to use for computations? How can I verify that ...
0
votes
1answer
110 views

ParallelTable and DistributeDefinitions

I have a function in the following form: function[...] := With[ {...}, Table[ anotherfunction[i, j, ...], {i, ...}, {j, ...}, ... ] ] If ...
4
votes
1answer
212 views

Fitting triangular function with HeavisideTheta

I have a problem fitting a triangular function (like potential vs. time in cyclic voltammetry) with a HeavisideTheta function. I just want to get used to ...
1
vote
2answers
125 views

Deleting parts from a nested list

I have a very long nested list. Here is a short example: list = {{1.2, {1, 1, 1, 1}, {2, 2, 2}}, {0.9, {3, 3, 3, 3}, {4, 4, 4}}, {1.4, {4, 4, 4, 4}, {5, 5, 5}}} ...
3
votes
5answers
388 views

How to plot a 2D region when there are 3 free parameters?

How could I obtain the region of payments, with the parameters a,b,c,d between 0 and 1 and the sum of all equals 1? After the comment/recommendation of belisarius... I edit the original question ...
4
votes
1answer
715 views

Creating a standalone (executable) from mathematica code

I have written a small mathematica code to input a ".csv" file and output the data in a specific format, in a ".txt" file. I would like to give this program as an executable to my friend as she ...
1
vote
1answer
98 views

Question about number theory

Let S[p] denote the sum of digits of p. A prime p is said to be stubborn if none of ...
0
votes
0answers
99 views

Gradient from Vectors type

I'm working with Vectors type in Mathematica 9. For this purpose I use the following command: ...
6
votes
4answers
755 views

How to plot and find the volume of a solid?

How to plot and find the volume of the solid enclosed between the paraboloid z=5(x^2+y^2) and z=6-7x^2-y^2 And the answer of ...
4
votes
2answers
176 views

Visualize difference between members of the list

I want to visualize the difference between members of a set: set = {20, 36, 70, 96, 152, 301} This way I get the diffs: ...
3
votes
3answers
249 views

How can I find the sum of the even digits of a number of all elements of a list?

Let $E(n)$ denote the sum of the even digits of $n$. For example, $E(123456789) = 2 + 4 + 6 + 8$. I tried a = IntegerDigits[123456789] and ...
2
votes
2answers
65 views

Hyperlink shrink the image, how to make the image become original size

I found that Hyperlink[im, "something", ImageSize -> 800] The ImageSize only add some borders of my ...
0
votes
2answers
441 views

Kramers Kronig Relation for Phase and Complex Reflectivity

I am a new user to Mathematica and I have been trying to figure out how to find $\Theta(\omega)$ from my 'experimental' values of energy and $\ln(\sqrt{R(\omega)})$ (I am just running a simulation, ...
0
votes
0answers
33 views

shortcut conflict: My Default Stylesheet was broken by one of my personal stylesheet?

My Default Stylesheet was broken by one of my personal stylesheet? I've added one shortcut to one of my stylesheet, Ctrl+Shift+I, to change a style of cell into style named ...
0
votes
1answer
87 views

How to parse a .css file generated by Mathematica? modify values, add some values

How to parse a .css file generated by Mathematica (Export notebook to HTML)? modify values, add some values. convert into a expression? Are there some instances? I've wrote a simple function to ...

15 30 50 per page