# All Questions

59 views

### Change Alphabetical Order of TraditionalForm

I'd like to give my students a little visualization of the fact: $$x^n-a^n=(x-a)(x^{n-1}+x^{n-2}a+\cdots+x a^{n-2}+a^{n-1})$$ So, I've tried: ...
40 views

### Two questions (Modifying Ticks and VectorGraphics)

Say x0[u_, v_, a_, b_, c_] := a* Cos[u]*Sin[v] y0[u_, v_, a_, b_, c_] := b* Sin[u]*Sin[v] z0[u_, v_, a_, b_, c_] := c*Cos[v] I take a parametric plot by ...
42 views

### How to convert nested lists into “standard” lists? [closed]

What is the easiest way to convert a nested list in a "standard" list? For istance how can I fastly convert {{16.5807}, {17.1458}, {16.1343}} into ...
30 views

### Reduce size of exported contourplot [duplicate]

Following the answer given here, I am plotting contour lines in black/white: ...
139 views

### Chopping matrix elements, real or imaginary

An undesired shape of a matrix has the following form: which is created by ...
131 views

### “Interface” for exam

Is it possible to create a (graphical) interface with Mathematica so that instead of having a Mathematica document where I change definitions and so on, I can just input values and it will use my code ...
35 views

### How to transfer the list of parameters values into With [duplicate]

In the following case: With[{x=1,y=2},Print[x+y]] the values of x and y are declared in ...
99 views

### SameTest using in summation over a list

I have a list ...
79 views

### How to evaluate this integral

I am trying to evaluate the following integral in Mathematica: ...
208 views

### geodesics' on torus

Is it possible to draw geodesics between the points in a path on a torus - toroidal surface? geodesics: generalization of the notion of a "straight line" to "curved spaces" ...
78 views

### Mathematica's Solve[] and LinearSolve[] doesn't work to solve a system of equations IF parameters are not replaced

