5
votes
2answers
132 views

How to use Mathematica to calculate number of spanning tree?

As the title,The graph g is: ...
0
votes
0answers
24 views

How to use `DSolve` with y'' and y' in the same argument? [duplicate]

I'd like to solve the differential equation $y''(x)=xy'(x)$ in Mathematica. I'm not sure if it can be solved analytically. This is what I have tried: ...
9
votes
2answers
389 views

Small circles at mesh nodes

How to show the (16 X 4) mesh intersection points by a tiny red dots? ParametricPlot[v { Cos[u], Sin[u]}, {u, 0, 2 Pi},{v,1,3}, Mesh-> {15,3} ]
3
votes
1answer
74 views

Defining a list of functions

I'm using polynomial mappings such as s[{x_,y_}] := {x + y^2, y -x} and playing with compositions of such mapping, e.g. ...
3
votes
1answer
113 views

Mathematica does not import .mat file correctly [closed]

I have .mat file that contains a binary (0,1) matrix with size 100*100*100. I have used this syntax to import it in mathematica ...
-1
votes
1answer
78 views

Why do my discrete plots fail? [closed]

I'm trying to make a discrete plot of this function: y[k] = ( 0.2 * sin(k) )/k. But when I evaluated this: ...
1
vote
0answers
115 views

How to make a parameter stochastic in a differential equation system with NDSolve?

I constructed the differential equation system below, which I solved using NDSolve. Now I need one parameter ($mu$) to be stochastic, e.g. Poisson distributed around a mean and changing slightly at ...
0
votes
0answers
28 views

CreateLibrary - change folder of the library

When I use CreateLibrary, my library is saved in: C:\...\...\AppData\Roaming\Mathematica\SystemFiles\LibraryResources\Windows-x86-64 Is there a way where I can ...
-3
votes
1answer
143 views

Why doesn't Thread always thread? [closed]

What is the rationale for Thread not threading as a side effect if the arguments of the function to be threaded can be fully evaluated? For example, ...
1
vote
1answer
49 views

Export data to a file with row indices added

While Export["file.txt", A, "Table"] exports a file of data, A represents a data set, in column form the question is about how to export, or print, a set of data ...
3
votes
1answer
76 views

Find an appropriate algorithm for certain type of first order nonlinear PDE

I am trying to solve a first-order nonlinear PDE of the form $$ \partial_t z(t,x) = f(t, x, z(t,x), \partial_x z(t,x)) $$ with the boundary condition $$ z(0,x) = \phi(x) $$ for some finite domain $x \...
0
votes
0answers
47 views

LatticeReduce question

Does LatticeReduce work with arbitrary precision arithmetic? That is, if I give it a linearly independent integer basis, but the integers are 40 decimal digits long ...
3
votes
2answers
71 views

Solving an integral equation for upper boundary

