# All Questions

94 views

### Rendering of a HighlightGraph in a Manipulate content pane distorted by changing the highlighted edge

A HighlightGraph inside a Manipulate initially displays correct however after approximately 2 seconds, the layout changes and ...
74 views

### NMinimize not starting [duplicate]

I am new to Mathematica so I might be asking a trivial question, although I wasn't able to resolve it for several days. I am trying to optimize a 7x7 matrix with 12 variables with a certain evaluation ...
537 views

### Maximum of Minimum of a two variable function

I have F[x, y] := (y/2)(2 Cos[2x] + 2 Cos[x] + 1)/5 + ((1 - y)/2)(2 Cos[x] + 1)/3. I am looking for the maximum of the minimum of ...
77 views

### Manipulate and OpenerView

I have discovered a problem with OpenerView. My opener views always close when I change the value of the manipulator control in my ...
104 views

### Dramatic increase in memory consumption and performance drop with ParallelMap

Consider the following toy problem: ...
803 views

### How to create these famous surfaces in topology with the desired color effects?

It was said such real objects of famous topological surfaces were plotted by the cooperation between mathematician Richard Palais and artist Luc Benard, and published as the cover page of Science ...
80 views

### Generation of Sliders via Tables/For loops

I have a list named data that contains lists of arbitrary size, data={{0.5, 0.5}, {}, {0.5, 0.5, 0.5}, {}, {}, {}, {}, {}, {}, {}} I now want to generate for ...
30 views

### how to export multiple graphics from Do loop? [duplicate]

I would like to export graphics generated from do-loop as jpg. There will be like more than 100 graphs. I want to combine it later in latex beamer as animation. When I put Export command inside the ...
206 views

### A regularized hypergeometric function related question

I'm interested in finding a way (if possible) of expressing this specific value of the regularized hypergeometric function in terms of known constants. How might I use Mathematica to check this ...
100 views

### Nest Replace Function with different rules

I have a table of data that I want to filter. Any value of zero in the table means that value was not calculated, so it should get populated with the tag "NC". Next the table is filtered for all ...
376 views

### Fourier series for rectangular wave incorrect, why?

I'm trying to get the fourier series function(s) to work for a square wave with duty cycles other than 50% ie rectangular wave. ...
440 views

### Marking specific points on a 3D curve

Here is the curve below. (written as a position vector) r = {Cos[7 Pi*t], Cos[6.2*Pi*t], 2.5*t} ParametricPlot3D[r, {t, 0, 2}] I want to know how I can mark ...
719 views

### Control BarLegend size

I want to plot a big 2D array of experiment data. I need plot axes and tick labels as well as a bar legend using BarLegend: ...
485 views

### Finding all maxima and minima of a function

To find all (global and local) extrema of a function in R3 I have written: Example-function ...
441 views

### Solution given by Wolfram Alpha but not _Mathematica_

Why will Mathematica not give a soluion to Solve[Log[x] == Log[j, Log[j, x]], j], but Wolfram Alpha will?
564 views

### Obtaining the envelope of an oscillating function and perform fitting

There is an elegant way to obtain the envelope of an oscillation function explained here http://mathematica.stackexchange.com/a/27854/15966 My question is how to modify the code below so I can fit ...
156 views

### Trying to combine an image with a Plot

I've got this picture: The image has a resolution of 2001x2001. The left most pixel has an x-value of -2, and the right most pixel has an x-value of 2. Same goes for the y-values. Now I am trying ...
47 views

### Automatic Cuda/CPU code; Fast programme run [duplicate]

I have developed my thesis codes by means of Mathematica software in a .nb file format. Despite using the available Parallel code capabilities and doing all the numerical integrations by means of ...
16 views

360 views

### How to get better quality EPS graphics

Yesterday, I was doing any Tables of 15 graphs similar to the next example, to save .eps and use in latex. In the generation of the graphs Mathematica spends many time. Is possible to reduce this ...
116 views

### What is wrong with my use of Flatten? [duplicate]

Why does Flatten[f[g[a, f[b]], f[c, d]]] result in f[g[a, f[b]], c, d] I expected the answer to be ...
146 views

### Plot roots of B(z) according to angle small to large

I have the following function: B[z_]=((z*(z - 0.5)*(z + 0.5))/((1 - 0.5*z)*(1+0.5*z))) I want to plot the roots this polynomial according to angel like below ...
139 views

### How to construct a coordinate system that owns detailed calibration in the 3D enviroment?

Recently,I write a program to demonstrate the forward kinematics of the SCARA robot.The code showed as below: Using this function to construct the BigArm and ...
83 views

### Is this the expected behaviour from Partition when padding is inserted at the start of the list?