(I'm working on Mathematica 10.3) I have a system of 81 algebraic linear equations with 81 variables (variables are a1 to a81). ...
208 views

### Trouble with shooting method for a 4th-order differential equation

I'm trying to solve the following forth-order ODE with the shooting method: \frac{1}{5}(y-2xy^\prime)=\frac{1}{x}\left\{\frac{xy^\prime}{y}+xy^3 \left[\frac{(xy^\prime)^\prime}{x} \right]^\prime \...
150 views

### How to select 3-tuples of positions from a list with variable time-steps?

Below is a natural log list of ordered time data with variable time-steps. I would like a functional approach that selects 3-tuples of positions sublists based on the first selected elements that ...
69 views

### ParallelTable pending the MathKernel after execution

I have done a ParallelTable computation in script mode. After execution, the output is fine and I've got all the data I needed. but the kernel seems pending, ...
195 views

### Plot Command With Clean Grid Lines

I am trying to emulate this plot using Mathematica. Using the following command, I cannot get the grid points correct. ...
203 views

### How to enforce a symmetric solution with FEM?

I'm solving the laplace equation in a domain with holes, and I need to compute the integral of the gradient on the boundary of these holes. For that I define a mesh and solve the laplace equation ...
34 views

### How to calculate a required definition only once for each iteration of NonlinearModelFit

This is my first post here. I've been using Mathematica for about 4 years now to analyze data, but am still very new and have no background in formal programming. This is the first question I couldn't ...
227 views

### Speed up construction of a dense matrix

I wish to find the numerical eigenvalues of a relatively small (100 dimensional) Hermitian matrix. While the eigenvalue calculation itself is fast, the construction of the matrix is taking longer than ...
134 views

### Call Magma in Mathematica

I've written some code in Mathematica, related to some group theory questions I have. Subsequently, I found that part of the code could be significantly sped up if I could just call a routine in ...
39 views

I am pretty new to Mathematica(about 90 minutes) and I have encountered a problem. I have searched the web pretty comprehensively and came up with nothing. For a computing problem that I am solving, ...
750 views

### Faces and NetFaces relation in polyhedron

I'm trying to generate some plots of polyhedra with coloured faces. To determine the colours, I require the adjacency information of the faces. For the 3D plot this works really well. Say I want to ...
327 views

### Asynchronous Programming

Consider that you would like to listen for Raw WiFi Packets coming into your NIC. Since Mathematica doesn't have built-in functions for such low level programming (as far as I know), one alternative ...
57 views

### Same integral gives different results with assumption

b = 1 k = 12560 r = 500 res = Integrate[Exp[I*k*x*Sin[o]]/(r + x*Sin[o]), {x, -b/2, b/2}] resab = Abs[res]^2 Plot[resab, {o, -Pi/20, Pi/20}, PlotRange -> Full] ...
51 views

### How to indent/align Header 4

What's the deal with Header 4 (⌘ + 4 on OS X)? Are there options to align under or to the right of Header 3? Also remove the overbar? Couldn't find anything in Options Inspector.
87 views

### Plotting with units — getting the right axes labels

I have a simple example: Plot[UnitConvert[Quantity[x, "DegreesCelsius"], "DegreesFahrenheit"], {x, -25, 300}, AxesLabel -> Automatic] The x-axis has the ...
45 views

### Ticks and range in PairedBarChart

I am trying to change the ticks and range in a PairedBarChartbecause one of the ranges is much smaller than the other. How can I do this? ...
268 views

### How to make FlattenAt work with Span?

This works: MapAt[h, {a, {b, c}, {d, e}, {f}}, 2 ;; 3] (* {a, h[{b, c}], h[{d, e}], {f}} *) but this doesn't: ...
54 views

### Specify number of elements instead of step in Table [duplicate]

I think I have seen what I was looking for a ong time ago but I can't see nothing such in documentation. Quite often, I would like to create a Table with given ...
135 views

### Discritizing an analytical 3D-function

I have the following Problem: I need a discretized amount of points in a 3D-volume. These points satisfy a condition to built-up a 3D-geometry. In my example below I selected a helical geometry. The ...
184 views

### $x^6-2\varphi^5x^5+2\varphi x+\varphi^6=0$ solving in radicals

How to solve the equation $x^6-2\varphi^5x^5+2\varphi x+\varphi^6=0$ in radicals using Mathematica? where $\varphi$ is the golden ratio. Solution is Ramanujan's Class Invariant $G_{125}$, Class ...
34 views

### Replace variable with other variable containing a constant in differential expression [duplicate]

I have the following differential expression: ...
80 views

### Problems with formatting PlotLegends text [closed]

To avoid issues, I post here the photo to explain you better what my problem is. So what I would like to have, is a "correct" writings of the legend text for the Blue function. I would like it to ...
57 views

### Shortcut Ctrl+Shift+8

What does the shortcut Ctrl+Shift+8 does in Mathematica (version 10)? On Windows 8.1 it displays a little square: I can write in it, but I don't understand what it does.
35 views

### Expanding/printing function with constrained arguments [duplicate]

Let's say you have a function $f(t) = t, \text{ for } t > 0,$ declared in Mathematica as f[t_?(# > 0 &)] := t; How do you print that function? I ...
182 views

### What kind of Arnoldi method is used in Mathematica?

Can someone give me a bit more information about what mathematical method Mathematica is using, (preconditioner, filtering-restarting, deflation) in the Lanczos implementation when I input something ...
107 views

### Same name for functions in package and Global context

I am using a package that was written for Mathematica 3 while I am now working on Mathematica 8. I have issues with 2 functions in particular, Order and GraphComplement. They are a part of this ...
100 views

### How to write this code as a pure function? [duplicate]

The code has three places with same variable ls. So I think it would be possible to write it as a pure function. ...
569 views

### Is it possible to Parallelize Select?

Given a large list of elements, is it possible to improve Select by parallelizing? An example: from a 10,000,000-element list of integers between 1 and 10, select ...
78 views

### Append fixed value to random selection of list

(This question might be an application of this other question, but there might be another solution specific to this application that I'm not aware of.) I am currently in a situation in which (in a <...
53 views

### Custom keyboard shortcut. Previous answer is not working in Mathematica 10

I want to remap the alias delimiter from Esc to Ctrl+f (or Ctrl+Shift+f or some other key combo). I have not been able to get the previous solution to the question to work ( Rebinding keys to define ...
95 views

### Is it possible to prohibit unnecessary CopyTensor in Compile? Just like .noalias() in Eigen library?

Turn on Needs["CompiledFunctionTools"] First example ...
128 views

### Why does Table behave differently in Mathematica compared to WolframCloud?

In Stephen Wolfram's elementary introduction to the wolfram language it says you can use the table function like this: Table[5, 10], to create a table of the ...
68 views

### What does the syntax <<X>> mean? [duplicate]

What does the syntax; << X >> mean? Where X is a number? Cheers
842 views

### Best way to emulate MATLAB's bsxfun using Map and similar functions

Given a matrix, we want to subtract the mean of each column, from all entries in that column. So given this matrix: ...
38 views

### Inspecting the evaluation stack on computation abort [duplicate]

It happens often that a computation starts consuming more memory or time when it encounters an expression with elements in the input that are in some unexpected form. Is there some way to abort ...
39 views

### Using copy as I get an error [duplicate]

When I try to copy a plot file as a LaTex file I get the following error, TeXForm of GraphicsBox[<<1>>,AspectRatio->NCache[1/GoldenRatio,0.6180339887498948],Axes->{True,True},AxesLabel->{...
125 views

### Symbolic differentiation [closed]

I have two symbolic differential equations and I want to used them in another equation as follows: ...
144 views

### Color points in list plot based on whether they satisfy an equation

I wanted to create a set of points (a,b) such that a, b are both integers between -6 and 6. Then I want to color all points (a,b) that satisfy $|a-b|\ge2$ red, and all the remaining points blue. I ...