3
votes
0answers
44 views

Is there a way to create named ranges for spreadsheet exports?

I am trying to figure out whether I can tell Mathematica to name ranges for data that I am exporting? I want to use this data in CPLEX, which unfortunately doesn't allow the use of the R1C1 notation, ...
5
votes
0answers
140 views

Memory leak when looping over FindInstance in version 10.0.0

Bug introduced in 10.0 and fixed in 10.1 When I run the following (simplified) code with FindInstance, my MemoryInUse is ...
2
votes
0answers
98 views

How do I numerically integrate over a data set that has uncertainties? [closed]

I have a 1D data set {xi, yi} with no uncertainties in xi and with uncertainties dyi in yi. The resulting discrete function is monotonic and relatively smooth and I would like to integrate the ...
1
vote
2answers
174 views

Manipulate with multiple locators [closed]

How can I work with tables/lists of Locators under manipulate? Note this is very similar to this question: http://mathematica.stackexchange.com/a/51956/2079 The ...
3
votes
1answer
97 views

Faster variant of Reduce for finding zeros of holomorphic functions in a region

I'm currently using Reduce to find zeros of a function in a region on a complex plane: ...
10
votes
2answers
234 views

How to have one or multiple Boxed graphics, mixed with non Boxed, in the same Graphics3D

In the following example, I would like to Boxed only the RegionPlot3D, and not the Sphere. ...
8
votes
4answers
161 views

ImageApply Performance Difference

