# All Questions

140 views

### How to export LaTeX expressions with subscripts and greek letters?

I am constantly using the mathematica software and using TeXForm command to go back and forth between the calculations and the latex document I'm typesetting. However, mathematica won't allow me to ...
156 views

In this question, answers were given that worked to add items to some menu commands, e.g., additional colors on the Format > Background Color menu, or Help menu items. I have code for such in an ...
160 views

### Unintended effect of closing square bracket on Spanish keyboard in Mathematica online

I have only just started using Mathematica Online and I have encountered a problem already with the ubiquitous closing square bracket ] using a Spanish key board. I ...
279 views

### StreamPlot in a system x´ = f[x] + g[t] [closed]

StreamPlot can be used in the O.D.E system: x' = 2 x - 3 y + 3 t y' = 5 x + y - t How? ...
202 views

### Translate Image respect to its centroid

To apply DistanceTransform for shape recognition, I want to center all images in a fixed point {cx,cy}. I mean each image's centroid should be ...
79 views

### How to manipulate one column of a table using the value in another column

Let's imagine I have the following table structure data = {{a, b}, {c, d}, {e, f}}; and I want to transform it into the following table ...
79 views

### Statistical Analyzis of Observed Data (Queuing Process)

Basically I have a process that belongs to a certain state at any point of time. However, the time intervals are not fixed (in fact they are exponentially distributed). Essentially, the data points ...
103 views

### Interpolation of Singular Functions

I am trying to interpolate discontinuous functions for R in interval $[0,100]$ and r in interval $[0,100]$: ...
183 views

### A rule replacement problem: list -> list

Suppose I have a vector function f[x_] := {x[[1]]^2 - x[[2]]^2, Sin[x[[1]]] + Cos[x[[2]]]}; Then I want to make a list of gradients at some values: ...
79 views

### How do I tell pattern searcher the order in which to search for patterns given in general form?

I have a really long sequence of Symbols inside a function, say nonCommute[a,b,c,e,e,f,g,b,i,j], and I am implementing a ...
60 views

### Searching for symbol except within subexpressions with a particular Head

I would like to write a searcher like FreeQ that looks for a Symbol (or Head) in an ...
330 views

### How can I plot a 3-variables function to identify the neutral surface and a region

I wanted to plot a 3-D solid region, in which my function f(x,y,z)= x (1/(1 + 0.06))^3 + y (1/(1 + 0.06))^2 + (2 z^2)/15 (Sin[10 Degree])^2 -z/3 Cos[10 Degree] ...
76 views

### How do I localize an assignment to expression (instead of symbol) within scoping construct?

Is it possible to localize an assignment to an expression (defined via UpSet) instead of a Symbol within a scoping construct? ...
99 views

### replace two elements in a list with the sum of those two elements?