I am reading a paper on High Harmonics Generation (HHG) and a Lewenstein model The paper is here. I would like to reproduce some results but I am stuck at the following problem. I have: $$p(\tau_b,\...
1
vote
1answer
91 views

Why does my threaded function need to be substituted?

In my code I have ...
0
votes
2answers
45 views

Unevaluated derivatives of known functions after replacement

I want to make the following replacement work correctly: Array[(2 D[xM[[#1]][t], t] * D[xM[[#2]][t], t]) &, {3, 3}] /. {xM -> {Sin[ω t], Cos[ω t], 0}} ...
5
votes
2answers
103 views

How do I change the color of a hyperlink?

When I create a hyperlink in a notebook, the text is blue, like the user defined variables. (Any word in the title like Graph which is a M function is in black.) How can I change the color to ...
0
votes
2answers
74 views

From matrix to eps or png

My output is a matrix. I want to save this matrix as a picture whose format is eps or png. How can I convert it? Thank you.
1
vote
0answers
122 views

How do I calculate this integral along a complex line (not a contour) in mathematica?

Given the function: $$f(z) = \frac{\pi ^2 \cot(\pi \sqrt z) \cot(\pi \sqrt {z-a})}{4\sqrt{z^2 - az}}$$ Where a is a positive constant and: $$z = \frac{i}{b} + t $$ $$t>a$$ Where b is also a ...
3
votes
1answer
96 views

How to let processes run after closing ssh connection

I need to run a long evaluation on my research group machines at university (Scientific Linux 6 , Mathematica 9). I just connect via ssh and work on math text-based environment. I can't find a way to ...
5
votes
1answer
116 views

PlotStyle according to PlotRange

I have the function Hypocycloid[{R_, r_}, θ_] := {(R - r) Cos[θ] + r Cos[θ (R - r)/r], (R - r) Sin[θ] - r Sin[θ (R - r)/r]} For, e.g., R=5 and r=...
5
votes
2answers
157 views

How to make pairs of Young diagrams appear?

I have the following Young diagrams {{{0}, {2}}, {{0}, {1, 1}}, {{1}, {1}}, {{2}, {0}}, {{1, 1}, {0}}} where you can interpret each pair as following: For ...
0
votes
1answer
184 views

Why doesn't Mathematica show up in OS X Spotlight? [closed]

When I enter a string that matches part of the name of an application on Mac, the OS X Spotlight search feature will suggest apps for me to launch. This works for every app except Mathematica: ...
12
votes
1answer
326 views

Integration of incomplete rings (ellipses) pattern

I am facing a problem in trying to do a series of averages in incomplete images. I have a series of X-ray data images, like this one: As you can see my image is a series of partial rings/ellipses ...
3
votes
2answers
106 views

Correct behavior of Integrate involving logarithmic cut, or possible bug?

I just discovered that Integrate with simple poles in its integrand sometimes gives different results depending on number type of its limit (Exact vs Inexact). <...
0
votes
1answer
64 views

Plotting Open and Closed Dots for Endpoints [duplicate]

In traditional textbooks you'll see open and closed dots to indicate whether to include or exclude the point respectively. How can I modify this code to include open and closed dots at x=2? I don't ...
3
votes
0answers
252 views

Motion-Based Multiple Object Tracking [closed]

See also my reduced question: Tracing 2d coordinates by using Nearest function A very important issue in many scientific fields such as Physics, Biology, Medicine and Astronomy is Motion-Based ...
10
votes
2answers
446 views

How to plot a distribution of planes

How can one plot in Mathematica a distribution of planes in $\mathbb R^3$? For some point $p=(x,y,t)\in\mathbb R^3$, I want to attach a plane spanned by $X(p)=\left(1,0,\frac{1}{2}y\right)$ and by $Y(...
1
vote
2answers
132 views

How to show the directions (arrows in the graph) for a ParametricPlot [duplicate]

f[t_] := 2*t - 3; f1[t_] := 6*t - 7; ParametricPlot[{f[t], f1[t]}, {t, -3, 3}] The above code shows the graph... but it can't show me the directions. How can this ...
14
votes
1answer
179 views

What's going on here? Some kind of rationalization “under the covers”?

Observe: eq = (.25 a + .5 b + .25 c); CoefficientRules[eq^2] CoefficientRules[eq^2 // Expand] results in {{2, 0, 0} -> 1/16, {1, 1, 0} -> 1/4, {1, 0, 1} ...
1
vote
0answers
24 views

Strange behaviour with Line Breaks [duplicate]

When placing Terms in several lines for better readability it comes to a strange behavior: ...
3
votes
2answers
107 views

How do I find the intersection points of two piecewise functions? [closed]

I've got a piecewise function that is defined as follows: ...
5
votes
3answers
137 views

Changing the first row of a matrix; subsequent rows depend on the first row

I have generated a matrix of zeros. tab=Table[0,{i,10},{j,10}] tab is defined such that given ...
6
votes
2answers
333 views

Inverse Laplace transform

Let $r=\mu = 0.15; \sigma = 0.05; T = 1; S_0 = 100; K = 95;$ Let $\nu:=\frac{2\mu}{\sigma^2}-1$ and $\eta \equiv\eta(\alpha):=-\frac{\nu}{2}+\frac{1}{2}\sqrt{\nu^2+\frac{8\alpha}{\sigma^2}}$. ...
1
vote
2answers
82 views

Updating ParametricPlot3D code from Getz and Helmstedt book to use V10.3 features

I purchased a version of Graphics with Mathematica, Fractals, Julia Sets, Patterns and Natural Forms, by Chonta Getz and Janet Helmstedt, written in 2004. Really fun book. I'm looking at the ...
5
votes
3answers
257 views

What is causing these artifacts in RegionPlot3D?

I have a simple program like this: ...
0
votes
2answers
91 views

Expression containing $\tt{I}$ is real — how can I show this is so in my notebook?

When I solve this equation (for ϕ): -16 y - (1 + 2 ϕ)^2 (-1 + 6 ϕ) == 0 Two solutions have imaginary parts in the symbolic ...
7
votes
3answers
162 views

Morse Code Spacing

Trying to make a function to convert text into morse code and play the sound. Have it pretty much completed, but I cannot get mathematica to emit no sound so I can have a pause between the dots and ...
1
vote
0answers
95 views

How to load to Mathematica functions linking to MKL with LibraryLink on OSX

I'm trying to load library funcitons to Mathematica which are using MKL functions but I'm constatly getting LibraryFunction::libload on OSX (this works fine on ...
0
votes
2answers
95 views

How to get the correct answer of this expression with Minimize? [closed]

I want to find minimum value of the expression $$P = 13 x^2 + 12 y^2 + 22 z^2$$ such that $x y + y z + z x = 1$. I tried ...
0
votes
0answers
23 views

Iterating with NDSolveValue in a Do-loop [duplicate]

I am trying to get a differential solution to converge. There are two separate time periods that I am solving for and the entire solution is periodic. I want to use the output from one as the input ...
1
vote
0answers
76 views

How do I print a notebook without truncation?

How do I print my document without truncation of my code and figures? I've tried scaling the document down, but just scales down the size of the text, without expanding into the empty space thus ...
0
votes
1answer
39 views

Error produced when trying to solve ordinary differential equation [closed]

NDSolve[{x0'[t] == -x0[t]*s*x1^2 + s*x1^2, x1'[t] == x1*s*x1^2, x2'[t] == -x2[t]*s*x1^2, x0[0] == x1[0] == x2[0] == 1}, {x0, x1, x2}, {t, 0, 1}]
1
vote
1answer
49 views

ListPolarPlot does not allow PolarAxes->True or PolarGridLines->True? [closed]

I am running the personal version of Mathematica 9 on a MacBook Air with OS 10.10.5. When I try to activate PolarAxes->True and/or ...
0
votes
1answer
62 views

Display intersection points between a curve and a line on plot

Does anyone know how to make a plot display (permanently and/or as tooltips) both the labels and values of the intersection points?
3
votes
2answers
109 views

Plot a parametric function from $\mathbb{R}^2$ to $\mathbb{R}^2$

I want to plot the following function defined on $[-1,1]\times[-1,1]\setminus(0,0)$: $$ F(x,y,t)= \begin{cases} (1-t)(x,y)+t(1,\frac{y}{x})& \text{if}\ -x\leq y\leq x \\ (1-t)(x,y)+t(\frac{x}{y}...
1
vote
0answers
31 views

Not reducing Trig Functions to zero [duplicate]

How do I tell Mathematica to reduce trig functions to zero when their arguments are integer multiples of pi or 2pi? I have this: ...
5
votes
3answers
249 views

How to Handle Infinity in calculations?

In my numerical calculations I have a list of Eigenvalues with some of them equal to zero. So, when I calculate the log to the base ...
3
votes
1answer
63 views

Using the InterpolatingPolynomial function

How can I find the interpolation polynomial for the function $f(x) = \frac{1}{1+2x^2}$ with interpolation knots $x_k = 1 + 0.2k , k=0,1,...,6$ using the ...
2
votes
1answer
146 views

Problem with implementing Regula Falsi [closed]

I checked the "Questions that may already have your answer" and didn't really find what I need. It's actually pretty basic. I want to solve an equation manually with Regula Falsi. I dont need a ...
6
votes
3answers
74 views

Using Select on a 2d table with a criteria that accepts 3 parameters

I have a table sets := Table[{i, j, k}, {i, 1, 10}, {j, 1, 10}, {k, 1, 10}] and I want to use a function that accepts three parameters and returns a boolean, as ...

15 30 50 per page