# All Questions

174 views

### How to use Buttons to run alternate Manipulate functions

I wish to use Buttons to trigger alternate Manipulates. According to the documentation: "The first argument to Button is the label" ....and the "second argument is the function that will ...
74 views

### Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
45 views

### in the part assignment is not a symbol, create different matrices with a “Do” loop [duplicate]

Im trying to assemble new matrices from some previous matrices I have created, but I can´t. What Im trying to do is the following: 1) I have different matrices: ...
193 views

### Bug: Export sometimes adds unwanted background to PDF files

Update: WRI confirmed that this is a known issue with Export on 2015-05-14. I am trying to export the outputs of some Plot expressions as PDF files for inclusion ...
304 views

### Contour plotting temperature data on a hemisphere or circle

(edited question:) I solved the Laplace equation(PDE) in spherical coordinates (in my problem temperature is steady and it is azimuthal(θ) symmetric, so my data is ...
201 views

### NDSolve computes wrong solution?

Please excuse me if the question has already been answered somewhere else, but I was not able to find it. Could somebody tell me what I am doing wrong here? The solution of DSolve is of course correct ...
186 views

...
578 views

### How to find a length of a curve constructed using Spline?

By fitting the data using spline, I have created a curve. sp = SplineFit[data1, Cubic] I am trying to divide this curve into small segments of equal length. To ...
174 views

### A Query using Select and Quiet fails but Select by itself works

This is closely related to the question here, the key difference is that here data is structured as nested Association rather than a flat list: ...
101 views

### How can I import html fragments as formatted cells?

I see that there is limited support for "HTMLFragment" in Export, but I figured with all the work that went into porting Mathematica into the Wolfram Cloud there should be a way to Import ...
62 views

For example: ...
75 views

### Computing symbolic surface normal of a surface point on a semialgebraic set

Consider a semialgebraic set; such as reg below: ...
96 views

### NMinimize works only if expression is pasted directly

Niminize works fine if I copy the minimized function directly by hands, but doesn't work if I try to do something like this: ...
183 views

After upgrading to 10.1, I now get a prompt "Choose a Mathlink program to launch" when I call code that uses ExcelLink. This code worked prior to the update. I am wondering if this is a ...
121 views

### How to fix the PlotRange?

I have the following plot: ...
49 views

### How to get the dynamic expression

$$Z_{n+1}=\frac{\alpha Z_n}{1+Z_{n-1}}$$ How to write the above expression in Mathematica? I want to get say Z_100, Z_10 by that scheme. Can I call say $Z_{10}$ if $Z_{n+1}$ is given?
56 views

### Returning functions that are partly evaluated

I have some performance issues when calling Table[{h, Slow1[h, n]}, {n, nlist}, {h, 0.1, 10, 0.5}]; for a given list ...
47 views

### Distorted plot when I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2 together [duplicate]

When I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2] together,the z axis doesn't have ...
107 views

### How can I change a lot of parameters to Real? [closed]

Because of some formulas with Conjugate in a notebook, I have to tell mathematica to change a lot of parameters to Real! I know that I can use Refine with Element or Assumptions: ...
256 views

