2
votes
1answer
107 views

Tab in Input cell

Why is it impossible to use tab to indent e.g. an inline comment i.e. (* ... *) in an Input cell? However, I have seen that it is possible, if I use Cell>ConvertTo>TextDisplay. The cell remains ...
3
votes
2answers
175 views

Format google places JSON output

I'm have some trouble formatting the Output of a 'Import' request. I get this as a return of a google places API request: ...
2
votes
1answer
82 views

Type declaration for list arguments

How can I make f[n_Integer]=2*n valid for a list of integers? For example: f[nlist_Integer] := 2*nlist[[1]] does not work ...
-1
votes
1answer
88 views

rolling a sum of 6 or less, on 3 dice [closed]

What is the probability of rolling a sum of 6 or less when rolling 3 dice(six sided) at once. I understand how to get the probability of rolling the sum of 6 but of 6 or less confuses me.
3
votes
1answer
58 views

Behavior of code changes after a palette is installed

Please consider the toy code here: ...
2
votes
2answers
169 views

How can I partially evaluate a function?

I have a multivariable function, from which I'd like to define a marginalization: f(a,b,c,d,...,z) ---> g(a,1,c,d,...,z) Generally, g will have fewer argument than f, possibly none (full evaluation)....
3
votes
2answers
124 views

How to show and hide text by a button

I'm trying to implement a button that can show and hide output text in a panel/tab, but I can't find a specific command to do that. I tried StringReplace, but it doesn't work for me.
0
votes
1answer
64 views

Custom headers - RunningText bug?

I'm trying to get MMA ready for writing papers and I'm almost there. At first it looked like there was plenty of space for customization with custom headers and footers, but then it turned out that I ...
3
votes
1answer
87 views

Duotone plots with cyan and black

What's the typical way to make Mathematica plots use purely cyan and black? Maybe there's a fairly standard method, since publishers often require this? It also seems like some plot types take ...
0
votes
1answer
124 views

How do I store Eigenvalues of a 14*14 matrix in a For loop into an array and then plot that array? [closed]

I have a matrix 14*14 that is dependent on parameter a. How can I plot eigenvalues of the matrix according to varous values of a?
2
votes
5answers
258 views

Add values from a list, at positions from a list, to a matrix

I'm investigating matrix assembly and one of the things I'm trying to do is add specific values to a larger matrix based on a list which is essentially defining connectivity of nodes. For example: ...
2
votes
0answers
117 views

Different solutions for seemingly same Integral

