# All Questions

92 views

### Efficiently plotting a function with its translates?

How does one efficiently produce a plot of {f[x], f[x]+1}? Assume that f[x] is a long computation, which I would like to avoid ...
144 views

### Computing Poincaré symbolic solution for an arbitrary integer order polynomial

In the 1880s, Poincaré created functions which give the solution to the nth order polynomial equation in finite form. These functions turned out to be "natural" generalizations of the elliptic ...
117 views

### How do I define the following piecewise function?

For 0<=t<=10, if 5t<=n<=5t+2, then f[n]=4n, and if 5t+3<=n<=5t+4, then f[n]=4n+1? I would like then to use the specific values of f[n], for all n between 0 and 54 (t here is any ...
183 views

### Cases with Alternatives failed

Consider this list of rules rules = {a -> 1, b -> 2, c -> 3} I'd like to fish some of the rules out of such a list using ...
68 views

### Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? ...
295 views

### Counting subsequences (i.e., patterns) within a list?

I would like to count the number of subsequences in list. Say I have data given by: data = {1, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1}; I would like to count the number ...
342 views

### Using up-values and down-values

I have a problem I'm trying hard to find a solution for, although I don't know if a solution exists. The following rules produce the result e[2].f[] ...
81 views

### Equation solving: Solve returns a periodic solution

I have a very simple trigonometric equation, that I've been trying to solve for a variable for a few hours now: (I couldn't find how to correctly format this) ...
134 views

### How to justify this Grid vertically

As titled above, How I can justify and how I can change the space between columns in this Grid specified below: ...
185 views

### How to write 1.0 in InputFields with ContinuousAction and Number constraint

With the concept of user responsiveness in mind, I’ve tinkered a couple of small apps that are supposed to be eh… responsive, i.e. calculating without having to press enter. They all rely on ...
104 views

...
111 views

### Custom distribution [closed]

I am trying to define a custom distribution using the code below. Unfortunately, it did not produce a satisfactory result ...
25 views

### Determining default value from previous arguments [duplicate]

How does one specify a default value for an argument which is dependent on the previous arguments of a function? For instance, consider the function ...
104 views

### Methods for producting alternating TickLabels in a Plot?

I am producing a plot with alternating TickLabels. Here is a MWE: ...
40 views

### Evaluation order in polynomials

I'm confused by the evaluation order of polynomials containing division. Consider these two polynomials: (x^2 + y) z/w (1) a/b (2) And their tree ...
207 views

### Front End options

Inspired by a recent question and others like it, and not finding an existing duplicate, I ask: What is the hierarchy of Front End options? How do they work? How can their values be set and ...
99 views

### Theory => practice: constructing a function “functionally”

I've read the Mathematica documentation and am certain there's way to do this with functional programming, but can't quite conceive yet how. I've taken a simple example (stating the series for ...
109 views

### How to efficiently read data from any part inside huge file [duplicate]

I have a data file (over 2.5 GB) and I want to do calculations on the data. At first I used. data=ReadList["file", Record,n] I still have three problems: 1- ...
33 views

1k views

### Get Eigensystem to return orthogonal eigenvectors for Hermitian matrix

I have a Hermitian matrix, and I would like to get a list of orthogonal eigenvectors and corresponding eigenvalues. But when there are degenerate eigenvalues, sometimes Eigensystem/Eigenvectors ...
45 views

### Tensor sum contraction [duplicate]

Table[Sum[ KroneckerDelta[[i, j]] LeviCivitaTensor[3][[i, j, k]], {i, 1, 3}, {j, 1, 3}], {k, 1}] Why this doesn't work? how i do to make that sum?
115 views

### Restoring an out of focus image [duplicate]

Folks, I am studying ways to deblurring an image: Sample: , an my goal is the money in that hand. Is possible improve the image, features, etc..? I tried all the de blurring methods: 1 - first I ...
35 views

### MatrixConditionNumber for 2-norm unexpected error [duplicate]

From documentation it has been specified that we can use 1,2 or as the second parameter of ...
426 views

### Plotting energy dispersion on a hexagonal Brillouin zone

I'm trying to plot the energy dispersion of a graphene similar material. I've used the Tight Binding Function Approximation considering first neighbours and no overlaping. I have this 2 expressions of ...
83 views

### Why doesn't my expression evaluate at the subkernel?

Consider this code: ...
136 views

...
122 views

### Mathematica script file in Linux - how to export PDF file and close kernel?

tmp.m file: tmp = Table[RandomReal[], {3}, {4}] Export["test.xlsx", tmp] Quit[] Then ...
363 views

### Plot all curves in a table with a single color

I want all of my solutions in a table to be the same color. My attempt: ...
104 views

### Why does this work with Wolfram|Alpha but not Mathematica? [closed]

I ran into this while doing some work today: It's the exact same syntax - and I expected that Mathematica would be more likely to be able to solve it, since oftentimes Wolfram|Alpha doesn't have ...
521 views

### PlotLegends is obsolete in v10?

I am using Mathematica 10.0.2.0 on a Mac OS X (Yosemite v. 10.10.1, 64bit). After I call: Needs["PlotLegends"] I get the info: General::obspkg: PlotLegends ...
191 views

### How can the Theil-Sen estimator be made to work on larger datasets?

The Theil-Sen estimator finds the slope and intercept of a line passing through a set of points by calculating the median slope and median intercept of the set of lines passing through all possible ...
94 views

### Is there a way to constrain the memory used for a notebook (session)?

I know that we can constrain the memory usage of certain computation using MemoryConstrained. Is there a way to constrain the memory of each cell evaluation during ...
62 views

### Evaluation control with TagSet

Suppose I have a property associated with two functions using TagSet: ...
312 views

### Header and footer banners in Slide Show style

I would like to create Mathematica slide shows that contain several tailored, fixed banners as headers and footers, much as MS Powerpoint, MS Word, Apple Pages, and LaTeX documents allow one to ...
89 views

### FactorialPower and Factorial

After some computation, I have obtained a function FactorialPower[1, n, -1]. Clearly, FactorialPower[1, n, -1] equals ...