I am new to Mathematica. I am asking how to define a conditinal probability in Mathematica. Here is an example of what I want to do: Assume that $P(x_b\,|\,x_i)=\left\{ \begin{array}{} ... 1answer 134 views ### How to construct a kernel from a function? I would like to convolve an image with a mathematical function. I understand that I need to have the mathematical function in a matrix form. How can I build it? Thanks 0answers 46 views ### Treating expressions as symbols [duplicate] I'm trying to do something like this: test = {x, y}; With[{test[[1]] = 3}, x/y] However, the following error is printed: With::lvset: "Local variable ... 1answer 116 views ### How can Tally group elements that differ only by a sign together? I have a list {{1,-2},{2,2},{-1,2},...} and I want to use Tally to count how often a given pattern appears in the list. This works perfectly, but in addition I ... 1answer 109 views ### Orthogonal Collocation Using Jacobi Polynomials I'm trying to solve a PDE(diffusion-reaction in a spherical catalyst pellet) using Jacobi Orthogonal Collocation method. But at the stage of solving the system of ODEs(using ... 2answers 225 views ### Creating a Cayley's table of square I'm interested in creating a Cayley's table of square using Mathematica. I'm not a programmer but occasionally resort to using Mathematica to simplify my work insofar as the programming doesn't take ... 0answers 108 views ### Is it necessary to close MathLink connection? I use WSTP (formerly known as MathLink) program LoopTools (here is the link with executables and source: http://www.feynarts.de/looptools/). To create connection within Mathematica, I use command ... 1answer 103 views ### Why isn't Table iterator value inserted in failed NIntegrate arguments? Consider this simplest example: Table[{z, NIntegrate[f[x], {x, 0, z}]}, {z, {1}}] Here f is not defined, so ... 4answers 1k views ### Hightlight all the self-intersections of a Lissajous figure This graph–also known as a Lissajous figure–contains so many self-intersections.How can I highlight them? ... 0answers 53 views ### How to create a cylinder with where the walls represent the output of a cellular automaton [duplicate] So i'm trying to do this implementation of cellular automaton which replicates some random patterns generated by 3D printers like the ones below. I'd basically like to create a model which looks ... 2answers 109 views ### Unexpected Manipulate behavior I get unexpected results when I run the following code (even before moving the sliders): ... 0answers 36 views ### Frame Tick Labelling in Power Form [duplicate] Hopefully a simple one for you. I would like to edit the frame ticks on my plot such that they are in "power" form. As it stands I try: ... 0answers 16 views ### Deleting the header footer in the PDF output of a Mathematica code [duplicate] I just saved my Mathematica notebook as a PDF file and realized that every page (except the first one) consists of a header footer (I don't know whether this is the correct name or not) indicating the ... 2answers 136 views ### How to extract state vector after NDSolve for subsequent re-use? I'm using code like this: ... 1answer 164 views ### BoxWhiskerChart Notched: how is the notch calculated? I am aware of one convention for the uncertainty in a median: it is 1.58 * IQR / Sqrt[n], where IQR is the inter-quartile range and n is the number of data points. This was proposed by McGill, Tukey, ... 0answers 58 views ### Abstract Vectors [duplicate] Is there a way to deal with abstract vectors in the following sense: Say I have a function f[y]. Now I want to evaluate ... 1answer 141 views ### How can I do a two dimensional Fold? [closed] I'd like to Fold over higher dimensional objects than lists. Semantically, the format would be something like ... 1answer 403 views ### Debugging a$RecursionLimit error?

I sometimes encounter bugs that involve a recursion limit. It's often very hard to find the origin of the problem. Would there be a way to copy the stack somewhere and abort the evaluation in order ...
89 views

### Is there a way to convert a string to a Table indicator? [closed]

I have a list like this: list = {"k1","k2"} I want to use the elements in the list as Table indicators: ...
117 views

### Can I use Mathematica to translate a English word to a Chinese characters?

I'm Chinese. I want to translate an Entity name to Chinese characterc. What should I do? Can I use Mathematica to translate a English word to a Chinese characters?
132 views

### Locator and manipulate

How can I achieve that the points on a Graphics element could be manipulated both by Locators (clicking and moving) and on the Manipulate panel as well. As you can see, only one of the methods work. ...
46 views

### Algorithm in Module behaves different [closed]

In my Notebook i wrote this algorithm: ...
305 views

### Why does partitioning increase Dot execution speed?

I have noticed that multiplying a list of matrices can be significantly sped up by partitioning the list, calculating the product of the partitions matrices, and then multiplying the results. ...
343 views

### What's wrong with NIntegrate with “MonteCarlo” Method?

Bug fixed in version 10.2.0 My code is: ...
203 views

### Why does Nintegrate keep unevaluated?

Bug introduced in 10.0 and fixed in 10.2.0 It's no surprise that the "MonteCarlo" Method works well: ...
33 views

### Getting explicit BaseStyle or DefaultBaseStyle settings

Is there a way of making more similar the appearance of TogglerBar and Toggler controls that can sometimes appear quite ...
320 views

### Dynamic list in which the sum of the elements is invariant under changes to the elements

2nd Update Here's a snapshot of a graphical user interface I'm thinking. I hope this could be self-explanatory and demonstrate the functionalities I mentioned in the 1st update. Thank you all! ...
107 views

### Change parentheses to square-brackets when using CForm

I'm not experienced with Mathematica, but am learning to appreciate its awesome power for manipulations. I get the an expression like this when using CForm (I cut ...
467 views

### How to ContourPlot a function of the coordinates on the Earth's surface on a map projection

There are two similar questions (this and this), but one is too specific and the other is apparently not clear and has no answers. I'll try to make the question more complete. Suppose you have a ...