The documentation for Partition shows an example of partitioning without padding, so that no elements are dropped, but the last sublist can be shorter. ...
117 views

### Find Lists with intersecting sublists

I have a list of the following form: ...
437 views

### Plot graphs with ListPointPlot3D and different colours and size of points

Hello I am New in Mathematica. I have a set of points and I want to visualize in Wolfram Mathematica. I want to see big blue points and small green points in one picture. Big Blue points ...
61 views

### What domain does Resolve assume by default?

Consider the statement: $\forall x\left(x<7\Rightarrow \exists a\exists b\exists c(a^2+b^2+c^2=x)\right)$ This is true provided the universe of discourse is $\mathbb{N}$ Now I use ...
208 views

### Selecting parts of a matrix via indices given by a vector

I have a column vector of the form $\{1, 1, 2, 3, 2, 3\}^t$ and an associated matrix that has the same number of rows as the column vector, $6$, and a number of columns that is equal to the maximum of ...
182 views

### Inverse Laplace transform

For this expression: $(1 - Exp[-Sqrt[1+s] x])/(1+s)$ How to make the Inverse Laplace Transform analytically? ...
380 views

### Is this function convex?

How can I determine convexity of the function f = Log[ x, 1 + (x^a - 1) (x^b - 1)/(x - 1)] with the parameters $a,\,b$ belonging to the interval $(0,1)$ in ...
668 views

### How to get UV mapping of 3D tube

Here is cylinder data: file We can mesh the surface, thanks to lalmei, Belisarius and Simon (link) How to achieve uv mapping from a 3d straight and curved tube? Working code: ...
63 views

### How to output (anything) if any error happens

I have long code which goes through iteration process. some times I get error messages. I want to get the iteration numbers (or any kind of output indications) when errors happen. for example, how ...
100 views

### Noninteger indices for tables

Is it bad programming practice to use non-integer values to label data tables? For example, ...
677 views

### How to make Mathematica use the chain rule?

Lets say I have the following PDE: $$x^2 u_{xx} - u_{yy} + u_y = 0$$ And I have the following change of variables: $$s(x,y) = x e^y \, \, \, , \, \, t(x,y) = x e^{-y}$$ How can I use Mathematica ...
251 views

### Algorithm to generate a certain matrix

I am looking for a convenient way to generate a matrix of the following symmetric form (numbers could also run from -3 to +3 or just from -1 to +1): Tips, anybody?
1k views

### Smooth Peter de Jong attractor

Today I was playing with Peter de Jong attractor. At the bottom of the page I've linked there are beautiful examples like: My attempts are not so great: It is around 10^5 points. For more than ...
308 views

### On Parameter Estimation using FindDistributionParameters

I am a novice of Mathematica and have recently started my self-study of maximum likelihood estimation (MLE) using Mathematica. I would like to estimate the parameters associated with a distribution ...
94 views

### Numbering of cases implied by a subset of Boolean vectors

In the course of a programming problem I stumbled upon the following sub-problem. Given an arbitrary, but fixed, number of Boolean variables, I would like to be able to pick a subset of the ...
523 views

317 views

### Euler's method for a 2nd order ODE

This is my first post on this site. Also, I'm new to Mathematica. I'm trying to solve my first problem with Mathematica. It's about solving a 2nd order differential equation. I dont have the explicit ...
214 views

### Moment central of a binary image

I am implementing the Hu set of invariant moments detailed here Hu set of invariant moments. I implemented the moment Image like this: ...
136 views

### shade plane with a color function color(x,y)

I am making a RGB color function which assigns an RGB color to each point in the plane. To check if it does what I think it should do (i.e. debugging it), it is helpful to be able to plot the function ...
199 views

### Simplifying an expression containing radicals

Now I'm trying to use Mathematica to simplify an expression like this: $P \sqrt{-P + \sqrt{M^2 + P^2}} + \sqrt{(M^2 + P^2) (-P + \sqrt{M^2 + P^2})} - M \sqrt{P + \sqrt{M^2 + P^2}}$ where ...
124 views

### Extract memoized results in the form of a rule

Lets say I define a function f with memoization. Is there some way to extract the memoized values? For example, ...
146 views

### Rounding only coefficients

does Mathematica have built in functionality to round the coefficients of a polynomial to a certain accuracy. Say, we do Print[0.2134320980x^2+0.0023432x] Can ...
457 views

### How to open Mathematica from the terminal in OS X

So far, when I was working in Linux, I would open my Mathematica files from the terminal by typing: mathematica filename.nb & But now, I got a mac, and when ...
201 views

### Why does Maximize return a wrong answer?

I want to find the maximum of the following function, but get a wrong result. What am I doing wrong? ...