2
votes
0answers
63 views

Ubuntu: Dynamics are not working after suspending system

I'm working on Ubuntu 14.04 LTS 64-bit and I'm running Mathematica 10.1. Usually, I don't turn my computer completely off but I'm using the Suspend function which is AFAIK a suspend to RAM. After ...
4
votes
1answer
101 views

WhenEvent used in a PDE to output independent variable

I want to use WhenEvent with a PDE after it has reached steady state. I'm posting a system of 2 equations (my real system has 6) and I'm solving the advection-diffusion-reaction 2nd order PDE. First ...
8
votes
2answers
326 views

How to copy and paste $n$ lines from a text editor to $n$ cells?

If I copy from an external editor to Mathematica notebook a block of lines (with a code) line 1 line 2 ... line n then whole text is copied to a single cell. I ...
-1
votes
1answer
63 views

Need help plotting multiple functions [closed]

a = 0.5 b = 0.33333 r = 1.5 e = -0.33333 f = 1 g = 1 m = 0.00001 n = 0.33334 o = 0.00001 p = 0.000003 DSolve[{ x'[t] == a*y[t] , y'[t] == -bry[t] - x[t] - e - f + g*y[t], z'[t] == m*(x[t]...
6
votes
1answer
139 views

Draw from a given list according to empirical distribution

I have two lists, where each time I have age-income vectors. Given the distribution of age in the first list, I would like to draw a sample with the similar distribution of age from the second list (...
3
votes
1answer
109 views

Extracting a time series from a sound object

After importing a sound file, how can I generate a time series (preferably as an $n\times 1$ matrix) which gives the intensity at equal time intervals?
1
vote
2answers
80 views

InverseWaveletTransform of a list of rules

I want to extract coefficient images from a DiscreteWaveletTransform and replace them by modified images of the same dimensions. However, when I use ...
3
votes
0answers
47 views

TimeSeriesInsert issue with Quantity expressions

Solved in Mathematica v10.3 This first sample code works as expected: ...
10
votes
3answers
206 views

Association of Associations : how to permute level 1 and level 2 keys?

I have a ragged Association of Association, say : ...
0
votes
1answer
314 views

Traces of products of Gell-Mann matrices in FeynCalc

I am working on an assignment in FeynCalc and I need to evaluate traces of products of two commutators of Gell-Mann (SU(3)) matrices, i.e. I need to calculate the ...
1
vote
0answers
80 views

Mathematica does not recognize RegionPlot3D? [closed]

I've been desperately trying to graph a 3D region fitting the following three inequalities: -x <= z <= x -y <= z <= y (x-y)/2 <= z <= (x-y) ...
7
votes
1answer
108 views

Way to add a same option to multiple functions

Just wanna figure out if there is a decent way to add a same option to multiple functions simultaneously. For example I have a series of SoundNote: ...
7
votes
5answers
639 views
4
votes
1answer
311 views

Smoothing a unit step function

I want to smooth a unit step function for use in NDSolve so this function is a smooth function of time (t). How can I do the ...
7
votes
1answer
423 views

Plotting iterated function system images

I'm new not only to this forum, but to Mathematica in general, evidently. I'm running into an issue, and my best attempts at Googling solutions (and trying the search box for this forum) came up with ...
13
votes
1answer
481 views

Any solution to transfer data between Python and Mathematica

I think Mathematica handles .mat file not very well, python is pretty good at this kind of jobs. In this site, there are plenty of question related to calling Mathematica from Python, or calling ...
1
vote
2answers
236 views

Plotting data from multiple text files

I'm new to mathematica and stack exchange, so any help would be appreciated. I want to plot a bunch of data from text files that contain a lot of extraneous data. I have a hundred files with different ...
3
votes
2answers
447 views

Using periodic boundary conditions in NDSolve

I need to solve a 2D linear elliptical equation in polar coordinates using NDSolve, but I can’t seem to get Mathematica to accept the required periodic boundary conditions. My actual differential ...
5
votes
2answers
105 views

Locator-based abscissa ranges widget

I'm trying to implement a widget that will enable users to graphically determine certain abscissa ranges in a 2D plot. I've started by coding a prototype, whose output looks like this: The idea ...
15
votes
4answers
618 views

How to plot Ramanujan's continued fraction in Mathematica?

I want to plot Ramanujan's continued fraction: $$R(q)=\cfrac{q^{1/5}}{1+\cfrac{q}{1+\cfrac{q^2}{1+\ddots}}}$$ but I do not know how to define this function in Mathematica. How do I define and plot $R(...
7
votes
1answer
202 views

Automatically grouping words into categories

Say I have a comma-separated list of words. For example sake, let it be things I have seen during my trip to a safari zone. It would look something like that: ...
0
votes
2answers
68 views

How do I plot this function? [closed]

I have this function that I need to plot y[x] == 0.140628 + (-3.55298 - 4.10235 E^(0.14212 x))^(-1) I have tried ...
1
vote
1answer
112 views

Unexpected inefficiency when calculating matrix product by Dot

There is an unexpected inefficiency when I calculate matrix product by Dot. The only relevant part of my code is presented as follows: ...
2
votes
1answer
185 views

Simplification of exponential

I would like to understand why FullSimplify doesn't entirely simplify this expression ...
6
votes
5answers
271 views

How convert list of numbers to list of points on x-axis? [duplicate]

I have a list of real numbers, say: vec = RandomInteger[{1, 20}, 6] (* {2, 4, 7, 10, 13, 6} *) I want to convert each of these numbers to the corresponding ...
6
votes
0answers
72 views

Functionality of FindMaximumFlow

I know that the superseeded function NetworkFlow (needs Combinatorica) uses Goldberg-Tarjan's Push-Relabel-Algorithm but i cant find any information on Mathematica's built-in-function (...
5
votes
2answers
245 views

PlotMarker differences in ListPlot between Mathematica 10.0.1 and Mathematica 10.1

I try to plot this data with ListPlot ...
5
votes
2answers
204 views

Is it possible that we can use “+” to add two vectors in polar form?

For example, $a=(2,\pi/4)$, $b=(3,\pi/3)$, if we want to get the result of $a+b$, using + operator will not do, because mathematica will ignore the polar form, and ...
10
votes
2answers
298 views

How to use NDSolve with discontinuities at internal boundaries?

I don’t know how to impose discontinuous internal boundary conditions (BCs) in NDSolve, so I’ve set up an example problem to illustrate my issue. Consider the simple first-order ODE for $f(z)$ on the ...
3
votes
2answers
122 views

How should I tweak the options in NIntegrate?

I'm trying to obtain an accurate result from a difficult-to-integrate function and I've thrown in the kitchen sink worth of options in NIntegrate. I think I'm ...
25
votes
0answers
424 views

Summer Solstice Spurious Correlations Challenge [closed]

I came across this hilarious web site that has charts of bizarre "correlations" between disparate categories. Results like this: In the spirit of my summer solstice shedding spuriously earned rep. ...
14
votes
2answers
630 views

Solve differential equation using a integral form boundary condition

I have a second order differential equation and I want to solve it analytically (DSolve) and numerically (NDSolve) with ...
10
votes
3answers
292 views

Mathematica equivalent to Python long raw strings? handling escape characters in packages

I'd like to write the following in plain text .m file in Mathematica, without having to double escape all the Latex commands: ...
4
votes
3answers
137 views

Change value associated with keys using alternatives

I have a List of Associations that contains a Key called "ClaimBasis". There are about 10 possible values that ClaimBasis can take on, one of them being the value Null. I want all values that are ...
1
vote
0answers
48 views

reset the value of a variable [closed]

Folks, I have a problem in populating a matrix without overriding the values. After performing computations for various values for j, I want to store these values in following matrix. Here is the code:...
0
votes
1answer
138 views

Fourier series of the odd extension of a function [duplicate]

Using Mathematica to make a plot, I noticed that the interval it's defined over must be changed in order to do the Fourier series. How do I change the interval to be on an interval of $[-{\cal l}, {\...
11
votes
3answers
427 views

Best method to find variation in width along the image of a slit?

EDIT: Solutions by @Alexey Popkov and @Vitaliy Kaurov are very intuitive and both can be used to find a solution for the task. I have a slit of 15-18 microns by 1 mm projected with magnified 4X onto ...
4
votes
2answers
89 views

Limiting grid line length in combined TimelinePlots

I am trying to make a complex TimelinePlot in which temporal periods are indicated as shaded areas (using Filling -> Axis) ...
8
votes
1answer
187 views

Dynamic does not update when wrapped in DynamicModule

I'm trying to wrap some dynamic code into DynamicModule to localize all the variables, yet when I do that, the variables stop updating. That does not happen if I ...
5
votes
1answer
122 views

Wolfram Script Not Completing when ran as cron job

I have a fairly simple Wolfram script called from within a shell script that I would like to run at certain times. The shell script calls a python script to get some recordings to from GPIO and saves ...
9
votes
1answer
126 views

How to implement a custom random process object?

I want to implement a custom random process thing1 to pass to RandomFunction. The process I have in mind is conceptually extremely simple: two alternating Poisson ...
5
votes
1answer
259 views

Executing Mathematica code via Notepad++

I wonder if there is a way to execute Mathematica code via Notepad++. After some searching on the web, I found that there is a user-defined language that supports Mathematica highlighting, but there ...
2
votes
1answer
185 views

Confusion with SplineFit (Angle calculation)

This question is continuation to this other one I am creating polymers (where each monomer is of equal length) using this method: ...
3
votes
2answers
124 views

Efficient Sampling of A (Countable) Discrete Distribution

I have a sequence of positive terms $(a_n)$, for which $\sum_{n=1}^\infty a_n = A <\infty$, and wish to take a psuedo-random sample from the discrete probability distribution \begin{equation} \...
2
votes
1answer
101 views

Using PlotRange to cut off outlying points

In the documentation for PlotRange, there is the following line: If a particular minimum or maximum is specified as {Automatic, α}, this means that the range ...
4
votes
2answers
172 views

Dot product for lists

Suppose we want to get the dot product for the following lists aa and bb, whose elements (a, ...
1
vote
1answer
138 views

How to find zeros of 16th degree polynomial with coefficients which contain one symbolic parameter?

I'm trying to find eigenvalues of matrix which is 16x16. Here is a part of matrix: ...
2
votes
0answers
91 views

Is it possible to automatically apply Parallelize when possible

Parallelize in Mathematica is pretty easy to use. Most of the time, applying Parallelize to an expression, it tries to evaluates ...
2
votes
1answer
67 views

Custom display for constructed functions

In a similar vein to my previous question, is it possible to define a function that displays differently to its default? eg I would really like Binomial[a,b] to be ...

15 30 50 per page