# All Questions

72 views

### How to attach an “handler” to a PopupMenu inside a Manipulate, using the second argument of Dynamic, when the item list is itself variable

I have some trouble evolving from this ...
56 views

### ContourPlot:show only one of multiple solutions

I have two functions with two parameters (p & x). I am looking for the values of "x" that makes the two functions to be equal, varying "p" from 0 to 1. I have two solutions for this implicit ...
91 views

### RegionPlot after Reduce

I have a problem in this form To solve this I have tried this f1[y_] := 2 - (y - 1)^2; f2[x_, y_] := x + 1 - (y - 2)^2; f[x_, y_] := Max[f1[y], f2[x, y]]; The ...
59 views

### Logic behind Graph[edges, VertexLabels -> “Name”]?

I find VertexLabels -> "Name" a strange setting to achieve graph nodes labeled by their index: ...
105 views

### Can Mathematica draw networks with nodes having multiple layers?

Some example networks like this:
93 views

### Raster image to a waveform, for audio adjustments, as image effects? [closed]

How can a normal (raster) image: Image["URL"] Be converted in the Wolfram Language to a waveform, for example in greyscale, being the sum of all the harmonics in ...
62 views

### How to implement time dependence in the DoFun package?

DoFun is a very usefull mathematica package that helps to write Dyson-Schwinger and FRG flow equations when these are to complex to write down by hand. You can download it here and read it's manual ...
26 views

### How to suppress mouse over error messages on graphics

How do I suppress these they are preventing me from getting coordinates. Here is the code to create the graphic if it helps. ...
166 views

### Reduce gives wrong solutions

Given the follwing system of equations eqs = { x/(x - 2) - 4/y == 1, x/(2 + 1/y) == y/(3 - 1/x) } Although the domain of this system does not contain ...
31 views

### How to generate the list of consecutive pairs from a list? [duplicate]

What is the morally right solution to mapping a list {a,b,c,...} to the list of pairs {{a,b},{b,c},{c,..},..}? The solution I came up with feels a little clumsy: Shift a copied list by one and form ...
178 views

### Something like MATLAB Cody for Mathematica? (Learning through exercises.)

At some rainy days, when I realise again the TV program is getting worse and worse ... I visit Cody: Cody™ is a MATLAB Central game that challenges and expands your knowledge of MATLAB. As a web ...
35 views

### the “natrual value”and the “Pruning”

There are two question by following: First: I want to know the option's natrual value,the the mathematica tell me that it is "Automatic".When I try to get it like this: ...
849 views

### FEM: user material subroutines (UMAT in ABAQUS), mechanics

Just a quick question (mainly for those who are also familiar with ABAQUS or other comparable FEM programs and non-linear modelling of mechanical behavior, e.g., plasticity). Is there any module in ...
160 views

### Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
111 views

### Creating a nonlinear phase portrait

I am putting all of my code in one block for easy copy and paste. ...
75 views

### Limits with assumptions

I have an example where Mathematica is not able to compute limits in a function restricted to assume that the input parameter is Real. I don't understand why this is so. 1. Could someone explain why ...
52 views

### How to obtain coefficients after solving differential equation of order 2 with initial condition?

I have the following answer of a differential equation of order two ...
41 views

### DataRange not working in GraphPlot

I am trying to create a a GUI that uses the GraphPlot function to automatically generate graph vertices. I am using the VertexCoordinateRules option to designate that I want some of the vertices to be ...
74 views

### Evaluating and Plotting Multiple Zero-Counting Functions

In work that I am doing, I am trying to plot multiple zero-counting functions, depending on how a parameter works. For example, if the zeros of one function are {1, 2, 3, 4, 5, 6, 7}, the zeros of ...
43 views

### Strange difficulty with DSolveValue

Consider: sys = {u (1 - u + a v), r v (1 - v + b u)} (* {u (1 - u + a v), r (1 + b u - v) v} *) And: ...
158 views

### How to use PlotMarkers or Mesh with Plot to creat Marks on the plot

I have a plot and I want to format it for journal paper. I just realized how hard to format a plot for academic purposes using MMA. For example: I want this plot ...
51 views

You can Round Quantitys. For example, how many inches are in a meter? ...
44 views

### How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...
112 views

### DensityPlot colours symmetric around zero

