All Questions

1
vote
0answers
24 views

Upvalues and order of interpretation

I'm trying to use UpValues to improve the usability of some code, but I am running into an issue where the order of the UpValues is important, and I am not sure if it is my understanding or a ...
0
votes
0answers
62 views

How to disable multiple document interface (MDI) in Mathematica 10?

I want that there was no window-in-window interface. How to disable it?
0
votes
0answers
38 views

Generalized method of moments (GMM) estimation in Mathematica

As I was trying to get more help on implementing Generalized method of moments (GMM) estimation in Mathematica, I came across: Mark Fisher's Mathematica packages and notebooks If you have any useful ...
0
votes
1answer
42 views

Strange wiggles on the surface of a ParametricPlot3D

I'm trying to plot two cones but when I try to display them, Mathematica (10) makes the edges wiggly. My code is: ...
1
vote
1answer
30 views

Generate Degeneracies in List [duplicate]

I have a list with n entries and I would like to duplicate this list p times. In my case because of the Degeneracy of my Eigenvalues. For example I have {3,2,1} and it is five-fold-degenerate so that ...
1
vote
3answers
112 views
+100

Developing a function of two variables from given data

Cross listed from MSE: http://math.stackexchange.com/questions/1029399/developing-a-function-of-two-variables-from-given-data (I believe Mathematica SE is an appropriate place to ask this, as well.) ...
6
votes
2answers
132 views

How to define a nested function like this?

For example, I want to calculate the limit of $\frac{1}{1+\frac{2}{1+\frac{3}{1+\ldots}}}$. So I want to define: $f(1)=1$ $f(2)=\frac{1}{1+2}$ $f(3)=\frac{1}{1+\frac{2}{1+3}}$ Then I calculate ...
1
vote
1answer
36 views

How to exclude a region from ParametricPlot

Suppose I have functions f[x] and g[x] which are defined in the region 0 ≤ x ≤ 1 and ...
8
votes
5answers
388 views

How to subtract one list from another, treating each elements as distinct?

Suppose that I have a = {"A", "A", "A", "B", "B", "C"} b = {"A", "B"} How can I subtract b from ...
1
vote
1answer
39 views

Table for 3D list plot

I have a function which is defined with an integral and a sum, in other words, its numerical, so i want to make a table (nxm) with the following entries: ...
0
votes
0answers
34 views

Writing a script in Mathematica like .m files of Matlab [on hold]

I'm new to Mathematica, and coming with a Matlab background. It looks for me that the notebook files in Mathematica works like if Im working in thw workspace of matlab. That is, I have to write a line ...
5
votes
0answers
48 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added to them in ...
0
votes
0answers
58 views

Expand An Image to Fill a Grid

How can I effectively expand an image to fill an entire cell area of a grid and no more? ...
4
votes
0answers
40 views

Installing LinkSnooper on Windows

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen: ...
1
vote
7answers
93 views

Make a new list by filtering unwanted rows

I have a list like this. ...
0
votes
1answer
34 views

How to define y[n] = f1 y[n-1] + u[n]?

I need to define a recursion defined by the following equation $y(n) = f_1 y(n-1) + u(n)$ In which $f_1$ is a symbolic constant. I know the values of the sequence u and I know the initial value of ...
1
vote
2answers
61 views

How do you apply an algorithm individually to an array with many graphs

I have and array with many graphs to which I want to apply an algorithm (below) to each graph in an array that contains all my graphs. ...
7
votes
0answers
67 views

Weird behaviour when using Scale, Rotate in Graphics

(Edited to simplify drawing) I have a drawing of two tangent circles: ...
1
vote
0answers
52 views

Maxwell propagator problem 2D [on hold]

