0
votes
4answers
142 views

Make a program that does union of two lists

I have to make a program that gives as a result the union of two lists using a For loop. I can't figure out how to inspect if the elements of a list are different. ...
0
votes
0answers
47 views

Bincounting multiple data

I have 5number of single column data files and I imported all of them using data = Table[Import["hist501" <> ToString[i] <> ".txt", "List"], {i, 5}]. Now I want to determine the bincount of ...
3
votes
0answers
175 views

Is there a way to profile Mathematica code in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
0
votes
1answer
94 views

Mathematica: issues storing nested list on disk

having trouble with mathematica using nested lists. I want to save a list like this: l1={{a1,{a,b,c,d,e}},{a2,{f,g,h,i}}} So, the nested components do not have ...
1
vote
1answer
115 views

Bug with DateListPlot with ToolTip with NumberForm?

Is anyone able to confirm if this is a bug in version 10.1 on Windows 7 Pro? I am attempting to produce a DateListPlot with ...
1
vote
1answer
68 views

Simple pick up an element from above line [duplicate]

( Did not readily find from Documentation even if used before). NSolve[ 2 x^3 + x ^2 - 5 x + 2 == 0, x] How to collect roots with new labels a,b and c?
1
vote
0answers
63 views

Subscripts in variable names: Bug?

In the following plot, one of the two functions {-par, par} defined by ...
13
votes
1answer
211 views

MinMax function (Mathematica v10.1.0) conflicts with NDSolve`FEM`MinMax?

Bug introduced in 10.1.0 and fixed in 10.2.0 Some problem in v10.1.0 (Windows 8.1 x64) and the new MinMax... ...
5
votes
1answer
156 views

Does RunProcess work on Chinese Windows?

I am asking for feedback from people running Mathematica 10.0.x or 10.1.0 on Chinese versions of Windows. Does the following command work or does it give $Failed? ...
1
vote
3answers
133 views

Many NSolves to interpolating function

I have an expression of the form: expr = TerribleNumericalFunction[U[p]] == SimpleFunction[p] The Simple function is a ...
1
vote
1answer
109 views

Changed appearance of Quantity expressions in v10.1.0

After installing Mathematica v10.1.0 (in Windows 8.1 x64), I noticed a change in appearance of Quantity expressions. For example under Mathematica v10.1.0: while ...
2
votes
0answers
148 views

Simplifying symbolic multiple sums

suppose I have a multiple sum with an unspecified number of indexes: $$\sum_{i_1=1}^n \ldots \sum_{i_k=1}^n x_{i_1}\otimes\ldots\otimes \hat{x_{i_j}}\otimes\ldots\otimes x_{i_k}$$ with $x_{i_j}$ ...
15
votes
1answer
565 views

MaTeX for Mathematica 9

There's a great package called MaTeX that @Szabolcs wrote which allows one to easily use LaTeX within Mathematica for things like axes labels. After hours trying out various other solutions I ...
3
votes
0answers
178 views

Problem drawing a GeoPath polygon with GeoGraphics

I want to draw some polygons bounded with various geographic coordinates. For example, here is the code to draw a triangle between New York, Cape Town and Beijing. ...
0
votes
1answer
78 views

Why does Compile redo the calculation when overflow happens?

When implementing the Numerov method solving Schrodinger equation, I encountered this problem. In order to show the order of the evaluation, Print is added. ...
1
vote
1answer
117 views

Computational Complexity of HypergeometricPFQ

What is the computational complexity of HypergeometricPFQ? I got a result of a product of a multinomial and HypergeometricPFQ and I was wondering if that would be considered a closed form solution ...
0
votes
0answers
44 views

How to draw an ellipse [duplicate]

I'm new. I just started learning how to use Mathematica. I'm trying to draw an ellipse given by the implicit equation $y^2 = 1/625\,(330 625-529x^2)$. I cannot figure out how to do it.
1
vote
1answer
94 views

Why does Mathematica remove some formatting?

I'm trying to save a file as PDF. Using SetOptions[$FrontEnd, PrintingStyleEnvironment -> "Printout"] so it looks nice. There are a bunch of formulas, and every ...
8
votes
1answer
106 views

Iterator variable not blocked in ParametricPlot

Bug introduced in 10.0 and persisting through 10.2 or later It appears that perhaps the iterator variable r is not Block-ed ...
0
votes
2answers
83 views

Question RE DiscreteMarkovProcess Graph Labels

I'm trying to label the arc's of my Markov chain with symbols like $\alpha$, $\beta$, etc., to show how the Markov chain looks abstractly. So, I did this... ...
4
votes
2answers
317 views

ArcTan[x,y] problems

I need an ArcTan[x,y] function that is continuous in (0,2 π) For the standard ArcTan function: ...
0
votes
2answers
120 views

How to Fill ContourPlot

Given a contour plot such as function = Cos[c] + Cos[a] pltc = ContourPlot[function == 1/2, {a, 0, 4 Pi}, {c, 0, 4 Pi}]; How can I color the regions in which <...
-2
votes
1answer
127 views

Recreating in Mathematica a matrix created in Python [closed]

I need to recreate in Mathematica this matrix that I created in Python: ...
1
vote
1answer
270 views

Fixed colors for fixed values in contourplot legend

I am trying to make a contour plot of a gravitational potential, consisting of a sum og different potential.s. I would like to plot them separately with a BarLegend that has the same colors for the ...
3
votes
1answer
108 views

Strange Integrate messages / $RecursionLimit being ignored

