1
vote
0answers
48 views

Mathematica 5-6 Oriented Graphs code in Mathematica 10?

I want to plot the 34 pieces of connected oriented graphs where the code in Mathematica 5-6. I have Mathematica 10, student version. I get errors 1, 2 and 3. Aspiring chat here. When I don't load ...
0
votes
0answers
31 views

Solve heat equation with not constant coefficients and Neumann B.C

I am trying to solve heat equation with not constant coefficients and Neumann BC. this is the equations: $$ (k/r)(∂/∂r (r(∂T/∂r))=ρc_p(T) ( ∂T/∂t) $$ initial condition: $$T(t=0)=20$$ boundaries ...
0
votes
0answers
21 views

How to change equation when singularity happens with NDSolve?

I'm using Euler angle with NDSolve to simulate the precession of the symmetric top. But there's a problem when it comes to singularity, so I need to change to ...
3
votes
1answer
14 views

ITO Process with random initial position

I am trying to define an ITO process with random initial state but its only drawing once an uses it for all paths. Here is the code: ...
1
vote
1answer
37 views

Coloring (Temperature) surface of parametric 3D plot

I am stuck on figuring out how to do a "Temperature" Color scheme for a surface plotted using ParametricPlot3D. As an example, here is a plot of one example surface. This is a antenna gain plot of ...
2
votes
1answer
58 views

Plotting the 3D region that determines a volume

I need to plot this with Mathematica: Use a triple integral to determine the volume of the region below $z = 4 - x\,y$ and above the region in the xy-plane defined by $0 \leq x \leq2,\ 0 \leq y ...
0
votes
0answers
10 views
11
votes
2answers
143 views

How to correctly implement in a new function the scoping behavior of Table, Sum and other commands that use Block to localize iterators?

It is documented that "Block is automatically used to localize values of iterators in iteration constructs such as Do, Sum, and Table." Therefore the dummy index (iterator) in a Sum is shielded ...
1
vote
1answer
25 views

How to get coordinates from GeometricTransform?

I'm trying to get the exact coordinates of the resulting points from my transform: ...
1
vote
1answer
35 views

Constructing tensors with arbitrary rank and dimension

How can I create a tensor with arbitrary rank n and m components in each dimension? I am looking for a command in which I insert n and m and it spits out the corresponding tensor with random entries ...
5
votes
4answers
109 views
1
vote
1answer
40 views
5
votes
3answers
97 views

Show and PlotLegend row spacing

In this toy example I make some plots, each with a legend, and combine them with Show. All the legends are assembled into a column which is helpful but it is too high for the size of plot. How can I ...
0
votes
0answers
26 views

Lyapunov Exponent as a function of parameter

I am working at Rossler system and I would like to ask you for some help. This system is described by equations: \begin{array}{ll} \dot{x} = -y - z \\ \dot{y} = x + 0.2y \\ \label{eq:UkladRosSP} ...
1
vote
1answer
18 views

How to solve an iterative integral equation for a function in Mathematica 8.0?

I would like to solve the following iterative integral equation in order to find the functional form of $P_{0}(k)$ numerically and then use it subsequently for the rest of my code: ...
0
votes
1answer
58 views

How to merge two plots in Mathematica 8.0 in a column and then save the figure as a single pdf file?

I have defined two plots and then want to merge them into one so that I can save the figure as a pdf file into my computer. Here is MWE where I would like to merge two plots into one: ...
0
votes
1answer
94 views

Undershoot/Overshoot Method for this differential equation?

I have tried to solve this equation for some weeks and I am not capable. I have read in articles that it is easy with an undershoot/overshoot method, but I don't know how to do it. ...
-1
votes
0answers
34 views

Defining arbitrary Lagrangian

I'm trying to compute some general questions to a given Lagrangian. The idea is that I need to compute: $\qquad L = \sqrt{det(g)}$ With $g_{\alpha \beta} = G_{MN} \partial_\alpha X^M \partial_\beta ...
2
votes
1answer
43 views

Catch parameter order and error using functional form

Question: Why does this fail? In:= (Catch[#] &)[Throw[17]] ...
3
votes
1answer
78 views

Interval arithmetic for DawsonF (or other special functions)

I am currently trying to estimate a complicated expression involving DawsonF using interval arithmetic. The interval arithmetic is partially supported by ...
1
vote
0answers
72 views

Creating package and encoding for CDF and Path for Mathematica

I am working on learning Enterprise CDF development. I developed a simple example. I am working with packages for I can encode my codes eventually. When I use Needs command and save the package in one ...
0
votes
1answer
31 views

2 functions in a package for CDF, 1 is OK 2nd is not working

I am developing a CDF application to teach me how to create CDF files. In this application I am taking numeric and symbolic integral of a function. I create package with two functions; 1-taking the ...
1
vote
1answer
37 views

Importing an .eps file failed in the latest version of mathematica

It was quite straight forward to import an .eps file (also pdf and other formats) into a script, with the version 10.0. that I had before; but, since I upgraded my Mathematica to the latest version ...
8
votes
1answer
89 views

Symbolic and numeric limit disagreeing on branch cut of ArcTan

Bug introduced after v8.0.4 and before v9.0.1, and persisting through v10.4.1. Investigating comments to my previous question lead me to the following problem: ...
0
votes
1answer
38 views

How to Write a code to automatically generate the planckian locus in (u,v) space

in the CIE XYZ color space the three coordinates defining an electromagnetic spectrum are given by XT=∫x( λ ) M( λ , T )dλ, YT=∫y( λ ) M( λ ,T ...
0
votes
2answers
77 views

Stiff second order ODE

I am trying to solve numericaly $f''=f^{3}-f$, exact solution is Tanh(x). Problem is numerical solution fails if i coming closer to tanh plateau. StiffnessSwitching method dont help. ...
1
vote
0answers
52 views

Power Spectral Density Plotting

I am new to signal processing.I am analyzing the connection between the behavior of the Rossler model and its parameter c. \begin{array}{ll} \dot{x} = -y - z \\ \dot{y} = x + 0.2y \\ ...
-2
votes
0answers
36 views

How to overload the operator “*” as KroneckerProduct

Can I use the expression below a * b * c * d for short to instead KroneckerProduct[a,b,c,d] automatically when a,b,c,d are ...
39
votes
1answer
1k views

Local variables in Module leak into the Global context

From the Mathematica documentation on Module: Module allows you to set up local variables with names that are local to the module. But after using ...
0
votes
0answers
5 views

How to insert figure from my pc to Mathematica SE [migrated]

How to upload figure from my pc to Mathematica SE ? On Mathematica SE editor there is a panel called figure, put it describes how to upload figure from a website .. So any help
18
votes
2answers
737 views

Determine whether points lie within a cow

I would like to determine whether randomly-generated points ...
11
votes
1answer
1k views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
3
votes
2answers
38 views

PlotStyle with nested list

Simple Question from a Stumped Rookie: Using ListPlot, I can't get PlotStyle to look below the first level of a nested list to assign individual saturation values for each point; it assigns the ...
9
votes
2answers
361 views

Any packages for vertex enumeration on Mathematica?

My work requires me to enumerate all vertices of a polytope defined by linear inequalities from time to time. And I'm mainly working with _Mathematica 9.0 on Mac OS X 10.9. So I wonder are there any ...
11
votes
2answers
90 views

Internal DynamicModule steals scope of external DynamicModule

I have two dynamic objects, one nested in the other. Both have their own functions defined, as follows. I have simplified them to the point where they don't make much sense, but can still illustrate ...
7
votes
2answers
85 views

TimeSeries interpolation with time gap awareness

Is there an option for ResamplingMethod (or any other practical way) for specifying different behaviours of the interpolation, depending on, for instance, closest dates (on the ...
4
votes
1answer
87 views

How to use the built-in function GraphElementData

Very surprise to me.I found this is a built-in function but it is undocumented.Such as this answer's "CurvedArc" and ...
-5
votes
1answer
38 views

Calculating the top left corner in a 2d field [on hold]

Given I have a field with several rectangles like shown in the picture. A point with its x and y coordinates are given. The height(h) and the width(w) are also given. How can I calculate the top ...
8
votes
1answer
148 views

Wrong limit: Limit[(1 + (-1)^n/n)^n, n -> Infinity]=1 (Mathematica 10.4 and W-Alpha)

Since $(1-\frac{1}{n})^n\to 1/e$ and $(1+1/n)^n\to e$, the sequence $(1+\frac{(-1)^n}{n})^n$ has no limit as $n\to\infty$, but has limits for odds and even numbers. If $n$ were taken to be real, there ...
68
votes
2answers
14k views

Mathematica 10.0.x freezes in Initializing kernels

Bug caused by paclet update and fixed by paclet update. I updated to Windows 10 and have been running Mathematica fine on it for over a month. For some reason, it has just stopped working. I don't ...
0
votes
0answers
45 views

Functions with indexed variables [on hold]

This Solve[{A/x - l p == 0, A/y - l q == 0, x p + y q == R}, {x, y, l}] but I wonder if it is possible to replace $x$ by $x_1$, $y$ by $x_2$, $p$ by $p_1$ et $q$ ...
1
vote
0answers
35 views

diophantine linear equation with condition on the sum of coefficients

I am trying to solve the following diophantine equation x*a + y*b == c where a,b,c are integers and the absolute value of their sums is, for instance, 4. Then I ...
2
votes
1answer
42 views

Plotting the complement of a graph without changing the name of the vertices

I have a graph in the form {Dog -> Apple, Apple -> Screwdriver}, I used to plot a graph in the following way: ...
8
votes
1answer
103 views

Integrate and NIntegrate disagreeing over branch cut of Sqrt?

Bug introduced after v8.0.4 and before v9.0.1, and persisting through v10.4.1. In Mathematica 10.2 I'm trying to integrate this piecewise continuous function, but ...
0
votes
1answer
47 views

How to force a Range on Fit?

I have 1001 points between {x,-5, 5}. I wanted to fit a polynomial over the data but when i try: Fit[Flatten[data], {0, x, x^2, x^4, x^5, x^6}, x] ... the range ...
15
votes
1answer
348 views
3
votes
2answers
64 views

Why does `Repeated` not work in this case?

I think I don't understand how to use Repeated. I have a list for example list={a,b,a,b,a,b,a,a,b} I want to detect whether ...
3
votes
2answers
122 views

Interesting “Tuples” application

I want to start with: {a,b},{c,d},{e,f} and end up with: {a,c,e},{a,c,f},{a,d,e},{a,d,f},{b,c,e},{b,c,f},{b,d,e},{b,d,f} ...

15 30 50 per page