0
votes
1answer
10 views

How to filter acoustic signal

I have a huge data file which I can't ListPlot. This code generates similar kind of data: ...
0
votes
0answers
19 views

How to automate parallel codes

I've got a code that I want to automate, but I'm not sure how. I have a Mathematica notebook that I need to run many times over, each time changing one variable and repeating. My idea was to set up ...
0
votes
1answer
18 views

Can Mathematica return the first few terms of a sequence given the first few terms of a Dirichlet Generating Function?

For example: a=Sum[1/n^s,{n,1,6}]; Expand[a^2] returns a big mess. I want to see something like: 1/s + 2/s^2 + 2/s^3 + 3/4^s + 2/5^s + 4/6^s + ... + 1/s^36.
0
votes
1answer
21 views

Using Manipulate for Lists in Matrixform

At first sorry for my english, i hope everyone can understand my problem: I like to use Manipulate for doing something with lists and i like the lists to be in Matrixform. Is that possible? I tried ...
1
vote
3answers
41 views

Creating a realistic, photo-like 3D effect from an image or document

Suppose I have an image or a document, provided in a high-quality PDF file. You can open and view it in a PDF viewer, but then it has a kind of static look: it's not something tangible, it's just an ...
0
votes
0answers
10 views

NonlinearModelFit not hunting for good values

I have the following data which come from complex values but I have turned them into a 3D list ...
1
vote
3answers
34 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 ...
0
votes
0answers
22 views

Can Mathematica calculate the 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 ...
0
votes
0answers
23 views

Substitute all known values in matrix

There is probably a very simple way of doing the following, but I cannot find it. I have a an array of symbolic variables: coefficients = Array[c, 3] I then ...
0
votes
1answer
37 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 ...
4
votes
2answers
51 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 ...
2
votes
0answers
21 views

Are there any rules about style inheritance in Mathematica?

Ok, I will not complain, I know at the end I can just style every part of an UI separately. But are there any rules about inheritance? What would be nice to know at least is: which Heads are not ...
4
votes
1answer
48 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 ...
3
votes
2answers
100 views

Up and down conundrum

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[] ...
-2
votes
0answers
17 views

problem with exporting matrix elements in an array to a .txt file [on hold]

How can I export All the matrix elements in an array to a .txt file?
1
vote
0answers
24 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) ...
0
votes
0answers
26 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 belew: ...
1
vote
1answer
30 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 ...
0
votes
1answer
57 views

Custom distribution [on hold]

I am trying to define a custom distribution using the code below. Unfortunately, it did not produce a satisfactory result ...
2
votes
0answers
18 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 ...
2
votes
1answer
72 views

Methods for producting alternating TickLabels in a Plot?

I am producing a plot with alternating TickLabels. Here is a MWE: ...
1
vote
1answer
28 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 ...
4
votes
1answer
60 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 ...
1
vote
2answers
64 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 ...
3
votes
0answers
42 views

How to efficiently read data from any part inside huge file

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- ...
0
votes
0answers
22 views

How to set the resolution permanently? [duplicate]

I'm new to Mathematica, each time I start Mathematica, I have to enter SetOptions[$FrontEndSession, FontProperties -> {"ScreenResolution" -> Automatic}] to ...
1
vote
1answer
145 views

Why Mathematica chooses bracket for function arguments over parenthesis?

This is a non-technical question. I'm just curious that why Mathematica breaks the convention that parenthesis are widely used for function arguments. What's the advantage for ...
0
votes
0answers
4 views

How to find if a point coords is inside rhombus coords [migrated]

A = 282, 34 (x,y) B = 59, 198 (x,y) C = 282, 359 (x,y) D = 509, 198 (x,y) E = 10, 10 So I have this image and I am trying to search if coords of point E are ...
0
votes
0answers
50 views

Solving a system of equations involving partial derivatives for a wave

Before saying anything about the problem, I have checked "How to solve a system of partial differential equations?" yet it does not actually answers my question, as I have a 10x10 matrix to work on. ...
2
votes
1answer
56 views

Limits and transformation rules

I can calculate this limit: Limit[(c^(1 - g) - 1)/(1 - g), g -> 1] and obtain the correct value: Log[c] but if I try ...
0
votes
1answer
38 views

Solving recursion equation with two parameters

I am trying to solve the following recursion equation, a(l,m)=l*a(l,m-1)+a(l-1,m) with initial condition; a(l,m)==0 if l=0 , a(l,m)==1 if m=1 I am trying to solve it ...
3
votes
3answers
93 views

Difference in rendering speed between slider and step forward in Manipulate

Consider the following Manipulate: Manipulate[Plot3D[Sin[x] Cos[y], {x, 1, 5 a}, {y, 1, 5 a}], {a, 1, 5}] When trying to step forward clicking the line of the ...
0
votes
1answer
38 views

Simplifying an answer returned by DSolveValue

Consider the IVP: $$x'=\frac92-\frac{x}{300+2t},\quad x(0)=0$$ Working the solution by hand, the answer is: $$x(t)=450+3t-\frac{4500\sqrt3}{\sqrt{300+2t}}$$ Entering code and then attempting to ...
6
votes
2answers
93 views

How can I output the coordinates of a city in coordinates of the Mercator projection?

On Mathematica version 8, I would like to use CountryData and CityData to mark Paris on a polygon map of France in the Mercator ...
2
votes
3answers
201 views

fastest way to perform the following summation

I have a vector $A$ with components $A_{i}$, and two matrices $X$ and $Y$ with components $X_{ij}$, and $Y_{ij}$ respectively. What is the fastest way of performing the following summation ...
0
votes
1answer
30 views

Function does not initialise variable as changes are made in the manipulate function

My function "DefineRss[]" takes in three arguments and outputs a plane value. It sits in the first argument of the function plot3D and that in turn sits in the manipulate function The function also ...
2
votes
3answers
59 views

Mathematica Contour Plot Problem [duplicate]

When I type ContourPlot[x == Sin[6*Pi*y], {x, -1, 1}, {y, -2, 2}] I get this Now I'm not a particularly gifted mathematician, but I have a feeling this just ...
0
votes
1answer
54 views

Mathematica error in vector element access

I have the following code, but Mathematica insists that xj is not a symbol! How may I fix that? ...
1
vote
1answer
36 views

Minimize under constraint on an interval

I want find the minima of a (multivariable) function under a constraint which has to be fulfilled on a whole interval, let's say $$ \nabla f (\underline x) = 0 \ \\ \ c(\underline x,s)\geq0\ \forall ...
4
votes
3answers
132 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 ...
0
votes
0answers
34 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?
1
vote
0answers
47 views

Restoring an out of focus image

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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
41 views

Defining Tensor [on hold]

I need help with the definition of tensor in Mathematica. I have to define a tensor $\Sigma_{IJK\alpha}$ with the following features: I,J,K run from 1 to 6 $\alpha$ run from 1 to 2 ...
0
votes
2answers
108 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 ...
2
votes
1answer
33 views

Why doesn't my expression evaluate at the subkernel?

Consider this code: ...
3
votes
0answers
54 views
0
votes
0answers
38 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 ...

15 30 50 per page