I have some function of two variables (which happens to be the error in some approximation I'm interested in). I'd like to get a density plot of the function, such that in regions when the function is ...
80 views

### A With and ContourPlot difficulty

Consider: sys = {u (1 - u + a v), r v (1 - v + b u)}; With[{a = 2, b = 3, r = 1}, Evaluate[Thread[sys == {0, 0}]]] Which gives the output: ...
73 views

### How to get free-form linguistic input to act on a previous output?

It seems that Mathematica is capable of taking free-form input that acts on previous outputs (see "separate color channels"), but I'm having trouble getting it to work in my case. I've got ...
72 views

### Powers of dimensionless quantities: is this a bug?

Today I came across the following behavior: Quantity[x, "Minutes"/"Minutes"]^-1 (* Quantity[1/x, (1/#1 &)[("Minutes")/("Minutes")]] *) It seems that ...
96 views

### Color Snapping When Using VertexColors with a Tube with BSplineCurve as an Argument

I think I've identified a bug in how VertexColors are treated when rendering a Tube object where the underlying data is a ...
71 views

### Generic templating system

I'm trying to implement a templating system in Mathematica, a bit like the List<List<T>> you would find in C#. Here's how it looks so far: ...
78 views

Consider: ...
129 views

### Family of Lines

I need to draw a family of lines connecting (a,0) and (0,b), where a+b=2, and determine an equation for the envelope of this family of lines. I need to do this in mathematica and don't know where to ...
71 views

### Label of Ticks are overlaying

I have a little problem that's driving me crazy. The problem will be clear from the graphic: the text of the tick labels. on the Y-Axis are crossing/overlaying. I tried everything but I found nothing ...
47 views

### Using Check[] on multiple statements

I am using a loop to run run multiple fits. If a fit fails, I don't want it to either appear in my data or to affect later fits so I am using the Check[] function to catch if any errors occurred (I'm ...
276 views

### Extruding a wierd 2D shape to make a prismatic 3D shape

I have the outline of a 2D shape defined by a periodic radius R[θ]. I would like to extrude this linearly to a prismatic 3D object that has my cross-sectional ...
80 views

### How to draw a 3D Plot with non-numerical axes?

I've got a CSV file that looks like this: c1,c2,m1,m2,m3 'a','b',1,0.5,4 ... 'x','y',10,100,4.21 Where c1 & ...
280 views

### How to plot functions in multiple coordinate systems

I´m curious if is it possible to plot in: A. two different Cartesian coordinate system who share the same plane but have different origins and rotation. The visualization should preferably resemble ...
352 views

### How to force Return[] to return from an arbitrary point (like in C++)?

I need to test some complicated conditions to calculate a Return value. But MMa doesn't let you Return[] from anywhere the way C++ does. The structure of my Module is similar to this: ...
262 views

### Implementing the Golden Section Rule

I am attempting to write a code which brackets the minimum of a unimodal function, using the Golden Section Method Below. I am have serious issues debugging my program though, any help will be ...
52 views

### How can I rename the local kernel without causing issues?

I would like to name my kernels. However when I remove "Local" Mathematica becomes unstable, sometimes crashes sometimes doesn't initialize correctly. Is there something special about the name ...
134 views

### Expressing a series formula

I want to generate a series of the following kind in Mathematica: $\quad \quad a(n+1) = a(n) + ({\rm prime}(n+1) - 1)/2 \quad \mbox{for odd primes},$ so that the resultant series is ...
135 views

### Trying to write my own Greedy/ Nearest Neighbor Algorithm

So I'm trying to write my own function and compare it to the results I have from using FindShortestTour. Does anyone know how to find the distance from each city to each of the others without ...
49 views

### Strange evaluating indication of output cells

Something like this happened when I was working with two Manipulate cells. I saved the notebook, duplicated it and only keep these two cells, and opened the ...
410 views

### Generating animations of clouds with Mathematica

I'd like to generate some visually-pleasing animations of clouds, fog or smoke with Mathematica. My idea of "visually-pleasing" is along the lines of one of the images on the Wikipedia article for ...
57 views

### Mathematica doesn't italicise a function's argument in the function's body if it appears in the denominator and the denominator is edited. A bug?

Bug introduced in 10.0.0 and persisting through 10.1.0 or later I'm using Mathematica 10.0.2 for Mac. On a fresh kernel, I type this: a is not italicised ...
221 views

### Integrate using \[Esc] int \[Esc]

I like writing integrals symbolically instead of using Integrate[]. I suddenly seem to not be able to do this and am confused. I type \[Esc] int \[Esc] then ...
150 views

### Why wrapping this ContourPlot inside a Manipulate changes its output into something unrecognizable?

I am a bit puzzled: I wrap the same exact ContoutPlot inside a Manipulate, and it looks all wrong (I don't know what it's drawing but it does not look like the zeros of my polynomial). What am I doing ...
135 views

...
105 views

### Solving fifth order polynomial equation [closed]

I am trying to solve this equation: 1/s^3 + 3s^2 + 4s + 1 But I am not able to solve it. A little help would be appreciated. P.S: I am new to Mathematica and I ...