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
63 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
36 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) ...
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
104 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: ...
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 ...
-2
votes
0answers
44 views

Getting error message from Minimize [closed]

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 ...
0
votes
1answer
34 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, ...
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. ...
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
222 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 ...
0
votes
1answer
48 views

Intercept in the ARProcess

In the ARProcess help file I don't understand whether an intercept is included or not. How would I add one? I am using version 9 of Mathematica.
1
vote
1answer
36 views

Frame plot axis labels: superscripts and subscripts in italic and non-italic

I want to make nice plot labels with framed plot. I need to have labels with both subscripts and superscripts, both of which need to contain italic and non-italic characters. For example $a_{b, ...
3
votes
1answer
57 views

Looking for a convenient way to replace a large data sample with an analytic approximation

Suppose that data is a large data sample, and that Histogram[data] produces a very smooth-looking distribution. Since ...
0
votes
0answers
37 views

NMinimize to Optimize Parameters for Quarter Car Model

I am very new to Mathematica and am trying to simulate a mountain bike suspension by using a quarter-car model and I have input a displacement vs time road profile for two bumps for the excitation. ...
8
votes
1answer
120 views

What kind of pattern should I use with StringCases?

Consider the string str = "ABCaDEFbcABCdefDEF" I'd like to take out all substrings surrounded by the substrings "ABC" and ...
0
votes
0answers
61 views

What code can I use to calculate, integrate, and visualize the electric field for an arbitrary shape? [duplicate]

I'm looking for a Mathematica program/function with which I'd be able to specify two objects in 3D space, each at a different surface potential, and then the program would calculate (using Finite ...
5
votes
1answer
61 views

What's up with PauliMatrix with a string argument?

Looking at the definition of PauliMatrix (not the documentation), I realized that it is defined for arguments 0, ...
4
votes
2answers
131 views

Select non-zero elements [duplicate]

I have a function that generates a list of numbers and variables . e.g. F[w]= {wx, wy, 5, 0} I want to select all non-zero elements i.e. ...
0
votes
1answer
66 views

Add color bar in SphericalPlot3d in version 8

I want to add a color bar in my spherical plot. I have tried the BarLegend command in version 8 but it seems not working. Could anyone help me out a bit? I wrote ...
3
votes
1answer
73 views

Table with programmatically specified number of iterators in Compile

Compare two ways of computing a table of values of a multivariable Gaussian: ...
1
vote
0answers
29 views

*Form is not working in script

I want to generate code with a script. But functions as CForm, FortranForm and TeXForm does ...
4
votes
1answer
35 views

How to test if a GeoPosition is inside a geographic Polygon?

I have tried the following: ...
1
vote
0answers
19 views

Mathematica closes after initerlising internal preferences [closed]

I have just installed Mathematica, and when I try to open it it closes after internalising internal preferences. I use mathematica 10.4 on Ubuntu 14.04
2
votes
1answer
79 views

How can I code markers for different groups' values over a period of time?

I have a 3-column dataset where I show the probabilities of winning of teams in different years (team name, year, prob.) I need to plot it with markers so the probabilities of each team can be ...
0
votes
1answer
59 views

Double summation nminimize

Please help me... ...
1
vote
1answer
52 views

Partial Derivative in FeynCalc

I try to compute some loop diagram in Mathematica with FeynCalc package. In the nominator, I have a huge trace and it shows the right solution but in the next step ...
1
vote
2answers
40 views

FourierSeries command , for arbitrary period T?

ExptoTrig[FourierSeries[Piecewise[{{-Pi,-2Pi<x<=0},{Pi,0<x<=2Pi}}],x,3]] You can see, the function goes from $(-2\pi,2\pi]$ But Wolfram Alpha gives a ...
2
votes
3answers
212 views

Enneper's minimal surface

How to plot the Enneper's minimal surface like this I tried: ...
12
votes
2answers
168 views

Second argument of BeginPackage with nested package loading

I naively thought that the second argument of BeginPackage can simply be used to ensure the loading and availability in the ...
1
vote
1answer
65 views

NDSolve a system of PDE's when one variable does not have an explicit time derivative

Say I want to solve the following set of PDE's (my actual equations are way more complicated, this is just a simplified example to show the structure): $$\begin{align} \partial_t ...
0
votes
1answer
44 views

Module, block or whatever to scope variables without explicitly listing them? [duplicate]

In larger notebooks I have often trouble with conflicting variable names. To combat this there are Modules and blocks. But with those you always have to list the variables you are using. I don't ...
2
votes
1answer
24 views

Why InitializationCellWarning is False and still I get warnings?

I wrote a notebook containing initialization cells: (1) notebook's options related to initialization are set to: ...
16
votes
2answers
765 views

Plot 3D model of DNA in Mathematica

My friend asked me if we can plot a 3D model of DNA (deoxyribonucleic acid) in Mathematica. However, I am not really familiar with this and I don't know if Mathematica can do this. Could you answer ...
5
votes
2answers
388 views

How to color the triangles of a mesh?

Given a mesh, I want to assign each triangle a color. I tried to do it in this way: ...
0
votes
0answers
36 views

Replace higher order derivatives given lower order derivative

I have an unknown function f[x1,x2] whose partial with respect to x1 is identically zero. I would like to make sure that ...
1
vote
1answer
83 views

How to make a 3D surface plot from DataSet

I am trying to plot some Aerodynamic data. I import my data like this: data = SemanticImport["roll-damp-due-to-roll-rate-semantic.csv"] The CSV file can be found here: data I want to make a 3D ...
1
vote
1answer
86 views

Numerical integration over a circle contour

I want to numerically integrate the following function $$f(p) = \frac{1}{2\pi i}\int_{\Gamma}\frac{1}{p}\exp\left(\frac{a^{2}}{2}\frac{1}{p}+\frac{b^{2}}{2}p\right)dp$$ where the contour $\Gamma$ ...
-1
votes
0answers
39 views

Multiline Powershell Command

What is the fastest way to run multiline commands for powershell? The following takes 1.43 seconds approximately. ...
2
votes
1answer
85 views

replacement rule doesn't work

I define a function which counts the number of negative elements in a list as follows: g[x1_, x2_] := Count[{x1, x2}, _?Negative] Plugging in values shows that ...
0
votes
0answers
29 views

Making a grid of short elements? [closed]

I have a list of very large elements (A below). I would like to make a grid of these results, showing only the Short version. However, when I apply Grid[] on the shortened elements, it does not seem ...
2
votes
0answers
44 views

Solution of the Lagrange's minimal surface equation [closed]

Can I use Mathematica to solve the Lagrange's partial differential equation? $$(1+f_y^2)f_{xx}-2f_xf_yf_{xy}+(1+f_x^2)f_{yy}=0$$ I tried: ...

15 30 50 per page