5
votes
1answer
257 views

Intersection of a ListPlot3D surface with a plane

I'm trying to use Mathematica to analyze some physics data from an experiment, more precisely, I have to fit a 2D data series with a one dimension function. At the moment I'm able to load and plot ...
1
vote
1answer
75 views

How to get Mathematica to abort the current evaluation if an assertion fails?

I can turn on assertions, but they don't terminate the current evaluation. For example: ...
1
vote
0answers
65 views

How can I perfect this game for Wolfram Demonstration publication? [closed]

When the messages change the window inactivates, and when I try to host an interactive CDF on my site it turns red and says something about numbers having to be scaled or offset. Any help? I'm ...
0
votes
1answer
45 views

Error message with Animate?

I have a error message, but after I execute ndsolve cell is all right.What is the Reason for this error? ...
1
vote
0answers
55 views

Using Quantity[] units causes errors in my calculation

I have an interpolation function in which I wish to use actual units. If I perform the calculation normally, it works fine and returns a proper FittedModel. To illustrate my problem, consider the ...
0
votes
1answer
68 views

Generate all 3-permutations of the set {x, y, z, w, u, t} excluding the ones where 'u' is after 't' [closed]

I have to generate all 3-permutations of a the set $(x, y, z, w, u, t)$ without the ones where the element $u$ is after element $t$. So far I have generated all the the 3-permutations like such ...
0
votes
2answers
92 views

how to read a list from a file which has mixed types of data?

I need to read in a file with the first several lines reading as ...
0
votes
0answers
118 views

Loop in a loop, or how to evaluate complex expressions

