0
votes
0answers
34 views

Attributes of statistics functions

Do statistics functions have some kind of attribute which ignore non-number (Indeterminate, ComplexInfinity, calculation "errors") elements of a list?
0
votes
0answers
32 views

Error when using NDSolve in SIR model

I have the following code for a SIR model: ...
1
vote
1answer
38 views

Button labels in different platforms

if someone has Mathematica on a mac or a Linux system, could you please evaluate this code: ...
1
vote
1answer
43 views

Table of contents in the same notebook

I created TOC programatically using instructions from http://reference.wolfram.com/language/AuthorTools/tutorial/MakeContents.html But it created second notebook TOC.nb. Is it possible to create ...
0
votes
1answer
46 views

NDSolve::bcsol?

I'm writing a code to numerically solve a differential equation. It has to repeat the process several times since there is a variable involved which is unknown, and the equation is fit to some ...
3
votes
0answers
91 views

Mapping Images in Parisian metro stations

One particular aspect of some Parisian metro stations is that stations' walls are curved, even in the sides where one would place advertising posters. Here is a picture of one such station: I was ...
0
votes
0answers
26 views

Shortcut to call recent inputs

I am familiar with CTRL+Shift+L to call the last input; however, in the case that I want to, for ease-of-comparison, want to print outputs of a command from further in the past and don't remember ...
0
votes
0answers
43 views

Integration is unevaluated analytically after a variable removed

I am using Mathematica 9.0 to do a symbolic integration as follows: ...
2
votes
1answer
167 views

Plotting a pencil of lines

I want to plot a pencil of lines between line1 and line2 using a formula (alfa*(ax+by+c)+beta*(a1x+b1y+c1)), but it doesn't show me anything. ...
0
votes
3answers
98 views

How to take dot product of every element in a list?

I have a list of coordinates (coord): ...
0
votes
1answer
51 views

Simulation of LogNormal process for an asset pricing

I'm new to Mathematica programming, so forgive my rather unsophisticated question: I need to simulate 5000 "walks" of a process value (of a stock) that starts from its current value, at t0, and ends ...
0
votes
1answer
41 views

Strange long time evaluation of Series for fractional function

my problem concerns the Series command applied to a product of a rational function times a square root. This can be exemplified in the following way ...
4
votes
0answers
34 views

Odd behavior of FindFile

Running FindFile gives some odd results on my machine: FindFile["HTTPClient`"] Result: ...
-1
votes
1answer
116 views
0
votes
0answers
33 views

Standalone cdf with precalculated result