How come the timing difference between these calls is so big? (0.2 and 39 seconds on my computer) ImageApply[q3, img] ImageApply[q3[#] &, img] Where ...
0
votes
1answer
89 views

Why does a transform from polar coordinates using `TransformedField` not agree with by-hand calculation?

I have the following (simple) system of ODE's that I wish to express in Cartesian coordinates: \begin{align*} r' &= r(1-r)\\ \theta' &= 1 \end{align*} Working it out by hand, by ...
1
vote
0answers
34 views

Detecting deviations in a list of points [closed]

Say that I have a list of evenly-spaced points that I want to plot using ListLinePlot. To generate them, I am using a function that works with relatively low ...
4
votes
1answer
85 views

upper limit with `PlotStyle` in `GeoListPlot` in v10.1

Bug introduced in 10.0 and fixed in 10.2 Let's start with the code below: ...
1
vote
1answer
61 views

Plotting 2nd order ODE solution for specific values of constants

Suppose that I have a 2nd order, linear ODE and I want to plot the solution I found using DSolve. How can I plot giving specific values of ...
1
vote
1answer
104 views

Data plotting to estimate answers

I have some data such that I am estimating the time taken by system to reach at some stage. For example. 1 sec to reach at stage 1, 3 seconds to reach at stage 2, 5 seconds to reach at stage 3 and so ...
0
votes
1answer
123 views

Kronecker Delta and Contraction in Feyncalc

I am trying to simplify a rather complicated equation involving vectors and kronecker delta. I am trying to use Feyncalc for this purpose, but somehow i am not able to do it using Contract/Trick. ...
1
vote
0answers
55 views

auto save a notebook using init.m

I tried to make mathematica autosave as default, so I put Sjoerd C. de Vries's code ...
6
votes
0answers
122 views

What is the difference between GenerateDocument and TemplateApply[NotebookTemplate[

Bug introduced in V10.0 and persisting through V10.4 Since V10.3 the bug still remains but additionally the Genarate and ...
0
votes
1answer
77 views

Problems with DSolve [closed]

I'm trying to solve and plot a second order ODE. Here is my code: DSolve[y''[x] + 4 y'[x] + 12 y[x] == 80 Sin[2 x], y[x], x] Problem 1... it sticks me with a ...
0
votes
2answers
61 views

Integrating expressions with several terms and delta functions

So I want to integrate an expression that looks something like this: Integrate[f[x]+DiracDelta[x-y]g[x],{x,-Infinity,Infinity}] With some more terms added with ...
3
votes
1answer
60 views

Is this behavior of DistributionFitTest together with StableDistribution a bug?

I have been using DistributionFitTest to fit the following data: ...
0
votes
1answer
42 views

Null result with Catch and Throw [closed]

I am trying to solve a physics problem of a man in a ferris wheel that needs to jump off at a certain angle to land in a boat that is moving at a constant velocity, however, whenever I compile my ...
3
votes
1answer
171 views

How do I create an array by applying a function to the index of each element?

I am looking for something like matrix(m, n, f), but for Mathematica rather than MuPAD, and for arrays rather than matrices. That is, I'm looking for a(n ...
5
votes
3answers
277 views

adjust the alignment of different legends

I used Show to combine a ListPlot and Plot, and each plot has its own legend. The code is as ...
2
votes
3answers
80 views

Referring to the components of a vector within a sum

I feel like I'm missing something obvious here, but.... I'm playing around, trying to do the standard deviation for my stats homework (don't worry, I already worked out the answer by hand), and I ...
3
votes
2answers
138 views

Assignments in ParallelDo when using indexed variables

For convenience I use an indexed variables syntax to hold results of long computations for different integer parameters: ...
1
vote
1answer
53 views

Module and Manipulate: Why the Red Highlighting? [duplicate]

If I define a function that returns a Manipulate object, and the Manipulate has a local variable inside of it, the local ...
4
votes
1answer
67 views

Sequential System of Equations

I’m trying to set up this system of equations that sequential feeds into itself. I have these 2 equations I’m running. I’m new to Mathematica so I have no idea how to even start this. The basic idea ...
0
votes
1answer
88 views

Import mixed graph from Excel

I am new to Mathematica. I want to use the software as it allows analysis of mixed graphs (directed and undirected edges). I have my network as an Excel spreadsheet of three columns: source, target ...
0
votes
1answer
69 views

Plot an ODE solution for a list of specific constants [closed]

Let's say I have a 1st order ODE and want to plot the solution. What I have been doing until now is: ...
8
votes
2answers
216 views

JoinAcross on nested association by nested key

I would like to join two associations on nested keys. Is this possible? ...
0
votes
1answer
79 views

Roots of a transcendental equation [closed]

I need to find the 50 first roots of a transcendental equation. I use Table and FindRoot, so I find repeated positives and negatives values in a list, but I want only the 50 first positives and ...
-1
votes
1answer
149 views

need help to price a european option using finite difference method [closed]

I am writing a function to price European option using backward induction finite difference method. The function is expected to price a European option taking Stock (stock_), age (time_), volatility ...
0
votes
2answers
99 views

How to import website data which has an unknow format? [closed]

I want to import data from this website: http://hq.sinajs.cn/list=sh601006; It should look like ...
2
votes
1answer
78 views

more than one label in Graphics3D

I'm trying to add some information to my Graphics3D Plot. At the moment I output the value of a function that changes when I use the sliders. I do that with PlotLabel. I need more data to be displayed ...
4
votes
2answers
216 views
2
votes
1answer
150 views

Plot a tripartite Graph with its groups separated

I would like to create a Graph like the following: but without edges between vertices in the same group. so I have a graph and I want to plot it such that its ...
5
votes
4answers
614 views

Efficient way to sum all the primes below $N$ million in Mathematica

Today, I saw a problem described as below: Sum all primes below $N$ million At the beginning, I feel it is rather simple to calculate it in Mathematica ...
6
votes
1answer
31 views

Behavior of $GeoLocationCity within a Block

According to the V10 documentation on $GeoLocation, \$GeoLocationCity gives the city entity for the current setting for \$GeoLocation And since this is ...
6
votes
2answers
442 views

Plotting separatrices for nonlinear system

Consider the system: \begin{align*} x'&=(1-x-y)x\\ y'&=(4-7x-3y)y \end{align*} The system has a saddle point at (1/4,3/4). How can I plot the separatrices on the phase portrait having domain ...
2
votes
1answer
103 views

Make animation with multiple external data files

I am currently solving PDEs for a discrete vector field with C++. The output at a time t is an array where each row represents a site and there are 6 columns, the first 3 give the position of the site ...
4
votes
2answers
129 views

Iterating distributions

I want to calculate the distribution that comes from summing up random numbers between -0.5 and 0.5. A computationally intensive version of doing this is to simply do the following: ...
2
votes
1answer
142 views

Why this error?

f[x_] := Piecewise[{{1, -0.5 <= x <= 0.5}}, 0]; ProbabilityDistribution[ Integrate[f[a], {a, x - 0.5, x + 0.5}], {x, -2, 2}] output: "Unable to prove that ...
6
votes
2answers
336 views

Kernel quits without error in NDSolveValue

The crash is fixed in version 10.3 I am using the latest 10.1. The following single line command makes the kernel quit without error message (just a beep): ...
0
votes
0answers
124 views

First Order Conditions

I am new to Mathematica so I am not sure if this is correct. I have setup up a Lagrangian and I am trying to get the FOCs of this problem. However, it does not seem to work. Any help would be much ...
2
votes
1answer
94 views

Forcing Exact Outputs for Integrate [closed]

I'm trying to compute the following triple integral: ...
7
votes
0answers
111 views

MoonPosition and TimeZone support

With this question, I noticed some some weird results of MoonPosition. Consider the following code: ...
1
vote
1answer
126 views

Change numerical plot labels on one axis to strings

This question likely has a straightforward answer. Suppose I have a plot something like this: ...
2
votes
1answer
79 views

Expressing a definite integral as pure function with the upper-bound as it argument

Suppose i have an integral which has a closed form, $\quad \quad \int_{a}^{b} f(x) dx=F(a,b)$ I want to use output function $F$ as a pure function, like ...
2
votes
0answers
85 views

Construct single InterpolatingFunction from a mathematical combination of other IF's

Let's say I have an interpolated function f, like I might get as the solution to an NDSolve: ...
1
vote
1answer
129 views

Improving Performance - Finding Polynomial Roots [duplicate]

I'm fairly new to Mathematica. In the past, my usage has mostly been limited to solving the occasional equation, making some plots, and working with small scaled statistics. None of these have been ...
2
votes
1answer
106 views

Generating by plots by rerunning code

I am new to Mathematica. I created a code where I can evaluate a parameter (denoted by PoA) for a random instance of a directed acyclic graph. The code is below. ...
1
vote
1answer
113 views

Partial derivative of defined function with vector input

Background: Have written a formula for the refractive index for a glass slab (n) that depends on the variables t,a and d. Now I want to calculate for example some sort of error and I'll be needing to ...

15 30 50 per page