# All Questions

124 views

...
183 views

### Manipulate executes expressions multiple times

I am using Manipulate for a rather intricate front end for data visualization. I was getting very sluggish performance and was able to boil the problem down to a ...
157 views

### HoldForm[Operator ##] on some list

Recently in response to this question Mr.Wizard suggested an unusual way to summing numbers. This doesn't seem to be documented. ...
149 views

### Builder pattern for complex objects construction

Intro I was watching "UnRisk-Q Instrument Builder" talk (https://www.youtube.com/watch?v=Xx3goIBpOdE) and those guys use builder pattern to build complex objects like this: ...
241 views

### Modelling the effect of a structure on a “tsunami” (hyperbolic wave equation)

So, the hyperbolic wave equation can be quite easily solved in Mathematica like this: ...
160 views

### Complex surface: Finding the perimeter of the union of multiple disc intersections

Consider a system of $N$ circles($N>40$) Each of radius $5$ and the center of these circles along a circle at origin of radius $3$ [as given in code]. Code for above description :- ...
173 views

### ArcTan and Compile

See following three snippet code: ...
55 views

### Setting OperatorSubstitution to false causes Plot's labels of sufficiently small size not to appear in the specified typeface. Is this a bug?

If I set OperatorSubstitution to False, the labels of Plot will not use the typeface ...
224 views

### Export list elements each to it's own page in a multi-paged PDF document

I have a list, myList, of let's say 20 (different) objects myList = Table["object", {20}] I know would like to export every ...
701 views

### How to find the distance of two lists?

I have two lists as the followings: ab = {1, -1, -1, -1, 1, 1}; ac = {1, -1, -1, 1, 1, 1}; How I can find the difference (more precisely, the edit distance) ...
40 views

### How to get .cdf format to work with functions? [duplicate]

I would like to create simple functions and then pass them into a Manipulate function that can be used in a .cdf file. eg ...
167 views

### Efficiently determining if a morphological component overlaps a polygon with vertices at real number coordinates

I have a list of morphological components $m$, a set of vertices for a polytope $P$ (at real number coordinates), and I'd like to be able to calculate a list of morphological components $m'$ that ...
2k views

### Position of axes labels

I have a 2D parametric plot like the following: ...
1k views

### Guidelines on giving readable names to variables [closed]

I know that one cannot use underscore to a variable name, like degree_of_The_First_Polynomial. But for a long variable name, it ...
155 views

### How can I use Dynamic to run a script when a new file is added to a directory?

I have an external program saving files to some directory on my hard disc. I'd like to run a script that imports and runs a script on each file as it is added to the directory. Is there a simple way ...
183 views

### How to get Cases to wrap results in an arbitrary head?

A number of functions provide for results to be wrapped in an arbitrary head. This is very important in cases where the results should not be evaluated. Take ...
290 views

### Faster Eigenvalues with lower precision goal

I compute all eigenvalues of a large matrix, and I decide that the speed is more important than the precision. Then the question is, can I speed up Eigenvalues[] by ...
46 views

### Phase Unwrap List Of Points: Implementing continuous phase/Arg function for List of Points [duplicate]

I am looking for a function to unwrap phase of a list of points as done here for the continuous case. I have the Re/Im data as my input and would like the unwrapped phase as the output. Does anyone ...
385 views

### Chart illustrating options that affect Graphics/Graphics3D objects

In Mathematica there is a seemingly never-ending list of parameters that affect the appearance of Graphics and Graphics3D ...
120 views

### How to use MacPorts' gcc with CreateLibrary?

Short version: What's the simplest way to use MacPorts' gcc with CreateLibrary? Long version: CreateLibrary uses ...
266 views

### Find integer values of p such that $(2^p - (2^2)(3^2))/ (3^3)$ is an integer

Find integer values of p such that $(2^p - (2^2)(3^2))/ (3^3)$ is an integer.
120 views

### Text with specified FontSize looks smaller than expected

The simplest way to see what the post's title is trying to convey is to evaluate: ...
156 views

I'm grading for a class using Mathematica right now, and one of the students ran into a weird issue. When he ran code like this: ...
677 views

### How to get and set default font parameters for Plot, ListPlot, LogPlot, etc.?

How can I find the default font parameters (family, size, etc.) for the text that appears in Graphics produced by Plot, ...
94 views

### How do I type boxtimes?

How do I type boxtimes in Mathematica, for example $a\boxtimes b$? This symbol is used a lot in mathematics, but I found no corresponding part in Mathematica. In TeX form, I can type \boxtimes. Can ...
418 views

### A faster way to do sums?

I found out that,it is INCREDIBLY(like 100 times) faster to use Dot instead of Sum,to perform long sums. But I have not been ...
152 views

### Hold expression with RandomInteger

One more question for today: I'm trying to show two random integers with a plus (+) sign between them, in an unevaluated form. I know how Hold and HoldForm work, but they hold everything, including ...
247 views

### How to determine numeric equivalent of Tiny, Small, etc. image sizes for Graphics?

Is there a way to find the numeric equivalents of Tiny, Small, Medium, and ...
161 views

### Blank VectorPlot

I'm trying to draw a VectorPlot of a function that admittedly probably is not very well suited for such a plot. But at the moment I just get a white sheet and I ...
175 views

### Dynamic [ NotebookEvaluate [“_”] ]

A nice way to centralize various tasks in one notebook is the NotebookEvaluation function. For instance I can evaluate ten notebooks from a single notebook (e.g. ...
58 views

### Panel help with little program

I'd like to show the output of this program into one large Panel, but when I surround this code with Panel[ ], it doesn't seem ...
134 views

### Creating a Block from a list of rules

How can I create a function which works like Block but takes a list of rules as its first argument, rather than a list of assignments? The function needs to be ...
292 views

### Input field that appends to a list

I'd like to make a dynamic, changeable list, which has elements that are supplied by the user in an InputField. I want the program to have an InputField and a "reset" button. Every time the user ...
383 views

### Implementing an algorithm for finding the largest circle that contains a single point in a set (and no other point)

This question concerns the implementation of an algorithm proposed by Rahul Narain on a former question of mine that was migrated to math.stackexchange: ...
1k views

### Solving a system of linear equations modulo n

I have a system of linear equations $$a+b+c \equiv 31 \pmod{54}$$ $$4a+2b+c \equiv 3 \pmod{54}$$ $$9a+3b+c \equiv 11 \pmod{54}$$ What should I input (I'm using ...
172 views

### Filling using colors rendered corresponding to the difference between two curves

Suppose there are two curves f1[x] and f2[x], and we want to fill the area between them using colors corresponding to the vaule of f2[x]-f1[x], so that any filling line segemts with the same length ...
328 views

### Variable scope similar to other languages

Mathematica, unlike many other languages, defines the variables in the global scope unless it is explicitly asked to define a variable in a local scope, e.g., using ...
163 views

### How to I get a nutrition facts chart from WolframAlpha?

When I try just a few items such as WolframAlpha["1 whole wheat tortilla + 2 slices american cheese + 150 g steak + 2 tbsp beans + 150 g white rice"] I get the ...
196 views

### Using Tooltip with Joined data on a plot

I have some data partitioned into three sublists: ...
117 views

### Text as plot axes values

I have some chemical data that I am plotting using ListLogPlot. ...
173 views

### Defining five-parameter Pearson distribution by moments

How do you derive (or where can I find a derivation of) the equations to match the five parameters of a general Pearson distribution to a mean, variance, skewness, kurtosis, and condition that the ...
586 views

### How to draw a graph about the FourierTransform of a 2D Function?

Here is a 2D function, and it cannot be calculated by the FourierTransfrom ...
264 views

### How do I get a list of unique random integers? Avoiding numbers being drawn twice [duplicate]

I am trying to get a set of random integers for which I used the function RandomInteger[{1, 50}, 5]. That way, however, there is the chance to get doubles such as ...
87 views

### What do the elements of the Parallel Kernel Status screen mean?

I just managed to get my multiple kernels up and humming on a new multi-core machine, which I am quite happy about. I am slightly at a loss, though, about the meaning of the different parts of the ...
1k views

### Filling between parametric plots

I am new with Mathematica, but am trying to fill an area between two parametric plots ...
521 views

### How to identify chemical substance from tattoo?

A friend of mine made a tattoo on his chest of some chemical substance formula. He challenged us to identify which substance is that. I thought that perhaps a combination of: Mathematica image ...
108 views

### InputField equations and Solve

I'm trying to get this piece of code to work: ...
288 views

Test case: ...