Bug introduced in 10.1.0 and fixed in 10.2.0 The following behavior was observed in Mathematica 10.1 (Windows 64 bit) When attempting to evaluate the following integral, Mathematica outputs ...
0
votes
1answer
70 views

Plotting six chosen rows of a matrix

I have a matrix,W, whose dimension is n x n, each entry is a number. I need to plot only the values of six rows, namely those ...
1
vote
1answer
103 views

Why NDSolve cannot solve such a simple set of differential equations? [closed]

I want to solve a set of ODE like below, but Mathematica outputs nothing for this which greatly confused me. WHY? ...
4
votes
1answer
99 views

How to make a style for paragraphs with hanging indents

I am making slides with text. I created a style template, but I cannot see how to make a style for a hanging paragraph. Is there a way to do this?
0
votes
0answers
21 views

blank part in the contour plot [duplicate]

Why did my listcontourplot have some blank part like the below? I've checked that my data is in the range of [2.5, 4]. Is it because that it changes so fast??
0
votes
0answers
101 views

Solving Lagrangian (4 vars to solve for)

I'm a bit new to Mathematica, but here's what I've got: ...
4
votes
1answer
281 views

How to draw a tropical surface?

By definition, a tropical surface in $\mathbb R^3$ is the set of points $(x,y,z)$ where the maximum $f=\max(f_1,f_2,\dots,f_n)$ is attained at least twice, here $f_i$ stand for some linear functions ...
1
vote
1answer
91 views

Calculating a function repetitively without using a For loop

In my programme I have defined all these functions: ...
1
vote
0answers
57 views

How to preserve “itemize” format when converting mathematica notebook to a latex file?

When I convert a Mathematica notebook containing following cells with "itemize" format to a latex file these cells become raw text format like this: ...
2
votes
2answers
130 views

Is there the possibility to write many times a value in definite list of file1.nb?

The commands testData = RandomReal[{0, 1}, {1, 1}]; Export["C:\\Users\\Alex\\Desktop\\1\\file1.nb", testData]; write the “testData” (value generated by Notebook)...
1
vote
2answers
177 views

Complex numbers from two arrays with Real and Imaginary parts

I have two arrays, containing the real and imaginary parts of a list of complex numbers. Re = {{Re_number1},{Re_number2},...} Im = {Im_number1},{Im_number2},...} ...
1
vote
3answers
84 views

Fill an array, symmetric with respect to its centre

I want to create an array that must be symmetric with respect to the centre of it, as in the following example: 0 1 2 3 4 3 2 1 but, instead of having such ...
1
vote
1answer
164 views

Problem with using GraphicsColumn

I have three plots defined as: ...
0
votes
2answers
189 views

Drawing nodal lines of wave equation

I am new to Mathematica and I want to produce the following figure wich represents the nodal lines of wave equation. Can anyone help?
-3
votes
1answer
101 views

How to draw phase portrait graph for nine system of differential equations in mathematica? Can have a code for darwing this? [closed]

The differential equations for the transmission dynamics of HIV/AIDS are given as follows: ...
4
votes
2answers
219 views

Assumptions with patterns

I want that Mathematica assumes every symbol like Subscript[s,i] to be evaluate as a real and positive number. I have tried ...
0
votes
2answers
75 views

Integrating ODE's

I have: $$ m\frac{dV_y}{dt}=-k\cdot V_y-mg $$ where, $V_y$ is velocity in the $y$-direction. I have the initial condition Vy[0]=40 Sin[40 Degrees] and ...
0
votes
0answers
28 views

How do I get Mathematica to evaluate symbolic linear algebra [duplicate]

First of all, I am VERY new to Mathematica. That said...I have defined vectors as: e1=2x-y and e2=x+y (x and y are orthonormal). I also defined the dot products of x and y in Mathematica. I want to ...
0
votes
1answer
187 views

Finding gradient of equiangular (logarithmic) spiral

I encountered a problem in determining the gradient in cartesian coordinates (x,y) of a logarithmic spiral (or equi-angular spiral) profile. The log-spiral definintion is as shown below (similar to a ...
0
votes
2answers
64 views

string and subscript in label

...
1
vote
1answer
95 views

Complicated equation solving

I want to find the maximum point or optimal value $y$ of Rx1[y_, a_, b_]. ...
-1
votes
1answer
123 views

Time series package in Mathematica 9 [closed]

Is the time series package already installed in Mathematica 9? I have already installed Mathematica. Do I need to install the time series package? If so, from where? or should i go for Mathematica ...
0
votes
1answer
67 views

How can I perform this integration in Mathematica? [closed]

I am new to Mathematica. I want to find the integration of the following expression: $H(f)=T\left(\frac{sin(\pi f T)}{\pi f T}\right)^2$ Here, $T=1.127e-7$ I want to integrate this function for a ...
15
votes
1answer
1k views

How to Fold over lazy lists and over tasks, just as with Lists?

Many modern languages, such as Haskell, feature lazy lists, which can model infinite sequences of values, albeit synchronously. Lately, the reactive programming movement has shown that asynchronous ...
0
votes
0answers
30 views

ContourPlot looking choppy [duplicate]

I want to plot a simple curve, the bifolium (x^2+y^2)^2-yx^2=0. I entered n=1/2; ContourPlot[(x^2 + y^2)^2 - y x^2 == 0, {x, -n, n}, {y, -n, n}] into mathematica and got the plot which looks very ...
3
votes
1answer
61 views

listcontourplot on a sector of a circle [duplicate]

s = Import["Desktop/tension.xlsx"]; ListContourPlot[s, Contours -> 10, PlotLegends -> Automatic] In fact, it is a contour of a circular part from (2,0) (4,0)...

15 30 50 per page