13
votes
4answers
808 views

Generate a certain colorful triangle

I want to get a colorful triangle like this: I hope to get a triangle with any number of layers. This is my current method. Actually, I'm not very content with these graph theory functions, since ...
0
votes
0answers
19 views

How can I generate an interrupted projection of a world map?

How can I generate a world map like the one here, but for an arbitrary hand-drawn map? For example, starting from scratch, how can I manipulate this world map to get something that looks like ...
0
votes
0answers
16 views

Using RegionFunction with non-trivial Inequality

So I have been using ContourPlot to plot the zero set of a fairly unwieldy function, with many intersecting components. There's really only one of these components ...
2
votes
1answer
41 views

How to access box-and-whisker specifications from custom ChartElementFunction?

I am creating a custom ChartElementFunction for BoxWhiskerChart. I would like to access the box-and-whisker specifications from ...
3
votes
0answers
28 views

single slit diffraction numerical simulation

I'm trying to simulate the Fraunhoffer diffraction at slits(single,double,triple) with Mathematica. In the picture, the red one is analytical result and the green one is numerical result. The ...
1
vote
1answer
26 views

Multiple curves plot from excel

I want to have a multiple curves plot which describes the energies of electron respect to distance. After importing data from excel, I have a table as below. The first row is the distances. Each of ...
0
votes
1answer
20 views

Problem with “FrameLabel” when specifying Superscript, Italics, and Times (font)

I'm using FrameLabel to create the label "ln p'(t)" [which is, natural log of the function p'(t)]. This is to be publication quality, so I specify Times font, and Italics (see below). But the "prime" ...
1
vote
1answer
29 views

Translation especially in graphics

By running the following code: ...
1
vote
0answers
32 views

Complex function plot issue

I am plotting the real part of a simple complex function defined in two equivalent ways, and the plots do not agree. ...
10
votes
1answer
77 views

Bug with Compile and Log2?

It seems that Log2 in Compile gives numerical errors (CompiledFunction::cfn) if the input is ...
0
votes
0answers
12 views

With regards to the LogLogPlot on Wolfram alpha [on hold]

I plot Logplot for a function , it comes out nice, however when I plot the log log one, it doesn't work, Here are the images. Can someone tell me what's wrong here.
6
votes
3answers
78 views

How to create a window which will close in a certain amount of time?

I'm currently making an interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time. Here's an short example to illustrate the effect: ...
0
votes
0answers
18 views

Solving Inequality with Exponentiation and Log

I have an inequality that I am not able to proove which is $Log[d] <\frac{(-1 + d^M) (d^M - d^N) N} {d^{M}(-1 + d^N) M (M - N)}$ with $0<\delta<1$, $M\geqq1$, $N>M$ and thus $N>1$. I ...
0
votes
1answer
37 views

Troubles with showing axis after saving in EPS

I'm trying to save a picture in EPS and then to put it into my LaTeX document. But when I put it the left axis is not shown. How do I fix it? (look at the screens) If I save the image in JPG, there'...
3
votes
0answers
19 views

Weird bug with Esc, string, and underscore?

There seems to be a bug with esc key, strings, and underscores. For instance, see the following code: a = f["1_2"]; If an esc character is typed anywhere ...
2
votes
2answers
101 views

Change bond cutoff distance when plotting .xyz files

When plotting a molecule from a xyz data file, Mathematica automatically adds the bonds between the atoms. But in my case it adds too many bonds, not only between nearest neighbours but also between ...
1
vote
0answers
26 views

Inverse Laplace Transform Failing: $\frac{1}{\exp (\beta \tau )-a}$

I have tried various approaches to get the solution to this inverse transform but all so far are failing. ...
0
votes
0answers
19 views

3DPlot, Logarithmic x and y axes, Interpolating function

I've used NDSolve to get an InterpolatingFunction that solves a certain difeq. I want to see the behavior of this function on a couple different scales, so I want to use some sort of Log Plot. For a ...
0
votes
0answers
22 views

Error of $Failed when defining a function [on hold]

I am trying to define the function below. K[r_, a_] := -((a (3 + 2 a r^2))/(1 + a r^2)^2) Thus far, I have gotten the error ...
2
votes
0answers
22 views

How to SSH tunnel into remote mathematica?

If you running a webserver remotely, one simply ssh tunnels into the remote instances and then uses a browser for a "remote frontend" like so ...
1
vote
1answer
82 views

Asymptotic solution

I have an ODE V''[z] + ( (I z0^2 w)/(3 (z - z0)^2) + (2 - (4 I z0 w)/9)/(z - z0)) V'[z] + (-(12/41) I z0 w + (23 z0^2 w^2)/369)/(z - z0)^2 V[z] == 0 ...
0
votes
0answers
16 views

Parametric Plots and PlotLegends: Legend display issues

I'm having some issues getting a plot legend to show up as it normally would when I use plots with frames, on Mathematica 8.0.4.0. In addition to now using a parametric plot, I'm also flipping the y-...
0
votes
0answers
21 views

How to list all binary expression trees with given leaves

If i have a list of leaf nodes and nonleaf nodes with specified arities, how can I effieciently enumerate the possible trees? For example: ...
2
votes
1answer
45 views

Move underlined text from Word to Mathematica

I've have a Word document that I'd like to import to Mathematica. I could just copy and paste, but when I do, I lose the underlined text. Is there a way to get MS Word text into Mathematica while ...
3
votes
0answers
23 views

