16
votes
0answers
100 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
1
vote
2answers
107 views

Factor out imaginary unit of root of obviously negative term

Suppose I have the term $t=\sqrt{-a^2-b^2}$, where $a,b\in\mathbb R$. Of course, we know that it holds $$ t = \mathbb i \sqrt{a^2+b^2} $$ which is (in my opinion) more convenient. How can I get ...
1
vote
1answer
125 views

Residue failed to reproduce this residue in a paper

This problem is a more clearly state of my original problem which is off topic, so I reconsider my problem carefully based on previous discussions, and gives the following valid code to reproduce my ...
1
vote
2answers
92 views

Group matrix values by column [closed]

Original Question: I have a list {{a, 1}, {b, 3}, {c, 1}, {d, 2}, {e, 3}}. I want to be able to group the the first number in each pair that has the same second ...
0
votes
1answer
59 views

Why is FindRoot failing to evaluate this function? [closed]

I have a (somewhat long) script which runs cleanly until the very last stage. Here, I'm using FindRoot to attempt to parameterize implicit curves in the zero set ...
2
votes
2answers
365 views

How can I evaluate a certain kind of summation?

I have the following sum P0, P1 and P2 are constants. The problem is to assign all ...
0
votes
1answer
63 views

Error message when running NDSolveValue

I am trying to solve a set of differential equations but keep getting an error. See message below "NDSolveValue::ndnum: Encountered non-numerical value for a derivative at t=0" The system that I ...
0
votes
1answer
56 views

Integral of $(\sin x)^3(\cos x)^3$ [closed]

For the integral of (sin x)^3(cos x)^3 I got 1/6(cos x)^6 - 1/4(cos x)^4 + C. This seemed to work but my book had 1/4(sin x)^4 - 1/6(sin x)^6 + C. This is similar to what I got but instead of cosine ...
2
votes
2answers
124 views

How to plot an Eddington-Finkelstein diagram

I need to plot the same thing as what is shown on the third picture of the site below (sorry, I'm unable to poste that picture here) : http://ion.uwinnipeg.ca/~vincent/4500.6-001/Cosmology/...
1
vote
0answers
54 views

Numerically parameterize portion of $F[x,y]==0$

I have a relatively complicated function of two variables F[x,y] whose zero locus contains a number of intersecting paths in the $x,y$-plane. A problem I've been ...
2
votes
0answers
61 views

Why does Expectation function compute, while explicit integration does not?

The code: Expectation[1 + 1/y, {y \[Distributed] ExponentialDistribution[1]}] outputs 1 - EulerGamma While, ...
8
votes
1answer
103 views

Calculating density of states from lists of momentum/energy data

I am trying to calculate the density of states for a 2D system given certain band structure data organized in a specific format. Below is an example of my procedure: Beginning with a simple 2 x 2 ...
2
votes
3answers
128 views

NDSolve and differentiation of Abs

I have found several questions about the derivative of Abs and how it is not defined in the complex plane. What I have not found yet is a precise and simple ...
25
votes
4answers
432 views

$3D$ graphic of soccer ball

How to make a soccer ball $3D$ graphic? The following image is from Wikipedia, Spherical polyhedron: Truncated icosahedron (left) and standard soccer ball (right) ...
6
votes
1answer
91 views

ArrayPlot gives wrong plot legend, how to fix?

Bug introduced in 10.0 and persisting through 10.4.1 My minimal working example is the code ArrayPlot[{{1, 0.1, 0}, {0.1, 0, 0}}, PlotLegends -> Automatic] ...
0
votes
1answer
41 views

Issues with Functions Defined as Eigenvalues [closed]

I have to calculate eigenvalues of 4 different matrices. The code I'm using is below, but essentially three out of the four are working with no problem, and one (the eigenvalues I've defined as y) ...
2
votes
1answer
100 views

Speeding iterative computation

I want to get the following iterative sequence ...
0
votes
0answers
5 views

How to derive a Taylor series from the ones we know (cosx, sinx, …) [migrated]

If we know the Taylor expansion for the cos(x) function around 0, how can we use it to derive the Taylor expansion of a similar function (cos(x+π/4)) around 0? I do know how to get the Taylor series ...
2
votes
2answers
57 views

How to use quantities obtained by solving equations directly to plot

I want to know how we could use the quantities we found by solving simultaneous equations, directly into plotting graphs. For example I have this Mathematica code; it gives the values of ...
3
votes
1answer
181 views

Alternatives to For/Do Loop to optimize indexing Matrix

I am trying to optimize my code that searches for elements in the rows of matrix that are greater than 0. Then use that position to grab the element from other matrix. I use the do loop to iterate ...
0
votes
0answers
15 views

No MenuBar despite CurrentValue[EvaluationNotebook[],WindowElements] saying it exists