I have a list: G[3] = {2, 4, 2, 4, 2, 4, 2, 4, 2, 4} (there's a 3 in there for the 3rd Prime) Recursively defined by: ...
75 views

### Increment in Manipulate does not seem correct

I am reading the documentation for the Manipulate command and I've done this code: ...
120 views

### Bug in grouping after editing code?

While looking at A question about conditional replacement I think I discovered a bug in the Front End that affects both 7.0.1 and 10.0.1 under Windows. If I copy and paste this line into a new Cell ...
22 views

### A question about conditional replacement [duplicate]

{g[x, y, z], h[x, y], f[]} /. (f_[t___] /; f != List) :> Plus[t] Why is the output of this expression ...
142 views

### RandomFunction and Histograms

RandomFunction[QueueingProcess[3, 5], {0, 15}] Histogram[data, Automatic, "PDF"] gives a very nice way to see the histogram based on the specified process. ...
125 views

### Using N gives strange result

Consider these two functions which are almost the same: ...
114 views

### How to get smooth playback of image sequence

I would like smooth animation of a sequence of images, without the controls displayed by ListAnimate. I have a very simple playback function ...
37 views

### Off[FinancialData::notent] fails on first run but works thereafter

Off[FinancialData::notent] fails on first run but works thereafter. So what good is it in this case? Is there a trick to force first time success? I've tried ...
81 views

### “ComputedDate”'s interpretation of “next”

Today Interpreter["ComputedDate"] /@ {"next Monday", "next Tuesday", "next Wednesday"} What explains this behavior? Can ...
239 views

### Mathematica using all available RAM [closed]

I want to fit a function with 100 parameters. When I use FindMinimum, Mathematica uses all the 24GB RAM in my PC and ultimately crashes. However, if I use ...
115 views

### NDSolve not creating plots [closed]

This is probably stupid, but I wasn't able to find any way to get equations created from NDSolve to be plotted. ...
424 views

### MKL on Intel vs AMD

I am running some linear algebra functions in mathematica on different CPUs. I've noticed a massive performance difference between Intel and AMD processors. For a certain script I wrote that uses ...
184 views

### Inverse error function

I solved some equation in Mathematica and I obtained something like $$y(t)=\exp \left\lbrace \left[ \text{erf}^{-1} (\text{i}t) \right]^2\right\rbrace, (1)$$ where $\text{i}$ is imaginary unit and ...
298 views

### Backslide of Limit

A friend of mine showed me this example: Limit[Sum[Sin[Pi*k/n]/(n + 1/k), {k, 1, n}], n -> Infinity] This sample calculates well in v8.0.4: but not in ...
31 views

### How to make Expand work right in a function definition?

This works just fine: Derivative[n_, 1][g][x_, v_] := D[g[x, v], {x, n + 2}]/2 + D[D[g[x, v], x]^2/2, {x, n}]; h = Expand[D[g[x, v], {v, 3}]] I would like to ...
193 views

### Parentheses for negative integers

Trying to standard create prime factors presentation, but can't seem to remove the parentheses: ...
113 views

### Why Abs[Infinity] is an element of the real numbers

Element[Abs[Infinity], Complexes] returns False, that's right. But ...
140 views

### Compare two shifted signals

I have one set of original data (signal A) and a second set of derived data (signal B) which was computed from A by position rotation (circular shift). Here are the data for the signals (A and B): ...
114 views

### How can I number the section titles automatically in Mathematica?

When I write a document in Mathematica, I do not like to number the section title myself, because I usually add or delete a section from time to time. Is there a way that Mathematica can number the ...
83 views

### Unequal behaviour of FindRoot to two similar functions

Unfortunately, I have some difficulties to plot a function. Here is my code: ...
389 views

### Get 2d corner coordinates / layout using edge detection

I'm new to Mathematica but I found an interesting usage of it: I'm programming a 2D game, with a top-view, where I'd like to have the edge coordinates of the walls. EdgeDetection delivers me quite a ...
87 views

### symbolic integration of product of hankel function and trignometric function

I want to perform the following integration. my function is : r*cos(r)hankel(0,kr) i want to integrate from 0->pi , and want to get the expression in terms of k. I used this command ...
59 views

### Finding list position in array [closed]

Lets say I have the list {{1,2},{1,3},{2,4},{1,3,5}} Is there a way I can get the positions of the lists starting with 1? ...
59 views

### SetDelayed::write is Protected error on Linux not PC

I have 2 computers, a PC and an Ubuntu computer both with Mathematica 10. I am running the exact file with the exact support files on both computers, but just on the Ubuntu I get the following error ...
44 views

### Should this be equal to Gamma function or not?

I define the following function: Nat2[s_] := InverseFourierTransform[FourierTransform[1/t, t, w] (-I w)^(s - 1), w, x]/Cos[Pi (s - 1)] /. x -> 1 I expected ...
170 views

### Simple pattern/texture on chart elements [duplicate]

If I print the following BarChart in black and white, then it is very difficult to tell which bar is "a" and which is "b". ...
133 views

### Nested Recursion Equation

I have been trying to solve a "nested recursion equation" using Mathematica. However, when I do something like this: ...
128 views

### Manipulate causing frequent crashes

I am putting together a dynamic 3D plot which is to be "manipulated". The code does what I want it to, but keeps crashing all the time. Sometimes it crashes the kernel, so I just have to run the ...
75 views

### How to export quicktime video as h.264? [duplicate]

I am trying to export sequences of images as quicktime movies. The dafault codec (cinepak) produces low quality and large file sizes. There is little documentation of the other codecs, which can be ...
130 views

### Eigensystem on HPC

I am submitting Mathematica jobs to an HPC. I have a large matrix that is a function of (x,y) and I am diagonalizing it for around 500 points in the plane. My initial idea was to request a node with ...
96 views

### Modifying a list of matrices with conditional statement

I have a list of around 100 matrices, that looks like this ...
65 views

### How to invoke default VertexShapeFunction and EdgeShapeFunction from custom ones?

For this question, g is a Graph object (of order ~2K) such that the VertexWeight and ...
61 views

### Importing file as a string causes a puzzle

I generate simple txt file and import it as follows: a = Import["binary.txt"]; b = Import["binary.txt", "String"]. It appears then that lengths of imported strings ...
445 views

### Poisson PDE over a irregular region with FDM

The problem modeled by the Poisson PDE is related to the torsion of prismatic beams and I use the Finite Differences Method (FDM). I've managed to solve the equation over a rectangle region with ...
100 views

### Expand just first level of an expression

Is there a way to build a function to expand just the first level of powers and products of an expression? Edit: ...
110 views

### Visualisation of intrinsic curvature [duplicate]

I know that Mathematica allows for a lot of nice visualisations, so here I am. I was thinking if one could visualise (using Mathematica) the fact that a 3d (or simpler a 2d one) Torus doesn't have ...
312 views

### Why does the documentation call functions “pure”?

Clearly, functions in mathematica are not pure functions according to the definition on Wikipedia (no side effects - basically implementabe with table lookups): ...

15 30 50 per page