# All Questions

92 views

### How to evaluate the same code in a whole bunch of existing notebooks

I have a large folder of existing notebooks, each currently containing a single cell of input. I would like --- in each of these notebooks --- to evaluate that cell, evaluate a new chunk of code I've ...
103 views

### Define function over expression

Suppose I have the following expression system = x + y + z And I would like to define a function that contains this function, without explicitly typing the right ...
275 views

### Problem solving a nonlinear differential equation with specific boundary conditions

I am trying to solve the following differential equation: DSolve[{y''[x] == A*B (y[x])^2, y'[0] == -B*C, y'[-D] == 0}, y[x], x] For my system, this ...
94 views

### Simple arithmetic operations on elements of a list [duplicate]

How can I shift the first element of a list by 148.38 and the second element by -38.45? The data ...
361 views

### Help at speeding up simplification/nested symbolic integration

I have the following problem: I want to compute an integral of the form $$\int\limits_0^{t_g}\mathrm{d}t_2\int\limits_0^{t_2}\mathrm{d}t_1\left[A(t_1),A(t_2)\right],$$where $\left[B,C\right]=BC-CB$ is ...
654 views

### Modify existing color scheme

I am using the "TemperatureMap" color scheme for image processing. How can I set the lowest color value to Black? Generally ...
124 views

### In TabView, disable tabs but enable dynamic content

Is it possible to have a TabView where the tabs are disabled but the dynamic contents are still responsive? In the following, all dynamic content seems to be disabled. I would like the Manipulate to ...
81 views

...
80 views

### second part of a list with something like BinLists

I have a list that looks like this testList = Transpose@Table[{RandomInteger[{0, 100}], RandomReal[]}, {100}]; i.e. basically two lists in one. Using BinLists ...
65 views

### Problem with converting recursive code to iterative

I am trying to convert a snippet that uses recursion into one that uses iteration for drawing an L-tree, but my code produces duplicate points. How do I avoid generating them? Recursive version: ...
195 views

### How to use multicore in this case?

Say I have something like this: myfun[dataA,X1,Y1,Z1,W1]; myfun[dataB,X2,Y2,Z2]; myfun[dataC,X3,Y3,Z3]; (* with many more of the same *) Each would take about 5 ...
289 views

### How to remove hours, minutes, seconds from list

How to remove 0 that represent hours, minutes, and seconds from a date list say a ...
65 views

### Changing font in Workbench (stand-alone) code editor

How do I change the font-size and the font set in the front-end code editor of Workbench 2.0 (stand alone)?
134 views

### Is Replace doing double work?

In an answer to this question, rm -rf used the function Replace with level spefication to do a series of replacements inside out. As far as I can see, the order of substitutions when more than one ...
335 views

### Lower branch of Lambert W function in mathematica

I am interested in values of the Lambert W function, which is defined as the solution to the equation $z = W(z) e^{W(z)} .$ The solution is not, however, single-valued, but branches into two ...
105 views

### Maximising solutions of NDSolve [duplicate]

I have the following system of differential equations ...
73 views

### FindClusters memory exception problem in dealing with 1Dimensional data?

data=RandomReal[10,{30000}]; FindClusters[data,2]; Why in this little data set, FindClusters Load so much memory? and ...
127 views

### How to compute the composition of linear differential operator [duplicate]

For example, I have to write down the differential operator below as a polynomial in $\partial$ $$(\partial-f_n(x))(\partial-f_{n-1}(x))\cdots(\partial-f_1(x))$$where the product the the composition. ...
110 views

### Creating a Distribution

Say I want to create a multivariate distribution that perhaps, as an example, looks something like this. ...
212 views

### What are the purposes of functions in FrontEnd context which are duplicates of those in System?

I noticed that for notebook-related heads, there are usually a pair of same functions, one in System context, another in ...
103 views

### What's wrong with this tutorial? [closed]

Disclaimer: This code is not mine. Source. I'm trying to follow along with it, though, but it seems that this code no longer produces a working manipulatable plot at the end -- and I'd like to know ...
168 views

### Defining a function which displays odd numbers? [closed]

Define a function that takes as input an integer n and returns as output the product of the first n odd numbers., i.e., 1 · 3 · 5 · · · 2n − 1. Evaluate your function at 1, 2, 3 and make sure you get ...
68 views

### Changing size and/or aspect of OpenerView in Mathematica 10

I would like to change the size of the Opener in OpenerView when using Mathematica 10. In Mathematica 8, there was the option ...
72 views