I have 32-bit linux 14.04 (arch returns i686) with Mathematica 10 {$Version in Mathematica ...
0
votes
0answers
49 views

Symbolic series

Mathematica realises, of course, how to deal with symbolic series: Sum[g[x]^k, {k, 0, ∞}] (*Out: 1/(1 - g[x]) *) I.e. it does not worry about values of ...
0
votes
0answers
59 views

Are the following implemented: Differentiable, Continuous, Interior Point? [closed]

FunctionDomain is a great Mathematica function. It tells you the natural domain of an expression. Has anyone (or is anyone) working on a similar thing for checking ...
4
votes
2answers
64 views

Adding lines and labels at custom positions in BarLegend

Currently my BarLegend looks like: BarLegend[{(ColorData["Rainbow"][Rescale[#, {0, .125}]] &) , {0, .11} }] I would like to add white (maybe dotted) lines ...
1
vote
1answer
41 views

StreamDensityPlot plots arrows of different length

I am plotting a vector field with StreamDensityPlot. I know it's symmetric about the $x$ and $y$ axes because of the equation, but also because if I plot it with VectorDensityPlot, it shows the ...
2
votes
0answers
79 views

ListPolarPlot goes crazy when PolarAxes->True

Bug introduced in 9.0 and fixed in 9.0.1 I think I am experiencing the same/similar problems as this user. Mathematica Version: 9.0 for Mac OS X x86 (64-bit) (November 20, 2012) Computer: Mac OS ...
1
vote
1answer
58 views

Consecutive generation of subsets

It is well known that the array of subsets of even small set is very big. This leads to problems with machine memory. Is there an effective way to generate subsets sequentially?
0
votes
1answer
39 views

ListPlot[Transpose[{xx,yy}]] returns blank plot [duplicate]

This is complete mystery for me, but I am unable to plot the following data... I have two lists, that I want to ListPlot. The data is created in the following way (I edited the code for more clarity): ...
0
votes
1answer
46 views

I have a problem with particle in the box [closed]

I have a problem while generating particle in the box from this equation Plot[Sqrt[2/L] Sin[n Pi x/L], {x, -L/2, L/2}] because Mathematica might confuse about ...
3
votes
1answer
57 views

Plotting over the unit interval $[0,1]$ [closed]

Related to the question : Neumann and Dirichlet eigenvalue problem - Eigenfunctions on the square I'd like to do the same thing on the line instead of the rectangle, i.e. with $\sin(k\,π\,x)$ and $\...
0
votes
1answer
44 views

How to sum over half integers? [closed]

I have an expression of the form Sum[1 + x^n + x^(n^2/2), {n, 0, 10}] but I want to sum over half integers, that is, I require that $n \in \mathbb{Z}+\frac{1}{2}$ ...
5
votes
1answer
63 views

How can I generate a graph from a NetworkX JSON

I have done some network generation and analysis in Python NetworkX. I do most of my visualizations with D3, but for publications I would like to generate some graph plots with Mathematica as well as ...
3
votes
2answers
157 views

Operation with lists

I have created this code and was wondering if you could suggest a less convoluted way of solving the problem. I have two lists: ...
3
votes
2answers
81 views

How to apply `DiscretizeGraphics` to a tube?

I want to export the numerical solution of the Chan-Lee oscillator as an STL file so that I could print it out. But when I expanded the curve into a tube, ...
4
votes
1answer
67 views

Atom weight in SI units

In chemistry is very common to use the units grams/mol for the atomic weigth, so the mass of one atom (of Tin, for example) is calculated as : massOfOneAtom = (0.11871 (Kg/mol))/(AvogadroConstant (1/...
-2
votes
1answer
117 views

How to fit this model [closed]

I have such data ...
1
vote
0answers
144 views

Problem of calculating the residue of a expression (to confirm the result from a paper) [duplicate]

I use Mathematica to confirm a result from a paper which is to calculate the residue of a expression at zero. The code and result are given below. Is this residue too complicated for Matheamtia or ...
6
votes
1answer
72 views

Testing Framework applications in the FrontEnd area

I understand that user interaction with GUI can't be tested automatically but some things can be tested using low-level notebook programming functions. Are there any guidelines or limitations of using ...
4
votes
3answers
240 views

How to double elements of a list given by their positions

Given that I have a list $\{P_0,P_1,P_2,\cdots,P_7\}$, where, $P_i$ is a real number or a list like {x,y}/{x,y,z}. Now I would like to double some elements ...
1
vote
0answers
38 views

How to tune Dynamic properly to accomplish this?

I'm making a words remembering program with Mathematica. I almost finished it but I need to implement a dynamics to make it more beautiful. Try the following code: ...
0
votes
0answers
21 views

How can I generate points according to a certain Probability Distribution or Probability Distribution Function? [closed]

Here Dist is the distribution of some Barndon variable. I need to generate points, lets say 100 points that follow this distribution it. Can someone suggest me a ...
0
votes
2answers
82 views

Plot graph with complex number

I need some help from expert. I already read about the plot with Identity, I but I not really understand and I think my problem is different and I confuse to used what command of plot. Here the ...
0
votes
0answers
42 views

How can I evaluate a line integral? [closed]

Can I compute a line integral with Mathematica? I have tried entering the t values into my expression, but I am not getting an answer. For example: ...
-2
votes
1answer
64 views

Neumann and Dirichlet eigenvalue problem - Eigenfunctions on the square [closed]

I don't know if I am in a good place to ask my question, but I'd like someone to create a visual support for a problem of mathematics. I was wondering what is the fundamental different between a ...
2
votes
1answer
106 views

Show and lighting options do not work together

I am trying the example from this demonstration, but it is not working properly. ...

15 30 50 per page