-3
votes
0answers
34 views

integral-equation of Wentzel–Kramers–Brillouin [on hold]

I need a code that can help me to solve the WKB equation for the eigenenergies for any given potential
1
vote
1answer
35 views

Extract list of values associated with specific header within an expression

I would like to have a function that can extract from an expression a list of values that are within the brackets of a certain header at any level: ...
0
votes
0answers
20 views

How to Expand an expression joining variables [on hold]

How can I obtain, starting with ax (a - x)^2, the expression ax^3-2a^2x^2+a^3x? If I try ...
-1
votes
0answers
33 views

Calculating mixed strategy equilibrium in battle of sexes [on hold]

How to calculate the mixed strategy unique equilibrium in the following modified battle of sexes game: Player 2 A B ...
3
votes
1answer
72 views

Why am I getting different answers for integral depending on method?

I'm trying to carry out an integral and I'm finding different answers depending on which method I choose to integrate with. I assume this has something to do with divergent pieces but I don't ...
4
votes
0answers
128 views

Visualising a 1-(50,15,15) design

The problem I have is the visualisation of a $1-(50,15,15)$ design. That is a set of $50$ points and $50$ blocks (lines), so that each point is on $15$ lines, and each line contains $15$ points. My ...
0
votes
2answers
57 views

Mean[] of symbilic list returns numbers [on hold]

I wrote simple moving weighted average function and tested it over the symbolic list. It supposed to return moving triad average - 1/5{a+b+c}, 1/5{b+c+d}, etc. It returns first 6 triads correctly and ...
3
votes
2answers
78 views

Maximizing a function defined using NIntegrate [duplicate]

I have two functions fn[x,y,z] which is in integral form and I have another function gn[x,y] which is also in integral form ...
4
votes
1answer
70 views

How to make a cell highlight on mouse down?

When a cell has WholeCellGroupOpener set to True, it becomes a clickable button that toggles its cell group open and closed. How can I make the cell change color ...
19
votes
2answers
372 views

Is there a built-in equivalent to Python's enumerate?

Python's built-in function enumerate takes an iterable over $(a_0, a_1, \dots )$ as argument and returns an iterable over the sequence of pairs $((0, a_0), (1, ...
4
votes
1answer
76 views

Points on discriminant variety?

I am trying to find a way in Mathematica to compute points on discriminant variety for modest size systems, but I couldn't find one. The system is something like: ...
4
votes
1answer
69 views

How to close all tagged input cells without closing their output cells?

I have tagged certain Input cells I want to be closed during a presentation. I close them as follows: ...
0
votes
1answer
48 views

Avoiding misconversion of data with ToExpression function [on hold]

I've got a list of data with the following structure which can be easily converted To expresion by some manipulation such as ...
264
votes
25answers
36k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
6
votes
2answers
118 views

Running MathKernel from Emacs brings cursor to end of line

When I start MathKernel from the Emacs shell, there are always extra spaces inserted so the cursor goes to the far right side of ...
7
votes
1answer
284 views

Alternative to Subsets to generate k-combinations

I need to generare a huge number of k-combinations for a quite big set of numbers (more than 100), so I would avoid Subsets because it requires too much memory (it generates all subsets at once). I ...
9
votes
2answers
100 views

Testing Notebook severe slowdown with newlines

Bug introduced in 10.0 and fixed in 10.1.0 I am having a severe slowdown problem with Mathematica 10 new Testing Notebook feature (File -> New -> Testing Notebook). Please try this simple test: ...
18
votes
1answer
310 views

In 10.1.0 BenchmarkPlot doesn't work?

Bug introduced in 10.1 and fixed in 10.2.0 In Mathematica 10.1.0 BenchmarkPlot from the GeneralUtilities package doesn't work; copying Taliesin Beynon's initial ...
4
votes
1answer
36 views

Failure in use of SetPrecision with Filter

I am working with a narrow band filter and I wish to use a high precision version. The filter is defined using Integers with Laplace variable s. Here is the, rather horrific, equation: ...
2
votes
1answer
61 views

Decouple 3 simultaneous 2nd order ODEs (of 3 dependent variables)

I have three simultaneous ODEs with coupled dependent variables. I was wondering whether there's a way for Mathematica to decouple these equations (into three ODEs of a single dependent variable ...
2
votes
0answers
22 views

How to stop auto loading of previously opened notebooks

I'm trying to prevent Mathematica from opening previously opened notebooks when I start it up. I'm using version 10.0.0.0 on Mac OS X Yosemite. I've dug around in the preferences, and have tried ...
10
votes
1answer
129 views

“ParametricSensitivity” in ParametricNDSolve

"ParametricSensitivity" is listed as a Method in the documentation for ParametricNDSolve, ...
-1
votes
0answers
74 views

Trouble summing over many indices [on hold]

I'm trying to solve a problem by using `Sum, but as I have many indices (14) in the summation, the running time is awful. My program looks like this: ...
2
votes
1answer
55 views

2D plot using output from the other function

I would like to get 2D plot using output from the other function. FindInstance[0.5*x^2 + Cos[y + P] == 1, {x, y}, Reals] By changing values of P manually it gives ...
3
votes
1answer
42 views

Programatically align text in the Front End

One can select a cell and using the Front End menu perform Format -> Text Alignment -> Align at 25% Other options are given as well. I have learned from Stack Exchange how to create a button and ...
0
votes
0answers
56 views

Transform Matlab assignements (with vectors and matrix) into Mathematica equations [on hold]

