2
votes
2answers
156 views

Plotting the solution of a cubic equation against a coefficient in the equation

I have to plot the solution of the following equation against the coefficient $L$. Since it's a cubic equation, I'd like to filter out the real solution first and plot that then. The equation is $L ...
0
votes
0answers
36 views

Shorter code for repetitive commands [duplicate]

How to give a shorter one or two line command without repetition (single variable change in a subroutine): ...
1
vote
2answers
78 views

Discrete Measure between Binary Vectors

I would like a discrete distance measure between two binary vectors (or strings). Like HammingDistance but I want the vectors to be considered closer if they have ...
0
votes
1answer
72 views

Adding circles on a function plot depending on the slope

I have the following function and I use manipulate to change the plot of the function and the integral respectively. In nonlinear dynamics one plots a little circle/point on the intersections of the ...
3
votes
1answer
49 views

Disassambling a boundary mesh into pieces and building it back again fails. Why?

I have just a misunderstanding of a sort. What I want is (1) to build a boundary mesh, (2) then to disassemble it into a list of the boundary points, and (3) to further assemble it back starting from ...
0
votes
1answer
62 views

Beginner: Iterative Sequence for Vector Function

I want to create an iterative sequence for two Vectorfunctions, where both are dependent on the same variables and i represents the vector. For simplicity let's ...
8
votes
1answer
301 views

Possible Method for MatrixExp

Well, probably a hard question, but I think it's better to cry out loud :). I noticed that MatrixExp owns Method option when ...
0
votes
0answers
42 views

Mathematca terminates internet connection when window is minimized

I wrote a short program which is collecting (and then plotting) data from internet. When I literally don't see, Mathematica stops collecting data and when I maximize window again, it continues. Can ...
28
votes
1answer
584 views

What are SparseArray Properties? How and when should they be used?

A strange undocumented form of SparseArray is increasingly used in answers on this site: ...
0
votes
3answers
66 views

Apply every function from a list to an expression

I would like to apply a list of functions to an expression, like ApplyList[{Re, Im}, Exp[I x]] = {Cos[x], Sin[x]} How do I do that?
3
votes
0answers
123 views

Discrepancy in the series expansion of $\log(z/(z-1))$ in Mathematica 5

When I calculate the series expansion of $\log\frac{z}{z-1}$ around $0$ in Mathematica 5.2, I obtain: ...
1
vote
1answer
88 views

Is it possible to solve a certain set of nonlinear equations in Mathematica?

I read this question in a Chinese forum last year. At the end of the discussion, they provide a solution of the equations from a C++ program. Unfortunately, they did not get the right answer. ...
1
vote
1answer
224 views

ParametricNDSolve without initial condition?

For example, ParametricNDSolve[{y'[t] == a y[t]}, y, t, {a}] returns a ParametricFunction which is actually inexplicable: ...
3
votes
2answers
466 views

How to make Mathematica show matrices and vectors nicely

It shows me like {{0}, {1}, {0}, {-1}} . Is it possible to make it look like a vector, always?
0
votes
1answer
161 views

Animating a Sphere to move along a 3D curve [closed]

How do I get a sphere to move along a 3D function in Mathematica?
3
votes
1answer
652 views

Add text or descriptions to Plot

I would like to add some descriptions or qualifications to Plot as follows: Those in black are what I would like to add to my Plot (this graph is manually created ...
2
votes
0answers
365 views

Choosing FEM element type and mesh refinement

I have only recently been introduced to Mathematica's(v10.0) FEM capabilities. I understand that for solving PDEs on non-uniform shapes via NDSolve, Mathematica ...
4
votes
2answers
69 views

How to print unevaluated arguments in the form they were originally typed in?

I'm looking for a way to print a function's arguments, not only unevaluated, but also in the way they were originally typed in. By way of experimentation, I tried stuff like this: ...
2
votes
0answers
103 views

AVL binary search tree implementation

Is there any text-book implementation of self-balancing binary search trees such as AVL or red-black in Mathematica?
1
vote
0answers
64 views

How can I have this $\LaTeX$ expression in my Mathematica code? [closed]

I'm trying to make this happen in Mathematica: $\mathscr{G}_{\text{\textbullet}}$ $\mathscr{G}_{\text{\textbullet}}$ I tried ...
5
votes
1answer
261 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
93 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
119 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
721 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
246 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
72 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
129 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
138 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
99 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 ...
23
votes
0answers
319 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
286 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
289 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
440 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.

15 30 50 per page