3
votes
1answer
120 views

Plotting a table with many y values

I'm trying to plot a bifurcation map for a Lorenz System. I have a function (called estables in the code that follows) which, for a certain value r, returns the ...
5
votes
1answer
139 views

Transcritical Bifurcation phase portraits

An example equation for a Transcritical Bifurcations is given by: $$\dfrac{dx}{dt} = f(x, r) = r x - x^2$$ In Mathematica, we can define the function as: ...
5
votes
1answer
54 views

Prevent autocompletion for symbols in contexts other than “`Private`”

I've been working on a Mathematica package (call it QuantumDot) that has become huge. Right now, all the back-end helper functions are in context ...
4
votes
2answers
253 views

Calculating overlapped area between random circles

Suppose I am plotting random circles like in the following example: m=125; ...
0
votes
0answers
33 views

FindSpanningTree command doesn't work

I want to solve a network analysis problem by FindSpanningTree command. But it yields nothing: FindSpanningTree[G1] ...
1
vote
1answer
32 views

How do you make y-axis labels and Ticks bigger in a BoxWhiskerChart

I'm trying to do a BoxWhiskerChart in Mathematica with a very specific Style. Specifically, I'm trying to get the y-axis labels (the numbers) to be bigger (point ...
1
vote
2answers
65 views

Plotting the InterpolatingFunction from NDSolve [closed]

I want to plot the solution of a differential equation which i solve it numerically with NDSolve. Here's the code: ...
4
votes
1answer
85 views

How can I define MakeBoxes for Inactive forms of user-defined heads?

Here I define a MakeBoxes for Times: ...
2
votes
1answer
54 views

How to plot a function whose constant parameters have associated uncertainties in Mathematica 8.0?

Let's assume I want to plot the function $f(x)=a + bx+ cx^{2}$, where experimentally known values of parameters $a, b$ and, $c$ are as follows: $a=1.01 \pm 0.18$ $b=0.92 \pm 0.11$ $c=2.2 \pm 0.2$ ...
5
votes
0answers
54 views

Inconsistent performance of code

I'm trying to do some optimizations to my code to make it run faster, but it seems that there are inconsistencies in the performance of the code. Namely, the codes have different performance in ...
3
votes
3answers
195 views

How to get exact coordinate of a point from a plot?

I am using BodePlot[] to plot the magnitude and phase of a function as below. BodePlot[1000/((1 + s/10^3)*(1 + s/10^6))] ...
5
votes
2answers
250 views

Strange phenomenon occurring in analytic integration result involving Bessel functions

For the following integral, Integrate[x^2 Exp[-a x^2 - b x^4], {x, -∞, ∞}, Assumptions -> {a > 0, b > 0}] Mathematica gives the following analytic ...
1
vote
0answers
43 views

Using MemberQ or Contains* in a query fails

Using MemberQ or Contains* in a query fails: ...
5
votes
0answers
62 views

Cannot reproduce VectorDensityPlot solution from question 37459

Bug introduced in 10.0 or earlier and persisting through 10.4.1 or later (Reported to Wolfram Technical Support on 24 May 16) Using Mathematica 10.4.1 for Microsoft Windows (64-bit) (April 11, ...
1
vote
1answer
52 views

How can use Table for two functions obtained from NDSolve? [closed]

I have obtained a numerical solution using NDSolve for two functions a(x) and b(x). how do I use Table to make a list of a(x) vs b(x) values. is it simply Table[{a(x),b(x)},{x,0,100}] or should I use ...
0
votes
0answers
29 views

How to use ListLinePlot to draw graph of a function vs another function obtained from NDSolve? [on hold]

Using NDSolve I have found solution of two function $\phi(z)$ and $f(z)$. then I use ListLinePlot to find a plot of ...
3
votes
1answer
65 views

How do I label points when using Graphics? [closed]

Let say I want to draw a point and label it. The command I use to draw points is Graphics[{Point[{0,0}], Point[{1,1}]}] This draws the points $(0,0)$ and ...
6
votes
1answer
79 views

Visualize Pascal's triangle with the product of the terms in the $n$th row

How to make the following graphics by using Mathematica? What I tried: I used J.M's answer for the Pascal triangle ...
3
votes
3answers
167 views

Looking for a better way to delete an arbitrary list of rows from a matrix

Delete is not suitable to delete the rows of a matrix, as illustrated below: ...
2
votes
2answers
46 views

Difficulty finding roots of an interpolation function from NDSolve

I have been trying to find the point at which one of the solutions of a system of two ODEs crosses zero. I used the method suggested in this answer to a previous question, which seemed to be the most ...
2
votes
0answers
15 views

Is it possible to highlight nonconsecutive words in any given text cell?

This is a bit of a miscellaneous question, so I'm not entirely sure how to tag it properly. Windows users can use the CTRL button (and Mac users, Command if I'm not mistaken) as a sort of hotkey to ...
1
vote
3answers
122 views

Basic Programming in Mathematica - How to build a loop [closed]

I want to build a loop with the following rules: I have a list a={5,7,8,9,5,6,8,6,7,8}. I want to print the mean of the first two ...
0
votes
0answers
31 views

Set more constrains on a function in Do loop with If condition [closed]

This post is an extension of the post: Do loop with If condition The answer of @JasonB worked fine with me. that to use Reap ...
4
votes
0answers
31 views

Collapse cell groups when you close parent group?

I have a particularly long notebook. Here's what I'd like to do: to say in my stylesheet that upon closing certain types of cell-groups that all the cell-groups inside should close as well. That way ...
3
votes
1answer
49 views

Image background for cell?

I'd like to make code Cells have a specific background image. I know you can do this for Notebooks, but what about Cells? This simple test fails: ...
0
votes
0answers
29 views

Conditioned Minimum [closed]

How do I say to NMinimize that I want to know the point $(x_{0},y_{0},z_{0})$ where the minimum of a function f[x,y,x] is ...
1
vote
1answer
62 views

How to solve different PDE defined in different regions coupled through boundary condition

I would like to solve two different partial differential equations each one defined in a different region and in different coordinates. However the equations are coupled through a boundary condition ...
2
votes
0answers
35 views

Series expansion in Infinity issue with Zeta(s) function

With this code: Series[Zeta[s], {s, Infinity, #}] & /@ Range[10] // MatrixForm Series expansion for the Zeta(s) ...
-3
votes
0answers
40 views

help with basic matrix multiplication! [closed]

This is my code. It is simple enough. ...
2
votes
1answer
66 views

Will the solution NDSolveValue finds outside of the region I give it give me bogus results?

I'm using NDSolveValue to solve Laplace's equation for a relatively simple system. I have two rectangles, separated by a small gap, which I define using RegionDifference: ...
3
votes
2answers
102 views

Replace non-zero elements with symbol

I have a very large matrix (tensor) in Mathematica with some zero and non-zero elements. I am interested in replacing the non-zero elements with some symbol or a 1 so that it is easier to view the ...
2
votes
3answers
86 views

Manipulate a Show [duplicate]

It takes me a long time to construct the following picture: ...
0
votes
0answers
24 views

Compiled function giving error CompiledFunction::cfct [closed]

I'm trying to compile this function LocalPotential below: ...
6
votes
2answers
50 views

Different options for ResamplingMethod specification

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 ...
-2
votes
0answers
44 views

Getting error message from Minimize [on hold]

I have acountered a problem I can't fix on my own, even though the problem seems quite simple. Problem The objective function (<<1>>) should be scalar-valued >> It occurs in the very end ...
3
votes
0answers
71 views

Solving a matrix differential equation using RBFs

Michael Kelly in the paper http://www.mathematica-journal.com/2010/02/evaluation-of-financial-options-using-radial-basis-functions-in-mathematica/, discussed how to apply Mathematica for solving the ...
0
votes
1answer
32 views

Single rows of arrows in VectorPlot [duplicate]

I have two vector fields which have only one component, e.g. the y-component of the graph below. How do I obtain a plot similar to the one uploaded here, by using ...
0
votes
0answers
19 views

The command SocialMediaData still returns a blank plot [duplicate]

I have Mathematica 10.3.1 in Mac OS, and the command SocialMetaData is not working, returning a blank plot. I have seen a similar question from Nov 28 '15, but it is still not solved. ...
1
vote
0answers
41 views

Out[ ] cells suddenly begin with newline

This is a "feature" of Mathematica that persists through several versions. What happens: Mathematica experiences some internal hiccup and from then on starts every Out[ ] cell with a newline, which is ...
0
votes
3answers
125 views

Do loop with If condition

I have the following formulas: 1- A cross section: sigma[beta_,alpha_,Y4_] := c^2/(256*Pi) * (1/2) ( Ytt[beta,alpha,Y4]/ m ) * Abs[A]^2 Where c is a strong ...
1
vote
1answer
88 views
2
votes
1answer
121 views

Fractal plotting for the Collatz fractal

I have the following equation: f[z_] := 1/4 (2 + 7 z - (2 + 5 z) Cos[Pi*z]) I want to map this on the imaginary plane such that if it converges under iterations ...
3
votes
0answers
94 views

Tweet high quality images

I'm trying to export images to a twitter account with mathematica and the quality of the images is rather disappointing. Here are the others in case you want to see it in the wild: here This is ...
0
votes
0answers
15 views

Finding Y for a Data Set with Std Deviation and Z Score [migrated]

While only 15% of babies have learned to walk by the age of 8 months, 90% are walking by 13 months of age. If the age at which babies develop the ability to walk can be described by a normal model, ...
0
votes
0answers
27 views

Compute score for a set of data [closed]

So let's explain my problem. I have a set of items which have a score from 0 to 100. This set is dynamic which means that several values are expected to be added from moment to moment. In each item is ...
2
votes
2answers
42 views

NIntegrate::inumri error with continuous function

I'm trying to calculate the finite part of a divergent integral numerically, but as I bring the regulator down to $0$, Mathematica starts throwing an error. ...
0
votes
0answers
22 views

Factorising polynomials in Z[i] over Z[i] [closed]

I know that you can use the 'factor' command to factorise polynomials with real coefficients over the Gaussian Integers doing something like this: ...
0
votes
0answers
30 views

Find the variables in a set of linear equations [closed]

Suppose I have a set of linear polynomials with integer coefficients, how could I extract the list of variables? Say given the following ...
2
votes
2answers
86 views

CoefficientList for exponentials terms

I have a long expression with exponentials of variable t1. I need to create a list of the coefficients for each exponential. The problem seems to be that several ...
12
votes
3answers
220 views

Exclude overlapping lists while keeping disjoint- and sub-lists?

Consider a function f[l1_List,l2_List] which is given lists of integers. Whenever two of the lists contain completely disjoint sets of integers OR one of the lists ...

15 30 50 per page