In a previous post Transformation Matlab assignements To Mathematica equations, thanks to your help, I could transform matlab assignments to Mathematica equations by using ...
0
votes
0answers
60 views

Error with ND Solve [on hold]

I am new to Mathematica, and I am having some issues solving a homework problem of a differential equation. Here is the code: ...
23
votes
2answers
796 views

Kernel crash after idle in version 10.0

Bug introduced in 10.0.0 and fixed in 10.0.2 In version 10.0, when I leave the Mathematica section idle for some time (of order an hour), the kernel quit automatically. The syntax highlighting is ...
0
votes
0answers
22 views

How to find the optimum word length of a group element?

I have a (large, finite, permutation) group, and a group element that I know is a product of length=20 of the generators. But when I ConvertGroupElementToWord, I get a word of length=118. Other, ...
8
votes
2answers
327 views

n-dimensional plot

I want to plot 6-dimensional data using parallel axes (https://en.wikipedia.org/wiki/Parallel_coordinates). The list looks like this: ...
0
votes
0answers
14 views

How to find a Sylow p-group? [migrated]

Using Mathematica: Given a (finite, permutation) group G of order p^a*m, where p is a prime not dividing m. and G is a very large finite group (so looking through all the elements is not possible), ...
3
votes
1answer
50 views

Area of a surface spanned by 2 parametric curves

I would like to find the area of a surface spanned by two parametric curves in 3D. I came up with this metric for distance between curves. The illustrations are in 2D for simplicity. ...
3
votes
1answer
145 views

Failed to create a special random-disturbed initial condition for partial differential equation

I try to use BSplineFunction to creat a initial condition for NDSolve which has periodic boundary condition, that is realized by ...
7
votes
0answers
115 views

How does Mathematica resolve symbolic systems of inequalities?

Before getting into my question, let me provide some context: I recently started using Mathematica to automatically perform stability analyses that I previously did by hand. A major part of the ...
1
vote
3answers
112 views

Differentiation help [on hold]

I am new in Mathematica. I want to differentiate ...
16
votes
0answers
141 views

SeriesData sucks when it can. How do I keep SeriesData from sucking?

When I run Series[f[x]*Sin[x],{x,0,3}, Analytic->False] I get: f[x](x-x^3/3+O[x]^4) as expected. In ...
1
vote
1answer
48 views

Linear Fit of multidimensional data

I am trying to find linear decomposition of vector B (of arbitrary dimension $n$) in the form : $B = \alpha_{1} C_{1} + \alpha_{2} C_{2} + ...$ where $C_{i}$ are known vectors (of dimension $n$) ...
14
votes
3answers
468 views

How to zero (or replace) the diagonal of a square matrix?

Zeroing the diagonal of a square matrix is an operation I need frequently, but somehow I still haven't managed to find an elegant solution that satisfies all these requirements: works with both ...
8
votes
2answers
568 views

Rotated text in “plot” cannot be copied to MS Word

When I add some text to a simple plot with drawing tools, the text cannot be copied and pasted out with the graphic itself to Microsoft Word. Do you know how to copy the manually added text out to ...
3
votes
0answers
40 views

VS c# NetLink - pictureBox - MathCommand

Has anyone experiance or a running example how to use within VS C# the NetLink.UI pictureBox to plot graphics, especially using the pictureBox - "MathCommand" I use the code example below which throw ...
4
votes
1answer
31 views

How could I set TimeConstrained globally?

I want to set TimeConstrained globally, I tried use $PrePrint as bellowed script: ...
2
votes
2answers
128 views

Finding the FWHM of a NonlinearModelFit gaussian [duplicate]

I have a NonlinearModelFit in a very large program, f1 = NonlinearModelFit[d1, a Exp[-(b (x - c1))^2] + yoff, {a, b}, x] Which is used in my program to produce ...
9
votes
1answer
764 views

NDSolve::ndcf: Repeated convergence test failure. How to solve?

I am trying to simulate a system of $n$ pendulums with some friction in Mathematica 9. This is the code I am using: ...
14
votes
8answers
386 views

Splitting a list into increasing sublists

I have a list of numbers (say, for example, {1,2,3,4,3,2,1,2,3,4,3,2}), and I want to split it into sublists so that each sublist is the (smallest) sublist whose ...
5
votes
3answers
178 views

Simple exercise using the function Cases

I'm having some trouble in the following exercise: Find which elements of the list are prime numbers or divisible by 3. list = Table[i^2 - 6 i - 1, {i, 0, 15}] ...
0
votes
0answers
35 views

Numerically finding a single root of a polynomial system

I may be off base, but from the documentation, it sounds like NSolve is specifically tailored to finding (all) roots of a polynomial system. On the other hand, ...
0
votes
0answers
44 views

Solve ODE with constraints [closed]

I'm trying to add constraints to my system of ODE, given by simple inequality: E1 > 7 and E2 > 7. ...
3
votes
1answer
117 views

Run mathematica scripts without initializing the kernel every time

There are two duplicate's of this question that seem to only work on linux/osx currently. So how can I viably run mathematica scripts without spawning a new session each time from command prompt? I ...
4
votes
1answer
110 views

Wrap custom control inside Manipulate or DynamicModule

[Apologies if this is a duplicate: I have looked at quite a few related questions but have not seen this issue dealt with] I have built a custom control, using the following method: ...
3
votes
3answers
109 views

Combination of interpolations doesn't work?

I have tables of function values f[i_] and g[i_] and I need to plot various combinations of the function and its derivatives ...

15 30 50 per page