I'm wishing you a nice day. I needed some interactive plots so I used Manipulate. My function is function of several parameters, let's call it $f \left( L, \Gamma, ...
2
votes
1answer
56 views

Part specification error with InterpolatingFunction when generating a Markov Modulated Poisson Process

I want to create a Markov Modulated Poisson Process, where the arrival rates created by the states of a ContinuousMarkovProcess are fed into an ...
2
votes
1answer
75 views

How do I get the adjacency Matrix from a random graph [closed]

I am using the command g = RandomGraph[{8, 13}]; GraphPlot[g, VertexLabeling -> True] to plot a random graph with n nodes and l edges. Once the program has ...
0
votes
1answer
85 views

Plot a function based on the value of another function

Could anyone guide me on how to plot the function VR with the values of ρ that I get from solving the following eq. ...
5
votes
3answers
105 views

Handy / flexible directory tree operations

Is there any shorter / more handy / more flexible way to get directory tree as a nested Rules/Associations list? I tried to incorporate ...
1
vote
1answer
38 views

Conditional Drop of a Key based on a test of the Value

I want to restructure a simple dataset. ...
0
votes
1answer
48 views

Symbolically solve system of equations involving matrix

I need to solve the following system of equations symbolically for a_i, b_i, and c_i: ...
0
votes
0answers
29 views

Some unexpected behaviour with StyleKeyMapping

Start with a fresh front end & kernel. The expected behaviour with an Input cell should be like this: Input 1and delete ...
0
votes
1answer
87 views

Extract coefficient matrix $A$ from expression $f(x)$

I have expression: $$f(x)=\sum_{i=0}^{K-1}\sum_{j=0}^{N-1}a_{i,j}e^{ix}x^j.$$ I want to extract coefficient matrix $A$ from expression $f(x)$ where $$A=\left( \begin{array}{ccccc} a_{0,0}& ...
10
votes
1answer
244 views

Is there a programmatic equivalent of Edit > Find…?

Most things that can be done via the front-end interface in Mathematica can also be accomplished by some function. Is that the case for find-and-replacing? That is, is there some code I could execute ...
2
votes
0answers
34 views

The idea behind Stiffness switching method with NDsolve [closed]

Does the Stiffness switching method with NDsolve switch just between multiple variants of 4th order Runge Kutta method or it uses also other methods?
-1
votes
0answers
39 views

Window adjustment to see data points [closed]

Here is my code ...
1
vote
2answers
110 views

Integral too oscillatory

Is there any way top make this integral less oscillatory? ...
2
votes
1answer
118 views

Binary file gymnastics

I have an unformatted binary file generated by fortran 77 and i want to import it in Mathematica. The file is formed by 5 data arrays with double precission float numbers. The problem is that seems ...
0
votes
2answers
48 views

How to keep elements only if their first key is part of another list? [duplicate]

I have two huge lists: list1 and list2. I would like to keep elements of list1, only if ...
0
votes
0answers
115 views

Internal coupling of Fortran and Mathematica codes

I am writing a code in Mathematica. There is another code in Fortran which needs boundary conditions (as inputs) to run. Fortran inputs are the outputs of the Mathematica code. I can do this manually ...
0
votes
1answer
44 views

Divergence in spherical coordinates as can be done in W|A

Is there any widget kind of thing that can work out calculations of vector analysis in not-Cartesiian coordinates, i.e spherical and cylindrical? Like the calculators found here: ...
0
votes
0answers
29 views

How to close the debugger window [duplicate]

So this thing just popped out of nowhere X.x ... I tried getting rid of it yesterday following suggestions in this post and I could've sworn it went away. But today I opened my laptop and the damn ...
3
votes
1answer
107 views

$\mathbf L\mathbf D\mathbf L^\top$ Cholesky decomposition

Mathematica can do a Cholesky decomposition $\mathbf A = \mathbf L\mathbf L^\top$, but how do I do a LDL decomposition $\mathbf A = \mathbf L\mathbf D\mathbf L^\top$, with $\mathbf L$ being a unit ...
2
votes
1answer
70 views

Computing large nested values

Is it possible to compute a value for n=10^9; Nest[# + Log[#] &, 2., n] for large n? $10^9$ seems to be the max for me - ...
0
votes
0answers
34 views

Calling a custom function in slave kernel process connected through mathlink

I am performing a small experiment to check if we can call/execute a custom package function in slave kernel launched from master using mathLink. I have created a dummy application called ...
2
votes
1answer
33 views

Modifying generalized input so there is no default input

I'm currently working on a demonstration and attempting to utilize the Interpretation command based on the example provided in the "Generalized Input" tutorial ...
0
votes
0answers
47 views

Iteration variable in Sum gets assigned the final iteration value

I've got a function which is defined iteratively via ...
2
votes
0answers
54 views

Factor out a constant from a matrix

I've got a matrix in which every entry is of the form x/4. I cant find out how to factor out the 1/4 so that the actual matrix is clearer. Thanks for your help!
0
votes
1answer
25 views

Dimension of plotting window vs PlotRange [duplicate]

For example, let's say I'm plotting this function, Plot[x, {x,-3,2}]. From the answer to this question the plot range is ...
0
votes
1answer
54 views

Problem with Erf near Infinity in NSolve

I have to solve a differential equation involving the error function Erf, but my code is not able to evaluate it in the range I need. I think I can formulate my ...
5
votes
1answer
268 views

Only `Break` from innermost loop

How could I Break from only the innermost loop in a Do[stuff,{i1,i1min,i1max},{i2,i2min,i2max},...] ? I get the desired ...
0
votes
0answers
14 views

The joint distribution of running maximum in two dimension [migrated]

How to calculate the probablity of $P(M_1(t)\leq x,M_2(t)\leq y)$, where $M_1(t)=a_1B_1(t)+b_1B_2(t)$ and $M_2(t)=a_2B_1(t)+b_2B_2(t)$ with $B_1(t)$ and $B_2(t)$ independent Brownian motions?
0
votes
0answers
41 views

NIntegrate evaluating to “non-numerical values” for some input values despite using ?NumericQ

I'm quite new to Mathematica and I'm finding myself wanting to compute an integral for which my code produces errors of the kind: "NIntegrate::inumr: "The integrand ... has evaluated to ...
1
vote
0answers
40 views

Create trading chart from Bloomberg historical data

I am using Mathematica 9 with the Finance Platform, and have pulled historical data for the Bloomberg Commodity Total Return Index using the following code. ...
1
vote
1answer
46 views

non linear Least Squares with model function given by ODE's

I have to fit to experimental data a model function given by a linear combination of functions y1(t) and y2(t) a1*y1(t) + a2*y2(t) with a1 and a2 ...
2
votes
2answers
76 views

Need help with code for number theory problem

I'm completely new to Mathematica (used previously only for very simple cases). I need to write a quite complex function. The function must do the following: Input consists of two numbers: a and b. ...
3
votes
0answers
40 views

Indeterminate expression 0(I*Infinity]) on indefinite integrals on first use only

I do not know if this is new or not, I googled before. Windows 7, 10.1 64 bit: Integrals generate this error message The strange thing also is that the message shows up the first time the command ...
1
vote
0answers
72 views

Can Mathematica Find Closed-Form Solution this Equation

I have tries to solve an equation by using Solve[] to find pl as a function of other variables. However, it generates an Error! Can anyone help? ...
1
vote
1answer
41 views

How to transform ListPlot ticks

I am sure that this is a standard question, but I have not been able to find it, either by a google search or by searching here on the Mathematica StackExchange. If I have a list plot defined by: ...
10
votes
2answers
480 views

Generating uniform random points over a binary image

So I recently read this excellent post about generating random points over arbitrary regions. I hope Wolfram eventually builds that functionality into Mathematica's Random functions. I want to do this ...

15 30 50 per page