2
votes
2answers
177 views

Algorithm for parts integration

Sorry if this is a duplicate, I've searched how to do this to no avail. What I'd like to do is a function that integrates by parts $n$ times, i.e $$ \int u(x) v(x) dx = u ...
0
votes
3answers
236 views

Plotting confidence intervals

The documentation for PDF has an example for plotting a confidence interval of a standard normal distribution: ...
1
vote
0answers
69 views

Constrain integration to be over real domain

I am trying to integrate the following: Integrate[(2*Cos[Sqrt[F]*z - G])/E^(D*(p + z)^2), {z, -(h/2), h/2}] I am getting solution in complex domain: ...
0
votes
0answers
51 views

mathematica function autocomplete issue [duplicate]

This is the default function structure prompt from Mathematica 9 This is my own function module ...
8
votes
2answers
264 views

Look up info associated with a given CAS chemical identifier from the NIST webbook & NCI CADD Chemical Identifier Resolver

I would like to retrieve information associated with a given CAS registry number (Chemical Abstracts Service nr) from the NIST webbook web site in Mathematica, using the provided API (e.g. for ...
4
votes
0answers
204 views

Whats the best practice of using subscripts in symbols?

I have stumbled over several issues about subscripted symbols recently. I would like that I can enter subscripted variables with my keyboard and that they are treated as symbols. I would also like to ...
1
vote
2answers
141 views

How to select three points $A$, $B$, $C$ from the following list so that the circle passing $A$, $B$, $C$ has centre $(1,2,3)$?

I have the sphere $$(x-1)^2 + (y-2)^2 + (z-3)^2 = 36.$$ From the sphere, I find some points with integral coordinates. And select three points from this list so that the triangles are not right ...
4
votes
2answers
155 views

Finding the maximal `t` at which `u[x,t] == 1`?

Given the smooth function u[x,t] on a domain, how do I find the maximal t at which ...
0
votes
1answer
159 views

Solve Probability of Distribution

Why does this work: Solve[Probability[x <= t, x \[Distributed] NormalDistribution[]] == 0.95 ,t] But this doesn't: ...
13
votes
2answers
181 views

Module trash collection behaviour

I have asked this question before on the Wolfram community forum (http://community.wolfram.com/groups/-/m/t/83845?p_p_auth=Gxoxe65B) but not with great success. Module creates temporary variables of ...
0
votes
1answer
46 views

Using Collect with equations

Is it possible to somehow use the expression that Mathematica has collected once the Collect command has been used? What I mean is, I have an expression like this ...
5
votes
4answers
218 views

How to split a list with respect to its nested sublists?

I have a problem with the following task: having some nested list list = {{k6},{k1,k3,k5},{k7}} I would like to replace all sublists by their permutations and ...
4
votes
4answers
447 views

Finding the area of a circle using monte carlo simulation [duplicate]

I wrote the following code to find the area of the circle $x^2+y^2=1$ using monte carlo simulation : ...
-2
votes
1answer
67 views

Manipulate and Plot using conditional, like if [closed]

I'd like to plot a number of functions that are linked by two parameters. However, the evaluation of these functions over the defined interval should be carried out only for certain values of these ...
0
votes
0answers
53 views

How can I plot the characteristic polynomial? [duplicate]

For example, I have: CharacteristicPolynomial[m, x] 0.5 + 0.1 x + x^2 But ...
5
votes
1answer
77 views

Does Share have any side effect?

According to the documentation, Share[expr] changes the way expr is stored internally, to try and minimize the amount of ...
3
votes
1answer
226 views

Integral of Lorentzian yields different results depending on when parameter assigments are made

I'm evaluating the integral of a Lorentzian, which I know equals one. First I define the function and evaluate the integral in two slightly different ways. Surprisingly, I do not get the right answer ...
2
votes
1answer
130 views

FindMaximum of loglikelihood in Gaussian Process

I am trying to implement a Gaussian Process and have problems to maximize the loglikelihood because the function consists of a determinant of a matrix that is dependent of 2 variables and the product ...
1
vote
0answers
66 views

Decapitating “explicit” and “implicit” heads

This is a follow up to this question. So far, I named "explicit" heads to those that appear explicitly in the expression. For example, f[x] has an explicit head. I ...
1
vote
1answer
138 views

Why does this integral have a complex component?

I wanted to find the probability of my normally-distributed random variable being at least 15, so I set up this integral: ...
1
vote
1answer
83 views

Not getting the range I want when plotting a function with Show [duplicate]

I have a problem with plotting a piecewise defined function with "Show". My code is ...
3
votes
1answer
126 views

Calculate the covariance of a large matrix

I have to compute the covariance of 50 very large integer matrices (2500x2000 elements). However, according to my estimation this will take around 10 days. Do you have any ideas how to speed things ...
6
votes
3answers
335 views

Difference between @ and @@

I am confused by the commands @ and @@. From the documentation, I learnt that @@ is the ...
1
vote
0answers
42 views

Quit Kernel Shortcut [duplicate]

How could I set a Keyboard shortcut for the Quit Kernel -> Local command? I find really disappointing to open the Evaluation menu any time!
0
votes
0answers
110 views

Linear Stability Analysis Routine. Normal Modes in NDSolve

I want to make the linear stability analyis of a nonlinear system of PDEs. So for example then I want to plot what happens to the amplitudes of the modes. To do that I need to solve my equations with ...
0
votes
1answer
201 views

Solving recurrence relationship using iteration

I am trying to create a Mathematica function that basically splits up a continuous function (in this case a physical potential) into steps (strips as it were) and returns the value of the function at ...
0
votes
1answer
170 views

FindMinimum produces error message

I'm trying to solve a logistic regression problem using Mathematica -- more to improve my Mathematica skills than to solve the problem as I have already solved it using Octave. The problem I am ...
6
votes
2answers
311 views

How to visualize the interior of a complicated 3d plot

I have an external data file (can be downloaded here: link 1 or link 2) which contains a dense grid of initial condition in the (x,y,z) space. I read it with Mathematica and plot these initial ...
1
vote
2answers
114 views

Add a letter to a variable name from a list

Basically I am searching for a way to add the letter u to an existing list of variables {a,b,c,d} to obtain the variable list ...
2
votes
1answer
164 views

Plotting a Gravity-Field [duplicate]

I try to plot a 2D gravity field or something similar in the form like $r/|r|^3$ with the standart builtin VectorPlot function: ...
4
votes
2answers
138 views

Dimension of an algebraic variety

I would like to compute, using Groebner bases, the dimension of the variety defined by a set of polynomials in several variables. In the wikipedia page the method is described, and an implementation ...
0
votes
0answers
103 views

Positioning Labeled points in ListPlot gives unexpected results and errors

Original question can be seen in the edit history.... UPDATE: a simpler example - same "problem" ...
0
votes
2answers
84 views

A function that (also) changes a replacement rule

I'd like to write a function operating on a list, returning a list, but also changing a replacement rule. Let's say I have a list of replacement rules: ...
3
votes
1answer
197 views

Von Mangoldt function

Can anybody evaluate the following sum for me $$ \sum\limits_{n=2}^\infty(-1)^n\left(\frac{\psi(n)}{n}-\frac{\Lambda(n)}{2n}\right) $$ where $\psi(n)$ is the Chebyshev function and $\Lambda(n)$ is ...
0
votes
1answer
99 views

Fourier-Analysis How to display every period correctly? [duplicate]

I want to express a function as a sum of fourier series. I tried the code below. It works. But only get one period (from 0 to 1). How to display every period correctly? ...
0
votes
1answer
101 views

Showing the value a plotted function achieves at the right-most point of the plot domain

I'm plotting results from NDSolve, and I'd like to clip them with their value at the point where the line is clipped. So where the curve ends at the edge of the plot, there would be a number ...
2
votes
1answer
150 views

FindRoot giving false roots with Bessel Functions

I have read in some places about the errors associated with FindRoot, but the closest thing I can find on this website seems to be due to the imaginary unit. I am dealing with what should be a ...
0
votes
1answer
143 views

Code to give center of circle given three points in 2D? [duplicate]

does anyone know how to make a function C(p1,p2,p3)=center of circle that goes through p1, p2, and p3? This is in 2D Sorry this is poorly written but I ...
0
votes
0answers
37 views

Why might ListStreamPlot fail to cover StreamPoints?

I have a pretty sparse array of vectors (in the colloquial sense that it covers the domain sparsely; it's not a SparseArray). ...
0
votes
0answers
46 views

Where do Messages generated by Menu commands go?

I've created a custom menu in the Mathematica title bar (by editing MenuSetup.tr) that executes code using KernelExecute. These ...
1
vote
1answer
80 views

Are there built-in functions for testing if a point lies within Graphics3D primitives?

I noticed in this question, Behavior of Graphics`Mesh`InPolygonQ with self-intersecting polygons, that Mathematica has some "psuedo-hidden" functionality for allowing one to quickly perform a winding ...
0
votes
2answers
86 views

Drawing a large set of Graphics3D cylinders provided a set of cylinder specifications in a list

I'd like to draw a large number of 3D cylinders using Graphics3D. My list specifying the cylinders has elements that look like the following: ...
0
votes
1answer
60 views

How can I influence the elements plotted in a BubbleChart depending on the tuple plotted?

In a BubbleChart, how can influence the elements plotted depending on a value in the tuple plotted? I want to create a BubbleChart from the following data: ...
0
votes
1answer
147 views

Run FileSystem Remotely and Front End/Kernel Locally

Is there a way to run both the front end(& kernel) locally while the having Mathematica's filesystem(inode's at minimum) reference another os's filesystem? For example currently I run ...
0
votes
1answer
53 views

Collecting variables from Subscript

I have followings set: t = Transpose[{x[#] & /@ Range[20], RandomInteger[15, 20]}]; Subscript[#[[1]], #[[2]]] & /@ t The code is just to build my set.So ...
0
votes
0answers
73 views

FeynArts and FormCalc

I installed the FeynArts and FormCalc packages and there were no any errors during installation. Now I try to calculate an ...
0
votes
1answer
85 views

Make the y-axis of a plot be in terms of an arbitrary parameter instead of a number?

Sorry if the title is wordy. Basically what I am asking would probably be easier if I just use an example. Say I wanted to plot f(x) = Asin(x) and have the graph come up with the sine function, and ...
1
vote
2answers
127 views

Opacity and overlapping points on ListPlot3D

I am plotting a dataset on ListPointPlot3D, and in order to give an idea of density of points I used opacity of 0.5. The problem is that that while the opacity of points behind one another is added, ...
8
votes
1answer
332 views

How to calculate the $H_2$ and $H_\infty$ norms of TransferFunctionModels or StateSpaceModels?

Lets assume we have a system model: ...
3
votes
2answers
384 views

Paths integrals in the complex plane

I can't find how to calculate path integrals of complex functions in the complex plane. For example: $$\oint_{\mid z \mid =2}\frac{1-e^z+z}{z^3 (z-1)^2}dz$$

15 30 50 per page