I want to evaluate the following integral: $$\int_{\left(1-\sqrt{a}\right)^{2}}^{\left(1+\sqrt{a}\right)^{2}} \frac{1}{2\pi x}\sqrt{\left(\left(1+\sqrt{a}\right)^{2}-x\right)\left(x-\left(1-\sqrt{a}\...
4
votes
1answer
130 views

Substituting ParametricNDSolve for NDSolve

This is my first post so let me know if I need to format things differently. I have been using NDSolve for most problems which optimize parameters for ODEs. I believe that ParametricNDSolve would be ...
23
votes
3answers
1k views

How to plot an emission spectrum?

If I have a list of data with various wavelengths in nanometers, how would I plot them on a graph so it looks like this: So far I have managed to plot a spectrum in ...
0
votes
0answers
63 views

Finding when a ODE returns to starting position

I am trying to discover when these ODE return to their start position. I am using coordinates that have a periodicity of {Pi/2, 2Pi, 2Pi}. To accomplish this I have had to use mod. The ODE are ...
2
votes
3answers
171 views

How should I debug a failed Manipulate of RegionPlot?

I am trying to build a package that will display a sector of an ellipse where the angle is taken from a focus of the ellipse rather than from the center. The code seems to work fine when called with ...
1
vote
1answer
75 views

How-to implement iteration over a result of an iteration in a functional way

I have a pure function f:= #1 * #2 * #3 &; Which I can invoke in a following way: f[#,2,3]& /@ {1,2,3} Which ...
0
votes
0answers
97 views

PolyLog does not simplify

How come mathematica can not simplify a simple expression involving the PolyLog function? An example is: You know that ...
2
votes
0answers
68 views

Export on local machine results of a parallel computation using remote kernels [duplicate]

I've got a long calculus to do with Mathematica. I've Parallelized the code using local kernels and remote kernels. I'm using a ParallelDo loop with an ...
0
votes
0answers
137 views

How to optimize a cost function which involve the solution of a ODE system using the NMinmize?

I have created a cost function, the value of which depends on the solution of a ODE (ordinary differential equation). The parameters of the ODE are not determined, and my goal is to determine them ...
0
votes
1answer
114 views

Draw a number of rectangles from list of coordinates [closed]

I'm new to Mathematica and this is also my first post here. Now for the question: I try to let Mathematica draw a number of rectangles from lists of coordinates. Unfortunately it only works when I ...
2
votes
1answer
150 views

Contours aren't aligned with frame ticks in ContourPlot

Because of the problem described in BarLegend can't make spaced contours when contours number>11, I decided to brew my homemade spaced-contours-barlegend. After some trials I get something like this(...
2
votes
1answer
92 views

Cloud deployment of a Manipulate expression

I would like to deploy the following Manipulate function, which works in a Notebook: ...
0
votes
0answers
100 views

Fun/Frustration With Coding Coding Theory

I have code following from this post: http://math.stackexchange.com/questions/1317722/fun-frustration-with-coding-coding-theory I think I am done with the code, but now I face a single problem. The ...
1
vote
0answers
34 views

Messages muted in standalone CDF files

In Mathematica, when you call a function, messages may be generated and shown in a pink Messages window: These messages are shown also for CDF files when you open them with Mathematica. I have ...
2
votes
1answer
179 views

How to determine whether an expression can act as a “good” function?

It's not easy to see whether an expression can act as a "good" function. A good function refers to an operater that transforms symbolic entities like 1+x^2 or ...
0
votes
1answer
46 views

Compute an indefinite sequence of And

I would like to compute a condition of normalization over a set of vectors which has the form $$ (x_1.x_1 =1 ) \land ...\land (x_n.x_n=1) $$ Where the $x_i$ are vectors, and $n$ is a variable fixed at ...
2
votes
1answer
104 views

Legend is too long

I've a problem with the legend of my graph. I've customized the graphs of my papers in an acceptable way for the a lot of journals. But this time I've two problem: Is there a simple way to write the ...
0
votes
0answers
33 views

why is NSolve giving {y,x} in place of {x,y}? [duplicate]

Why is NSolve giving an inverse set of solution? Is it a problem with my computer only? ...
0
votes
0answers
116 views

Integrating a highly oscillatory function

I am trying to numerically evaluate the integral $\int_{-\pi}^{\pi}\mathrm{d}x f(x) \mathrm{e}^{\mathrm{i} xn}$, where $n$ is a large number, say 50. The errors I get are NIntegrate::slwcon and ...
0
votes
1answer
75 views

Replacing every nth comma in string output with “\n” [closed]

Feels like a strange question to ask, but I basically have a string with sets within sets, and it seems like the simplest formatting solution to seeing the data without needing to import everything ...
1
vote
1answer
130 views

Factor terms by kets

I have an expression that contains several kets with numerical factors. I would like to retrieve the individual kets and store each individually as a list element. The expression is as follows: <...
0
votes
0answers
55 views
2
votes
1answer
169 views

How to Solve[] for rational constants?

I am trying to solve a system equations for rational, constant coefficients: ...
0
votes
0answers
84 views

Improve the speed of Gaussian quadrature integration

I am using Gaussian quadrature method to do numerical integration for a function Pderivative, which is related to the demagnetization tensor of elastic-electric-...
2
votes
0answers
46 views

Initialization with Wolfram Demonstrations

In reading a Wolfram Demonstration, I see: Here is what I would like information on: "Provide any code that must be evaluated before Manipulate. This will automatically be built into the ...
11
votes
2answers
2k views

Estimating the full width half maximum of a peak

I have a dataset of which I'm attempting to determine the full width at half maximum. A picture of the data is given below, and the dataset itself can be found here (pastebin). Now, this set has a ...
1
vote
1answer
110 views

Plotting data after fitting it to exponential function [closed]

I am trying to plot h vs t such that h fits a equation ...
0
votes
1answer
65 views

Mining for matching elements of sets with equal divisors

This problem is extrapolated from a problem that was solved on how to manipulate lists of set outputs as a union ( Equation Autogeneration ), where the concern now is how to mine for (or attain from ...
1
vote
1answer
173 views

Handling minus signs in mathematica

I am doing symbolic manipulations in Mathematica where expressions like $(-1)^{1/3}\left(-\log z \right)^{2/3}+\log z^{2/3}$ We see that clearly this expression is zero. But Mathematica does not ...
4
votes
1answer
242 views

Transforming a region obtained with RegionPlot

I have a region r0, obtained from an interpolated function, with the use of RegionPlot. Let's call this function under the ...
1
vote
1answer
86 views

Performing piecewise integration

The premise is that I am a new Mathematica user. I'm trying to evaluate the following ...
10
votes
2answers
420 views

Making an application based on user input

I purchased Mathematica a few days ago, and although I am a mathematician, my programming and Mathematica knowledge is close to zero. So please help and point me to some resources for the following ...
10
votes
2answers
333 views

Asymptotics of $\frac{\sum _{i=0}^{\lfloor n/2 \rfloor} {2(n-2i) \choose n-2i} {n \choose 2i} {4i \choose 2i}}{2^{3n - 1}}$

I am fairly sure that asymptotically $$\frac{\sum _{i=0}^{\lfloor n/2 \rfloor} {2(n-2i) \choose n-2i} {n \choose 2i} {4i \choose 2i}}{2^{3n - 1}} \sim \frac{2}{\pi n}.$$ I tried Limit[n*Sum[...
-1
votes
1answer
84 views

Find a minimum value which satisfies an equation

I have to find a minimum value of "a" which makes x=-a+b+c, y=-a+b+c^2 positive where a>1, 0 ...
2
votes
2answers
126 views

Dealing with Norm, Complex situation not desired

I am working on a notebook for my calculus students and am dealing frequently with the norm of vector valued functions. I always seem to run into this kind of situation. ...
1
vote
0answers
73 views

Arrange order of evaluations (please help these unit vectors) [closed]

I need help to control order of evaluations. Here I try to use Manipulate to control n unit vectors. Their positions are initially random but head left. The 2 operations are 1) translation: moving ...
1
vote
0answers
92 views

Software Testing (Dynamic, Manipulate, DynamicModule) Interfaces

The main Testing Framework (in both the frontend and Wolfram Workbench) supports unit testing for command-line invocations. Is there a natural way of co-opting this, or perhaps there already exist ...
0
votes
1answer
75 views

How to fix backup command?

The following old code, from "Dr Bob" and Selwyn Hollis with a minor modification by me, produces a palette that allows one to create successive backups to the input notebook. But the code breaks in ...

15 30 50 per page