I need to find $h_{0j}$ for every $1\leq j\leq300$, where \begin{multline*} h_{0j} = \sum_{q=1}^{Q}g_qe^{-\lambda_q j\Delta}\frac{e^{\lambda_q\Delta}-1}{\lambda_q} + \sum_{p=1}^{P}\frac{e^{-\alpha_p ...
2
votes
1answer
711 views

How can I evaluate surface integral in Mathematica?

$$\iint_{S^+}x^3dydz $$where $S$ bottom part of $$ \frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1$$ $S^+$ - outer side of $S$ $$\iint_{S^+}P(x,y,z)dydz = \iint_{S}P\cos\alpha dS,\ \; normal : ...
1
vote
1answer
102 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
3
votes
1answer
245 views

Adding noise to nonlinear ODE system

I have a problem with adding a noise to 3d order ODE nonlinear system. I solved the system numericaly and got the periodic solution and now I need to add random pertubations. Due to the lack of ...
0
votes
0answers
52 views

Differential equations: Solving a PDE

I need to find an analytic solution to this PDE and for some reason nothing works. This is the equation: ...
0
votes
0answers
71 views

Create predictors and response pairs

I am new to Mathematica currently using version 10.1.0. After importing a .csv dataset of 352 rows, I select two variables (say, x1, ...
5
votes
1answer
120 views

How to create fast functions based on units?

Using units is a good means for rapidly developing code, since it provides some error control. Hovewer, using Mathamatica functions containing units appears to be copmutationally inefficient. ...
2
votes
1answer
118 views

problem with the 'Filling' command

Hello colleagues!! I have an issue with the Filling parameter in a ListPlot. I constructed an equilateral triangle of length 1, where I plot some points in barycentric coordinates, describing a curve ...
0
votes
1answer
76 views

SplitBy with exponents

I have ...
1
vote
1answer
128 views

Unable to render 3D plots in Mathematica on Raspberry Pi [closed]

I just bought a Raspberry Pi 2 and I've just started to use Wolfram Mathematica. I tried to execute one of the examples given in the Wolfram documentations page. The problem that I am facing is that ...
0
votes
1answer
46 views

Parse notation recursively

For a special notation I would like to get the help of Mathematica to expand complex expressions through a set of Notation rules. However since this tasks involves applying the notation recursively ...
3
votes
1answer
86 views

How to use the edge routing of LayeredDigraphEmbedding when specifying explicit vertex coordinates?

The "LayeredDigraphEmbedding" GraphLayout uses an edge routing algorithm which produces nice and readable diagrams and curved ...
1
vote
0answers
137 views

Solving non-linear coupled ODE with constraint using NDSolve

I am trying to use NDSolve in Mathematica to solve the following coupled ODEs from a paper I am trying to understand. I have the following 5 differential equations: ...
0
votes
1answer
98 views

Simplify an XMLObject by keeping only specific elements

I would like to extract from an XMLObject only the XMLElements with a specific tag. Inspired from the Mathematica help (section transforming XML, introduction, the example with the colours), I have ...
22
votes
0answers
317 views

Is FullGraphics an abandoned function? Is there an alternative?

FullGraphics hasn't worked entirely for a long time and the situation appears to be getting worse instead of better. In Mathematica 10.0 and 10.1 a simple usage ...
5
votes
1answer
139 views
0
votes
2answers
119 views

Martingale pricing_Simulation random walk stock price

I need to make an example of a walk of a stock price.I have this data: and i need to resolve this equation: where "W" is a Wiener process [0,Δt]. I need to make a path of 157 steps(date of ...
2
votes
0answers
23 views

How to make lines not wrapping in text-mode Mathematica? [duplicate]

When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
13
votes
2answers
285 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
2
votes
2answers
107 views

Incompatibility of CountryData[] between v. 9.0 and 10.1

There seems to be an incompatibility between the representation in CountryData[] for versions 9.0 and 10.1. The documentation on ...
7
votes
1answer
288 views

Using ImageIdentify

How long does it take ImageIdentify to give an answer for one image? Also, I suppose using it requires an Internet connection with Wolfram servers. Is that correct?
5
votes
4answers
1k views

How to plot frequency polygon?

I have data sample. Built and plotted histogram based on the sample. How can I plot frequency polygon now? That's example of the desired result. Here is code: ...
4
votes
2answers
438 views

How can I plot histogram with the same number of values in every bin?

For example I have 100 values sample. I'd like to build histogram in which every bin contains, for example, 10 values. How can i do that? Thanks.
5
votes
0answers
76 views

Operator which can be interpreted as binary and unary

I'm a bit lost with the way how e.g. the + operator is implemented in Mathematica as binary (infix) and unary (prefix) operator depending on the context, since I would like to define a similiar ...
0
votes
2answers
329 views

NDSolve issue with initial and boundary conditions

While solving the heat equation in one spatial variable $u_t = u_{xx} $ (x goes from 0 to L) with the initial temperature distribution $T_0 \frac{x(L-x)}{L^2}$ , and with neumann boundary conditions ...
14
votes
6answers
646 views

How to find all the positions of max value of a list efficiently?

For Example, list=RandomInteger[{1,100},2000]. Yes,I know Position[list,Max[list]] can do. But it's based on pattern ...
2
votes
1answer
157 views

Applying a function to a column of a dataset [closed]

Functions can easily be applied to columns of datasets, as in the documentation it is shown. Now I want to apply a function with parameters to a column, but I get a list rules. E.g. ...
0
votes
0answers
37 views

Series Expansion of Differential Operators [duplicate]

We know about the possibility of series expansion of a function in Mathematica. Same as below, where a function f[a x] is expanded around zero up to 5th order. ...
1
vote
1answer
313 views

Stream plotting in polar coordinates [duplicate]

I got to a scalar field that really looks just fine to me in polar coordinates. "looks just fine" = all the physical limits make sense. The scalar field in polar coordinates r and θ is: ...
10
votes
3answers
241 views

The envelope of a set of translated and rotated ellipses

I achieve a dynamic graphics by using Manipulate as follows: ...
6
votes
4answers
237 views

Constructing a grid from a matrix

I would like to construct a grid from a matrix. For example, one possible matrix is $M1$. $$M1= \begin{pmatrix} c2 & a1 & a1 & a1 & a1 & a1\\ a2 & b1 & c2 & a1 & ...
2
votes
1answer
88 views

Plot directional field with a initial vlue

I do not have enough reputation to comment on other questions, hence I have to ask my own one I want to solve the following nonlinear first order ODE, $$(1 + x) (0.5 y[x]^{-0.5} (x - y[x])^{0.5} - ...
6
votes
4answers
221 views

How to multiply lists of data?

Let two lists of data, say lst1={{x1,y1},{x2,y2},...,{xn,yn}} lst2={{x1,z1},{x2,z2},...,{xn,zn}} I need to construct a third list ...
7
votes
0answers
150 views

Incorporating photos into a Mathematica-made web page

I use Mathematica to make my web page. I make various .nb files, usually with photos, and then use an Export command to convert the .nb file to an .html file with ...
-2
votes
1answer
58 views

FindShortestPath does not work

The FindShortestPath doesn't work in this graph, can someone tel me what's wrong? ...
2
votes
4answers
312 views

Print all numbers from a sequence which don't contain the digit 7

so i have this: Cases[RecurrenceTable[{a[n + 1] == 7 a[n] + n, a[1] == 1}, a, {n, 7}], Except[7]] But i noticed that it will only exclude numbers that are 7, and ...
1
vote
2answers
97 views

Calculating Variance (without Variance expression)

I am learning Mathematica on the fly, one of my tasks is to find the variance of white noise. I followed the tutorial for finding white noise by using the code: ...
1
vote
1answer
130 views
0
votes
1answer
45 views

Behavior of custom file chooser code changes when placed inside DynamicModule

My primary objective is to build a file chooser that aides a user in selecting files into one of two categories. Files can be individually selected, or based on the clicking of a specific checkbox, ...
2
votes
2answers
154 views

A peculiar behavior of NSolve[]

NSolve[Power[x + 1, x + 1] - Power[x, x + 2] == 0, x, Reals] returns: {{x -> 3.14104}} Great. However, ...
3
votes
1answer
333 views

Compute a hessian matrix on a image?

Is it possible for Mathmatica to load a gray image and apply a hessian matrix on it?... It used image processing to find good features.
3
votes
0answers
87 views

Orthogonality relations of Hermite polynomials

The Hermite polynomials are orthogonal. $$ \int_{-\infty}^\infty H_m(x) H_n(x) e^{-x^2}\, \mathrm{d}x = \sqrt{ \pi} 2^n n! \delta_{nm} $$ Does Mathematica not use this relationship? Because running ...
4
votes
2answers
266 views

Taylor series representation as an infinite sum

I want to see the Taylor series representation for arbitrary functions, e.g. $\sin$. With the Series[] command, I can only see the first $n$ terms. Is there the ...

15 30 50 per page