### Repeating a Function [closed]

I have created a function transitions[x_] that takes in a value of x but the output is a different vector each time as I have used the RandomVariate function. I ...
123 views

### Iterating Log infinitely

How is it possible to find the limiting value of Log[x Log[x Log[x Log[...]]]] in Mathematica? Apparently, it should give ...
61 views

### How can I lookup the grammatical type of a word?

It seems WordData isn't complete: ...
106 views

### Factoring an ideal in a number field into prime ideals

I'd like to factor an ideal in a number field into prime ideals, exactly as in this example from the Sage documentation: ...
107 views

### How to view ClassifierFunction's preprocessed data?

Classify apparently preprocesses your input data, for example (same example from Classify reference page, but using ...
72 views

### Should “counters” used in Do, Table, … within Module be declared as local?

I have little to no understanding of how Mathematica handles scoping, so the question may seem a little bit funny. What is the preferred way: ...
65 views

### In each sublist, replace the value in the right part by the value in the left part

Consider the following nested list {{a,1/x},{b,2x},{c,Sqrt[x]},{d,1-1/x}} I'd like to come up with the same list where the variable $x$ is systematically ...
82 views

### Specify the ratio of axis precisely [duplicate]

When I want to have equal length of the units on both x and y axis, I can use AspectRatio -> Automatic. But when I need the unit of x axis have length twice than ...
146 views

### New nested list from three lists

I have three lists. x = {a,b,c,d} y = {A,B,C} z = {{1,2,3},{4,5,6},{7,8,9},{10,11,12}} and I wish to construct the following list out of these three lists ...
87 views

### Finding the limit of powers to infinity [closed]

Limit x -> Infinity (1 - e^-x)^e^x I keep getting that the answer is 1 but according to wolfram alpha it is 1/e. Could someone show me how. Thanks.
139 views

### Eigenvectors of large symbolic matrix

I have large symbolic matrix of order 32 x 32 given as ...
129 views

### Why doesn't Thread work in this case?

The following function is supposed to pick the element of the list with highest weight, i.e., with Thread [f[{{a,1},{b,2}}]] it should make the variables ...
142 views

### How to pick the maximum of a list? Improving efficiency

I need to find the element of a list, with the highest weight. Example: ...
200 views

### Visually differentiating arguments of If

Is there a convention for writing If expressions to visually differentiate between the different arguments? For example: ...
82 views

### List Manipulation and Removing Cases

I've imported a large data set, manually removing headers in the .rtf file where it originates. However, when I import this data, I receive this output: ...
117 views

### Position of elements in a list satisfying some criteria - Understanding the syntax [closed]

From this post: if one wants to know the position of the elements of a list that satisfy some criteria, (s)he can do something like that: ...
81 views

### Integrate with Subscript: does this crash your kernel too?

I encountered some strange behaviour running v10.0.1 on a Mac Pro, while working with Integrate and Subscript. Starting from a ...
866 views

### Plotting a contour line in 2d on a 3d surface

I have a list of data which I can plot as a surface with ListPlot3D. Moreover I have a set of other surfaces and I have plotted the projection of their intersection ...
141 views

### Why does this happen with FullSimplify? [duplicate]

It is stated at the Wolfram Documentation Center (FullSimplify/Possible Issues) that: Why and when this could happen? How to avoid it? Any patterns? Edit: As pointed out in the comments, this ...
245 views

### Colorizing thresholded images with different colors

I am switching from IDL (from exelis) to Mathematica and want to do the following: thersholding a image (all values above a certain threshold are set 1, the rest is 0 ) colorizing the thresholded ...
223 views

### Decomposition of a semialgebraic set into connected components

Is there any built-in function for doing decomposition of a semialgebraic set into connected components? The only way I now can think of is to use ...
170 views

### Seeking simple function in interval

I am a bit rusty, and struggling to solve this problem. Looking for a simple, well behaved parametric function f[t], from [0,1] to [0,1] such that: f[0] = f0; f[1] = f1; f'[1] = ff1; where -1<= ...
177 views

### Using grids in manipulate

I have a few questions. Here is the code so far: ...
138 views

### Why this region is bad?

I want to draw a region but the result of Mathematica is not good. Why? ...
350 views

### How to enforce mathematica to analytically evaluate roots?

I am interested in simplifying expressions involving HeavisideTheta. A simple example could be: HeavisideTheta[1 + x - x^2 + x^3] The best I can achieve is with ...