2
votes
1answer
75 views

Manipulations with options

I have two functions with options, for example f and g ...
0
votes
1answer
12 views

Why can't I change the Magnification in Printout Style in Default.nb

This happens with Mathermatica 10.3.1.0: When working with a notebook, I can choose between different working environments. However, they inherit their settings from Default.nb situated at ...
5
votes
2answers
795 views

How to create a histogram of annual events, such as cherry blossom time

I have calculated blooming and ripening times for a specific variety of plant, based on actual temperature data from over 40 years. I would like to create two histograms on a single axis; one for ...
5
votes
5answers
82 views

How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?

I want to have two groups of $n$ random numbers $u_i$ and $v_i$ in $U(0,1)$, such that $\sum u_i = \sum v_i$ What I tried is: I can firstly get $u_i$ by ...
0
votes
0answers
18 views

Phase space of a system of differential equation

I have a system of three Coupled nonlinear equation of a physical system and i would like to plot the phase space. My system is a chaotic system dependant of three variable dependant of time (l1, ...
0
votes
0answers
15 views

Manipulate Problem in a Queueing Network Process

I have a two stage queueing network and want to vary the number of servers at the second node. The input data and the Manipulate command is below: ...
1
vote
2answers
103 views

Symbolic vs numerical integration

This is related to a question that I asked before but didn't resolve quite well. I want to obtain the solution of the following expression analytically: ...
3
votes
1answer
37 views

MeshRefinementFunction missing points

I'm doing some FEM on a rectangular region with a spherical cavity: ...
0
votes
0answers
44 views

Possible memory leak in FindMinimum? (MMA v10.0)

So I was running some code when I noticed Mathematica was gulping memory, and after some debugging I think the culprit is found. It turned out the function ...
42
votes
7answers
21k views

Labeling individual curves in Mathematica

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I've read and my personal ...
5
votes
2answers
98 views

Linear fit with conditional noise distribution

I need to fit a linear model of the form $y_i = a · x_i + b + e_i$. The $e_i$ are independent noise from a distribution that depends on $x$ as well as on global parameters of the data; however, the ...
2
votes
1answer
106 views

solving coupled differential equations with parameters subject to optimization problem

I have an equation, but I don’t know how to program it in Mathematica: x[0]==1; y[0]==1; x'[t]==(a+b) x[t] y[t]; y'[t]==a b y[t]/x[t]; where ...
2
votes
0answers
84 views

Efficiently generating tuples with Outer

I'm trying to efficiently generate tuples of lists of objects that satisfy a given criterion. The similar questions that I have found on this website end up finding a specific workaround for the given ...
0
votes
1answer
18 views

Length in Compile encounter “type Integer encountered in assignment of Type Real ”

Compile[{}, Module[{n}, n = Length[{1, 2, 3, 4}]; n = n/2]] The above code will emit errors Compile::cset: Variable n of type _Integer encountered in ...
7
votes
3answers
127 views

How to extract a contour line (or a region) from a ContourPlot?

Given a ContourPlot with a set of contours, say, this: is it possible to get the contours separating domains with the different colors in the form of lists? ...
1
vote
1answer
364 views

Numerical solutions of Gross-Pitaevskii equation

I am trying to solve the Gross-Pitaevskii equation numerically and using NDSolve, but this seems to be a dead end. The problem is boundary and initial conditions ...
2
votes
1answer
55 views

Notebook Magnification changes - Why?

I have written a notebook but in order to edit it, I prefer 125% magification or even 150%. I know Window>Magnification. Also there is a small symbol on the right bottom of the notebook, where I can ...
3
votes
0answers
67 views

Export bug in combination with ParallelTable?

I am programming with Mathematica 10.3.1.0 on Windows 10 Professional 64 Bit and have an i7-4940-MX 3,1 GHz processor (4 cores). When I use in the example code below ...
0
votes
0answers
24 views

File filter in SystemDialogInput

I want to write a SystemDialogInput function that allows user to choose a file from a directory. In the directory, there are two kinds of image files: Atom images: The name of the file is in the ...
6
votes
1answer
95 views

Add terms to nested list

Suppose I have a nested list of the following: list={{1,2},{5,8},{4,1}...} I would like to add a number to each first term of the list. The output would be ...
2
votes
1answer
35 views
1
vote
2answers
52 views

intermediate steps of simplification of algebraic expression without evaluation

I am using MMA do do some algebra and I need to do some simplification. For example, I have the following expression $$ x^2 \left( \frac{6 \left(2 c_1 x^6+c_2\right)}{x^4} \right)-x \left( 4 c_1 ...
1
vote
1answer
40 views

How to refer a number in a list with two columns, first one is a number and the second one is empty?

Let's say, I have defined a list as list = {{-31, -31}, {52, }, {34, -11}, {-38, }, {78, -44}, {-36,14}, {-9, 98}, {33, 6}, {82, 99}, {-85, -10}} As you can see, ...
2
votes
0answers
29 views

Automatic text-wrapping in labels in `TimelinePlot`

Part-related to this question and part-related to this one, I would like to make use of the new features of TimelinePlot in 10.3, but would like to incorporate some ...
5
votes
1answer
198 views

How to construct a tree from a notebook?

Given the notebook itself we can think of it as a tree graph: the root vertex is the empty notebook itself, the headers of cell groups are vertices, and all other cells as leaf vertices. I'd like to ...
1
vote
1answer
85 views

Out of range red glow on inter-dependant sliders in manipulate

In manipulate, I need to define two sliders : one basic slider, and a second one for which the end value depends on the current value selected on the first slider. How can I achieve this in ...
1
vote
1answer
48 views

How do I write a function inside a ArgMin

I want to solve this ArgMin[NIntegrate[(Tanh[x] - Erf[x/a])^2, {x, -5, 5}], a] and it does not work, what is the correct way to do this? ...
1
vote
0answers
31 views

Changing from Cartesian to polar coordinates in partial differential equation [duplicate]

I have a partial differential equation: $$\left(x^2+y^2\right)\frac{{{\partial ^2}u(x,y)}}{{\partial {x^2}}} + x^2\frac{{{\partial ^2}u(x,y)}}{{\partial {y^2}}}=0$$ How to change from Cartesian to ...
1
vote
0answers
48 views

System of equations is solved by NDSolve over just a tiny domain

I'm solving numerically a system of differential equations with the use of NDSolve. The numerical integration works only only a very small interval of the argument. I'm wondering if anyone could help ...
3
votes
0answers
38 views

Numerical instabilities of a convection-(non-)diffusion equation when shrinking from a square to a triangular domain

I am trying to evaluate a parameter-dependent indefinite integral using a PDE-based scheme I described here, and I'm having some trouble when I try and cut down the domain from a square to a triangle. ...
3
votes
1answer
57 views

How can I numerically pre-compute an indefinite integral with a parameter?

Suppose I have a function $f(t)$, and I want to compute its indefinite integral $$F(t)=\int_0^tf(\tau)\mathrm d\tau.$$ Moreover, suppose that, for any of a number of reasons, I require this integral ...
0
votes
0answers
27 views
1
vote
2answers
91 views

Mathematica 10.3+ freezes on first evaluation after start-up (Mac)

When I launch Mathematica and write the first command and press Return+Shift, whatever the command is, it takes forever to evaluate — about two minutes. Immediately ...
2
votes
2answers
214 views

Follow each pixel brightness in set of images (Memory constrained)

I have a set of 2700 consecutive png images (8bit, 2048*2048 pixels). I would like to visualize the intensity variation of each pixel vs. image number. Here is an example of 10 images: ...
6
votes
0answers
236 views

CountryData fails for some tags and properties

The problem has gone, presumably resolved by WRI. See kirma's comment. I'm using Mathematica 10.0.2 for Mac, and for the first time just tried CountryData. ...
-7
votes
0answers
31 views

Optimization (minimization) of equations with conditions [on hold]

I need to minimize the expression a+(b/3) + c under the conditions: ...
1
vote
1answer
79 views

Vector graphics in Export for Video rendering

I am trying to generate a vector graphics video in Mathematica. I stumbled upon SWF format (PNG are raster images which I'm not interested in). SWF format works fine for me but the axes and the ...
8
votes
1answer
585 views

remote kernel through SSH

Is it possible to setup connection to remote kernels through ssh? I'm able to SSH into the remote server(linux) and start a kernel in the terminal, but it can't connect back to my local front end. I ...
-7
votes
2answers
53 views

How to solve for the eigenvalue in matrix?

For which value of $a$ in the matrix {{a,2}, {3,4}} has the matrix eigenvalue of $0$? How to solve it in Mathematica?
0
votes
0answers
16 views

Custom configuration of kernels in Mathematica for multiple remote hosts

Yesterday I succeeded in getting a remote kernel working on a remote Linux machine. Now since the method I use gets me to initiate kernels manually, I was wondering if I could start kernels on two or ...
0
votes
0answers
35 views
0
votes
1answer
42 views

How to represent one variable in terms of others in a system of equations? [on hold]

I have an pretty complex equation set But when I clicked Ctrl+Enter (a.k.a Evaluate Cell), nothing happened. What should I do?
2
votes
2answers
43 views

Manually assigning Axes label position in Plot3D

How can I adjust the position of axes labels with respect to the axes they are bound? Like shifting slightly right or left. I do not what to destroy the graphics' dynamics and render it 2D. ...
0
votes
1answer
62 views

How to solve this recursive system?

I try to solve the equation system as ...
0
votes
0answers
22 views

How define shortcuts to specific OptionInspector points?

I often assign label to cells by OptionInspector (SHIFT + CRTL + O) > CellFrame > etc. It would be great to have the possibility to jump directly to CellFrameLabel or, even better, to edit the label ...
-1
votes
0answers
29 views
-2
votes
0answers
65 views

I need to write an animation of something l [on hold]

I need to write an animation of something like this: [![enter image description here][1]][1]

15 30 50 per page