Hi folks I`m trying to turn certain matlab code to mathematica but for some reason it doesnt really want to do it could you please assist me a bit. Thanks The matlab code is as follows: ...
3
votes
4answers
117 views

What is wrong with this code?

I am plotting polar curves with PolarPlot and I tried plotting a parabola with $\frac{2}{1-\cos x}$ and $\sec x$. Obviously there are two singularities that have ...
8
votes
1answer
140 views

PlotLegends won't generate automatically more than 15 labels in v10

While testing the examples from this recent post, i've noticed a problem in V.10 with PlotLegends when it has to automatically generate more than 15 labels (i.e. ...
0
votes
1answer
40 views

Labels are not stored with the plot [on hold]

I apply Labeled to a plot and want to save it all with "Save Graphics as" clicking on the plot. Doing so I can only select and store the plot without the label. If ...
2
votes
0answers
83 views

NDSolve and strange “nonlinear coefficients problem”

I'm stuck solving the following problem. I defined two functions as follows: $$ \varphi(\lambda) = \frac{\left((\lambda-2)^2-1 \right)^2}{4}$$ $$ \gamma(\lambda) = \varepsilon^2 ...
0
votes
0answers
26 views

Wrong results from a branching function (ternary channel) [duplicate]

I'm doing one ternary channel and using the following code: ...
2
votes
0answers
85 views

A counterintuitive RegionPlot behavior [on hold]

The region between a straight line and a hyperbola in the fourth quadrant is not shown by the RegionPlot: ...
1
vote
0answers
78 views

Bug? Or what? Why it returns internal functions? [on hold]

Using version 10.0.1 I input: FullSimplify[(Pi^s Zeta[1 - s] Sin[(Pi s)/2] 2^(s - 1))/Zeta[s]] Mathematica returns: ...
0
votes
1answer
35 views

Differentiating two tables x and y?

I have two tables x and y with x={673,674,675,...} and y={0,1,2,...} and delta=dx/dy. I would like to know how delta can be calculated knowing that delta is the derivative of x divided by the ...
3
votes
1answer
91 views

Is is possible add a stylesheet into the menu?

I always use the PastelColor stylesheet in Mathematica 8, since I think it is comfortable to my eyes. But it can be no longer found in the Menu in Mathematica 10, ...
5
votes
1answer
121 views

Obtain polygons describing all intersections of many polygons

I have 6894 polygons describing zones in a state plane (i.e., cartesian) coordinate system. Most are not very complex, and I believe none have holes. A random example is Polygon[{{351633., ...
1
vote
1answer
53 views

Strange interaction between Module and ListPlot

Why is the variable a ending up assigned to {1,2,3} after executing Module[{a}, a=Range[3]; ListPlot[a] ]
1
vote
2answers
65 views

How to extract matrix which produces given symbolic linear combinations?

Suppose I have a column matrix $\alpha$, consisting of some symbols ...
1
vote
1answer
48 views

First::normal: Nonatomic expression expected at position 1 in First[0]. >>

I'm trying to do a numerical integration. The integration is within a function. ...
0
votes
1answer
41 views

Mathematica Lattice Reduce Command

I'm going through a very old copy of "Mathematica: A System for Doing Mathematics by Computer" for self practice. I'm on chapter 3, and ran into the LatticeReduce ...
2
votes
1answer
54 views

White region in ContourPlot

The following code ContourPlot[Min[(-7 + 100 t - x) (5 + 100 t - x), (400 t^2 + 40 t (-5 + x) + (-5 + x) (7 + x))], {t, 0, .05}, {x, -1, 5}, PlotRange -> All] ...
1
vote
0answers
71 views

Plotting knot torus

I'd like to plot together a torus and a knot on it, that is, closed curve wrapping around the torus, $m$ times around a circle and $n$ times around the other circle. It will be used to explain ...
3
votes
1answer
78 views

How to use RunProcess to import external function?

I have a functions written in an external language called GO. How can I quickly load them into the kernel for use as Mathematica functions? The two ways I've tried are with MathLink and LibraryLink ...
2
votes
2answers
101 views

Understanding `NestList` with multiple functions

General question For a function f[n, a], where a is a list and n is a whole number, what is ...
2
votes
0answers
57 views

How does Mathematica resolve symbolic systems of inequalities?

Before getting into my (probably annoying) question, let me provide some context: I recently started using Mathematica to automatically perform stability analyses that I previously did by hand. A ...
3
votes
2answers
78 views

Label rows and columns of an ArrayPlot?

Is it possible to label the rows and columns of an ArrayPlot? I have a somewhat large matrix, about 90x90. The rows and columns of this matrix have names. I want to plot this matrix using ArrayPlot, ...
1
vote
2answers
72 views

Draw Multiple Polygons Given Their Vertices

Hi I have a very simple question but I haven't been able to find a set answer. How would I draw a bunch of polygons on one graph. The following does not work: ...
1
vote
0answers
39 views

Wrap custom control inside Manipulate or DynamicModule

[Apologies if this is a duplicate: I have looked at quite a few related questions but have not seen this issue dealt with] I have built a custom control, using the following method: ...
2
votes
0answers
58 views

$Epilog does not work when exit

The following code does work: $Epilog := Print@1; Quit[]; But if I close the document and exit WM or click QuitKernel, it does not work. Why?
0
votes
0answers
31 views

Setting chartlabels in a histogram

I have two data that I use to build the following histogram code: ...
5
votes
3answers
248 views

Comparison of Dispatch objects ureliable in Mathematica 10

In 2008 I wrote a group theory package. I've recently started using it again, and I found that one (at least) of my functions is broken in Mathematica 10. The problem is complicated to describe, but ...
0
votes
1answer
40 views

Entering block matrices, general case doesn't work

I want to enter several matrices at different positions in blocks. There is already a very similar answer here: http://mathematica.stackexchange.com/a/3562/6138 I thought that simply generalizing ...
0
votes
0answers
54 views

1/2D FDTD problem [on hold]

So I have been writing a code in order to simulate 1D initially wave propagating trough a slit and then a 2D just for completeness. Problem is the 1D version doesn't want to give me anything for some ...
0
votes
0answers
21 views

Integer linear problem (ILP) example, with 3 constraints and an additional restriction? [migrated]

Say I have the following Integer Linear problem: $x_1 \geq$ 0 No. of Item A $x_2 \geq$ 0 No. of Item B $x_3 \geq$ 0 No. of Item C $x_4 \geq$ 0 No. of Item D Maximize z = ...
1
vote
1answer
33 views

Minimization problem in a subset of Complex matrices

I would like to minimize $||\mathbf{A} \rho -v||$ (where $\rho , v$ are fixed vectors) with respect to the matrix $\mathbf{A}$ elements, but with $\mathbf{A}$ in a subset of complex matrices (i.e. ...
0
votes
0answers
44 views

How does Mathematica interpolates? [duplicate]

In manual for Interpolate function it is said, that possible method of interpolation is Hermite. Unfortunately, I can't see ...
0
votes
0answers
48 views

Solving a large system of nonlinear equations

I have a system of 80 nonlinear equations with 64 variables to solve in Mathematica but it takes a lot of time (about two hours) and then it return "no more memory available" knowing that I have 8GB ...

15 30 50 per page