# All Questions

94 views

### Simple Macro or Meta Programming for Data Analysis [duplicate]

I have a large number of data variables that are represented in MMA as symbols set to lists. For example: x = {1, 2, 3}; y = {4, 5, 6}; I want to be able to ...
49 views

### Contour plot of an interpolated input variable conditionally as functions of other inputs

I have evaluated a function of three variables. Under loops of all three variables a list is generated for the evaluated function. I now like to have an idea how the first input varies in the ...
53 views

### DateListPlot input entry problem

I imported some data from Excel and got the following for my date and values: {{{1986, 1, 2, 0, 0, 0.}, 25.56, ""}, {{1986, 1, 3, 0, 0, 0.}, 26., ""} It seems ...
113 views

### Adapting “Find and Replace” functionality to work with Patterns

I was thinking if there is something like Find and Replace (Crtl+F) functionality adapted to work with patterns. Probably not, but it seems possible to create this with some effort and skills in ...
31 views

...
75 views

### Importing Data with Line feeds

I am trying to import data from a CSV file into Mathematica that contains line feeds in certain elements that I wish to be properly rendered in Mathematica. I suppose this has something to do with the ...
145 views

### The best method of constructing a product of consecutive terms

I am new to Mathematica, I am searching for a way to create an expression with a sequence of terms such as: (x-1)/x (x-2)/x (x-3)/x (x-4)/x … (x-n)/x
45 views

### Exporting multiple arrays in a single HDF5 file in Mathematica 7

I am using Mathematica 7 and I need to export a table of data and the corresponding x and y arrays. I would like to format them ...
35 views

### NMaximize with matrix input

I defined function f[x_, fixed_] := {...}. Here x is an $M\times N$ matrix. I want to maximize $f$ with respect to $x$. I have ...
65 views

### Fixed color scale in multiple density plots with Fixed PlotLegends scale

From the great answer of Mr. Wizard, I would like to learn how to implement the associated PlotLegends scaled too. Here is the simplest example with PlotLegends, which does not look to be scaled: ...
99 views

### How to simulate the response of a linear parametric varying system in Mathematica?

Consider the following system \begin{align} \dot{x}(t)&=\sum_{i=1}^{2}\rho_{i}(x(t))\left[A_{i}x(t)+B_{i}u(t)\right]\\ y(t)&=Cx(t) \end{align} with: ...
93 views

### Combine multiple notebook files into a pdf/rtf/word/etc file?

It's the end of the semester and I have a prof who wants me to turn in a printout of the nb files ive worked on. I have 33 separate files, and I was wondering if there was any easy way I could combine ...
51 views

### Errors when using NDSolve in one computer, but not in others

I am trying to estimate some values using NDSolve[] together with Map or ParallelMap in ...
46 views

### Animated 3D graphics is low resolution [duplicate]

I'm trying to animate a 3D shape in Mathematica 7. It's working, but the graphics is extremely crude while animated. The resolution gets better if I stop the animation. Is there a way to get a nice ...
84 views

### InverseFunction on an Interpolating Function is misbehaving

I am getting strange behavior when I try to calculate the inverse of an interpolating function for two similar data sets. My data sets are: ...
51 views

### recurrence relations

If I write f[i_] := Expand[FunctionExpand[x^(i/5) LerchPhi[x, 1, i/5]]] for any i < 5, the result is a linear combination ...
353 views

### Find radii of concentric circles in image

I have an image of concentric circles, I would like to find the radii of the circles (only the innermost few are important). I've had a go using what I could find in previous posts, but am a bit ...
42 views

### Color of numbers and defined functions [duplicate]

How do I change the color of numbers and the text representing defined functions in my notebook?
55 views

### How to export to .html .nb file together with links «in» and «out»

If use «File > Save As > HTML» lines «in» and «out» are lost To save a document without loss of these lines/links?
90 views

### Tooltip not working in web deployed cdf

I deployed a CDF file in a web page. I used both Mouseover and Tooltip functions. They both work in the raw CDF file. The ...
101 views

### Finding n-th term of a sequence of functions

Lets say, I have the following series of functions, $f_1=a+1$ $f_2=a^2+2a+1$ $f_3=a^3+3a^2+3a+1$ Assume that $f_4, f_5,$ and $f_6$ are also known. However $f_n$ is not known as a function of $n$. ...
128 views

### How to label axes in 3D plot adequately?

The following code produces plot with axes labels, which are jumping constantly. ...
359 views

### Wallis Formula and Pippenger Product---How do we get symbolic output?

The Wallis Formula computes $\frac{\pi}{2}$ OEIS and the Pippenger Product computes $\frac{e}{2}$ OEIS. Here is a combined formula: ...
37 views

### How to plot a graph of bay of bengal and marked known two coodinates (lattitude ,longitude) in that graph? [duplicate]

I want to get a map of bay of Bengal and marked two known coordinates in that map.How can I do that ? please enplane me.
53k views

### QR Code in shopping cart handle

This week, the market people from my work wanted to put QR codes in shopping cart handles, but when they tested it, the QR code did not work. I noted that the cylindrical curvature (even small) ...
139 views

### Mathematica 9 can't integrate this function but earlier versions could

Integrate[ ArcTan[x]/(1 + x) Log[(1 + x^2)/2], {x, -1, 1}] I used Mathematica 9.0.1 on Windows7 32bit, Mathematica 9 cannot compute this, but Mathematica 8 gives ...
51 views

### Algorithm for the Ornstein-Zernike equation with Percus-Yevick (PY) approximation [closed]

I want to solve the Ornstein-Zernike equation using the Percus-Yevick approximation in Mathematica and acquire the numerical solution for the $g(r)$ function. I found a python algorithm here which is ...
100 views

### Pattern definition for replacing plus and subtract

Suppose I have two functions $h_1(x)$ and $h_2(x)$, for which we know their sum and their difference: $$h_1(x)+h_2(x) = d(x) \qquad h_1(x)-h_2(x) = i f(x)$$ I have a complicated expression, in ...
51 views

### 2D list interpolation within restricted domain

I have some 2D neuroimaging data. Each {x,y} coordinate is associated with a value. I want to smooth this data, and have been having some success using ...
145 views

### Aligning axes labels on multiple plots

I'm trying to create some "publication quality" figures, but Mathematica is fighting me all the way. So my question is: Should I switch to Origin? Please help! Well, all joking aside: I'm trying to ...
69 views

### How to apply a free-form input Function using InputField

I am trying to take a free-form input Function to create a list using NestList. ...
174 views

### How to graph a series of coupled oscillators and watch the wave move along them

Here are the differential equations that set's up the 11 coupled oscillators. ...
481 views

### Why are my plots displaying behind the axes?

I need to create graphs with light gray axes and black lines. All of my plots display behind the axes. How can I make the plots display over the axes? ...
67 views

### Differing behaviour of GeneratingFunction with different numbers of parameters

When given a single variable sequence, GeneratingFunction is automatically expressed in the most "direct form", for example, ...
43 views

...
302 views

### Image of input and output cells is not exported correctly

Wolfram Blog uses PNG images to display input and output cells in a notebook. For example, the following is an image from Samuel Chen's post: I should be able to produce a similar image by ...
65 views

### Reduced Planck constant and UnitConvert to Erg * Second

I declared the reduced Planck constant by ℏ = Quantity[1, "hbar"] which worked. Now I want to calculate something in cgs units. Therefore, I tried to convert ...
171 views

### Create polygon using edge lengths and area

Four-sided convex land plots are usually denoted with edge lengths and area. How do I create a Polygon Object with these parameters in Mathematica ?
88 views

### Reducing exponential inequalities fails

I am quite stumped by this problem : Reduce[ N^(x-y) <1 && N > 0 , x, Reals] gives the expected result ...
59 views

### How to efficiently count occurrence of some element in a list? [closed]

I have a list of numbers, for example: list = {1,2,3,4,2,1,3}; what would be efficient way to count all occurrences of some number? I tried so far: ...
59 views

### Write a function using pattern test to test whether the input is polynomial and print error message if not

I am doing this which is supposed to be an easy problem and which I think my code should be correct but for some reasons it is not working. May anyone help correcting my mistakes? How should I write ...
79 views

### Shapley value and Mathematica [closed]

I use the TuGames package in Mathematica to analyze cooperative games. Is it possible to calculate Shapley value, Nucleolus, etc., for a large number of players like 400 or more?
53 views

### Forming product of function of prime factors

Given a list of numbers each containing 2 prime factors, I wish to make a list of the products of the logs of each factor. For example, given L = {4,6,9}, I would like to form P = ...
82 views

### When is the output of examples in function documentation rasterized?

Upon building documentation in Workbench, Workbench sometimes converts the output of examples on function pages into rasterized images, and sometimes not. Does anybody know what controls this ...
86 views

### Problem with Sinc[x] function and rounding

I seem to be having some trouble with the Sinc[x] function, and I think it's due to rounding, but I'm not sure. The code is below, with relevant constants: ...
34 views

### 3D plot changes it's size while rotating [duplicate]

When I am rotating drawn 3D plot by mouse it rotates Ok until mouse release. After that it slightly changes it's size instantly. Probably it tries to accommodate document layout or something. Is it ...
64 views

### NIntegrate converging too slowly when increasing size of array

I have a problem with a numerical integration. I have a 4x4x4x4 array that has for each entry an integral and I want to use NIntegrate to evaluate it. It gives me ...
58 views

### Rounding only reals in an expression containing, reals, integers and symbols

I am trying to make a function that would make rounding real numbers in an expression possibly consisting of real numbers, integer numbers and symbols. An example of such an expression is below: ...