Is every menu command equivalent to a command that can be executed within a notebook?

If so, is there a directory which gives the in-notebook command associated with each menu command ? In particular, I would like to know how to replicate the menu command Evaluation -> Quit Kernel -> ...
0
votes
0answers
21 views

Part command in a matrixform

I do have a matrixform a table which I would like to pick just a part of it. Is it possible to somehow command “part[[]]” for a matrixform? If not, what are the alternatives? my matrix dimensions is [...
0
votes
1answer
29 views

NSolve/Reduce Help: 3Equations/5Variables

I have this system of equations that I have been trying to solve using Mathematica; I had been running this last evaluation for 30 hours and my computer crashed :/! So, instead of deciding to run ...
0
votes
1answer
38 views

How to find a maximum?

FindMaximum[1/2*Abs[(o - u)^2/(1 + o^2 + u^2 + 2*o*u + 2*o^2*u^2)]^2, {o, u}] doesn't work. It gave me that : FindMaximum::fmgz: Encountered a gradient that ...
3
votes
4answers
310 views

How to solve an equation with a nested function

I have the equation f[f[x]] == 28 + 9 x How can I solve this for f[x]? I note that this post relates to the topic, but ...
6
votes
0answers
104 views

How to read and write data to open socket?

I am trying to open connection with socket. I am using this: ...
9
votes
3answers
1k views

How can I plot a loxodrome?

Can someone show me how to plot a rhumb line (loxodrome) in Mathematica via the ParametricPlot function? Here is what I got so far: ...
1
vote
1answer
54 views

How to solve in principle such coupled ODEs

One example for coupled ODEs from the Mathemtica help center reads ...
10
votes
3answers
421 views

Palette button with progress bar

Let's say you have a palette with a button that has to do some time-consuming task when clicked: ...
0
votes
1answer
44 views

Probems using 2 For and a AppendTo to cycle through my Equation to solve some matrixes

I am trying to solve a few problems here. I have an equation with multiple variables that I am trying to solve in For loop method. I will attach the file below. In addition I am trying to get it to ...
2
votes
2answers
100 views

Switching direction of y-axis

I'm trying to reverse the direction of the y-axis on a parametric plot, with a frame. I'm using ParametricPlot because it was an easy way to switch the x-axis with the y-axis. I have seen many ...
2
votes
0answers
49 views

Eigenvalues of large symmetric matrices

When I try to compute the eigenvalues of the adjacency matrix of a very large graph I get, what can be charitably described as, garbage. In particular, since the graph is four-regular, the eigenvalues ...
0
votes
0answers
45 views

Mathematica license and factory reset [on hold]

I want to factory reset my computer but will I have to repurchase Mathematica if I do so?
1
vote
1answer
69 views

Dynamic and TabView mayhem

What I'm trying to do is damn simple but it seems like Mathematica is extremely ill-designed for this ... Here is a very simplified form of my code to show the basic idea. I have a variable number of ...
0
votes
1answer
48 views

How to add Contour labels in the desired place?

enter code here Hi, I have a contour plot as shown Above. What I want is to have distinguishable contour labels i.e, here the value of the contours is not readable above 800 or so. How can I place ...
2
votes
1answer
65 views

How to save in PDF the SAME Result? The numbers and Labels in graph are erased when I save the PDF

I want to save some bullet gauges in PDF, as a dashboard, but what I obtain in the PDF has the numbers erased, and the Titles/Numbers erased as you can see here when What Mathematica10 show is ...
2
votes
1answer
61 views

Do-Command around entire Notebook (by iterating it from another notebook?)

I have a large simulation (1500 lines of code in different sections) and I would like to run the file using different combinations of input parameters without manually changing the parameters. Say my ...
0
votes
1answer
59 views

why the result not contain imaginary, I? [on hold]

Good day, First of all, sorry if my coding in this forum has mistake. I already learned it and this is the best try from me. May anyone help me troubleshoot my problem below. ...
5
votes
1answer
119 views

switch between automatic and manual updating

I have a plot with interactive controls. I'd like to give the user the option between having the plot automatically update (when the plot's parameters are changed with the slider) and having the ...
4
votes
2answers
238 views

Defining Associated Stirling Numbers of the Second Kind

First, I'm new to Mathematica. I spent my undergraduate programming with Maple, and my computer crashed and I lost it. Fortunately, my university offers free Mathematica downloads to students, so ...
3
votes
1answer
135 views

Is it possible to simulate a solved example in Wolfram for free, How?

How we can write the following Formula in Wolfram: The Fourier Series $$ f(x)=f(x+2\pi), f(x) =\left\{ \begin{array}{rcr} 1 & & -\pi <x<0 \\ \sin x & & 0<x<...
3
votes
2answers
121 views

How to find Eigenvalues of Sturm-Liouville problem? Getting wrong Imaginary Eigenvalues

I want to find Eigenvalues of following Sturm-Liouville problem D[(2 - MA/κ[s]) q'[s], s] + W Ω^2 q[s] == 0, Where Ω^2 is the ...
0
votes
1answer
46 views

Improve speed of Nested Matrix exponential

I have a short Code example and I want to know whether it is possible to improve the speed. The L matrix in my code is a SparseMatrix, but for this question I just use something similiar. ...
3
votes
1answer
357 views

How to transform and combine multiple Graphics3D into one?

ProteinData["A2M", "MoleculePlot"] gives you a Graphics3D object below. I'd like to display multiple of these proteins in a ...

15 30 50 per page