# All Questions

82 views

### Generalizing Characters to n-character substrings [duplicate]

I'm doing some frequency analysis on an encrypted plaintext. Tally[] and Characters[] make the basic task quite easy. To count the number of times each character appears (sorted alphabetically; ...
167 views

### Poincaré section for 3BP

I try to plot the Poincaré section for the 3BP i use the following code that works very well: ...
49 views

### Autocomplete from inside Module and SetDelayed

Autocomplete in Mathematica 9 offers suggestions from inside SetDelayed and Module. For example, after running: ...
440 views

### Fit data with linear combinations of Cos and Sin

Recall that if $f$ is a piecewise continuous function on the interval $[-\pi, \pi]$, then the Fourier series of $f$ is $$f(x) = \sum_{n=0}^{\infty} (a_n \cos(nx) + b_n \sin(nx)).$$ See for example, ...
249 views

### Notation package: parenthesis placement for SuperscriptBox

The question concerns the Notation package. I want to define notation for the function very similar to the built-in Power[a,b] ...
306 views

### Result about Context is inconsistent with the description of “Power Programming with Mathematica”

x = 5; tempx = 6; Begin["temp"] {x, Globalx, tempx} The result in my Mathematica session is {5,5,6}, but it's ...
200 views

### How to numerically integrate this integral?

I want to integrate the function funcin (spherical coordinates). ...
178 views

### Integrate with FunctionInterpolation differs from NIntegrate

In working with interpolating functions and integration, I noticed a lot of differences between NIntegrate and Integrate in the ...
210 views

### Extracting function calls from an expression

I have an expression like this: expr = F[0, 1] + 2 F[0, 0] - 17*F[2, 0] and I want to transform it to a list consisting of all function calls with its arguments: ...
98 views

### Custom highlighting in definitions

Suppose we defined a pattern with custom pattern name provided by user, like Quiet[myCustomPattern@terms_ := f[terms : (_[_, _])..]] for use in further ...
36 views

### How to plot data of complex numers [duplicate]

Here I have some output calculated for different values of some parameter. I want to plot these points in complex plane Re, Im and present them with ListLinePLot. How can I do that, I tried many times ...
189 views

### Breaks in plot & blank plots

Almost as a follow on from this old question, I am having similar problems again, with slight difference, that if the values are small enough, a completely blank plot is produced. ...
82 views

### Where do Mathematica's probability functions draw a line in the sand for predicates?

Thinking about a recent question mis-posted here (belonged on math), I noted the following. A contrived example - probability that a or b are 1: ...
315 views

### MATLAB to Mathematica: coneplot

Does Mathematica have a function, similar to the one called coneplot in MatLAB? Given some spatial coordinates $x, y, z$ and velocity components $v_x,v_y,v_z$, it ...
248 views

### Working with symmetric polynomials

I have a question related to working with symmetric polynomials in some variables. Let us say, I have an expression ...
366 views

### Generating high quality charts in Mathematica for use in LaTeX and Word

I frequently have a probelem using my charts in reports because the text (axes labels and tick marks) look low resolution (fuzzy). When I export my charts, i export them as PNG files. Unless I'm ...
83 views

### Variance/Standard Deviation with a Constant Vaule

When applying variance (Variance[10]) or standard deviation (StandardDeviation[10]) to a constant value in Mathematica, Should ...
114 views

### Plotting the discrete solution to a PDE

So I went through all the grunt work of solving a PDE in discrete form for a research project. Now I have a Temperature solution as a function of time and space:  T_{i}^{n+1}=\left( \dfrac ...
253 views

### How to obtain differential equations of motion using Lagrangian dynamics?

I'm confused to find a set of differential equations of motion of a pair of masses, m1 and m2 joined by a spring of constant ...
116 views

### How to mathematically represent MMA 9 Spikey?

I am trying to figure out how to mathematically represent the MMA 9 Spikey in order to send to a 3D printer. According to this page, " In particular, spikeys for version 2 and up are based on a ...
45 views

### How do I pull from a data list for parameter values in a system of ODEs and then solve and plot?

I have a parameter set list and I would like to solve a system of ODEs multiple times using each parameter set in the list. Then I would like each set of solutions to be graphed on the same plot. ...
98 views

### grid lines in Manipulate plots are not showing up when first rendered?

I have a Manipulate within which the plot does not render completely initially: ...
393 views

### Draw generalized k-ellipse using “the locus of points so that sum of the distances to the foci is constant” deffinition

My goal is to draw a family (for different distances) of 3-ellipse for equilateral set of foci. 3-ellipse definition is: "the locus of points so that sum of the distances to the three foci is ...
184 views

### Replace matrix with conditions

I want to replace the values of 1. in slot under the condition that the year and month in basevalue and ...
121 views

### Algorithm in RandomChoice[{w1,w2,…}->{e1,e2,…},n]?

I wonder if someone happens to know the actual algorithm implemented in the particular overload of RandomChoice that handles explicitly presented discrete ...
209 views

### Plotting solutions of differential equations with different parameters [duplicate]

I want to plot x[t], when i manipulate w from 0.1 to 1.5. Here is what I've attempted, which does not work as expected. ...
73 views

### How to solve an inequality

I am trying to solve the following inequality: Assuming[{R[k] >= 0, R[k + 1] = R[k] - 2^N Y, Y >= 0 && N >= 0}, Refine[Re[R[k + 1] >= 0]] I ...
183 views

### Skewness of distribution vs. skewness of distribution's PDF

I'm having trouble understanding why the skewness of built-in distributions is not the same as the skewness of their probability density functions. For example, the following are different (the first ...
99 views

### Plot graphs in different colors

I am generating a set of plots and exploring how changing a parameter affects the plot shape. I want each plot to be a different color, but the color rule i'm applying seems to only work for the last ...
107 views

### I'm trying to filter a date range by day of month and day of week - what am I doing wrong?

I am trying to generate a list of dates that match two criteria: they have to all be the first of the month, and they have to be a particular day of the week, Sunday in my case. The code I have ...
303 views

### intersection between function and plane

I try to solve a ODE system of equations and i want to plot the intersection of the 3D solutions with a costant plane. To do this i use the follow code: ...
54 views

### NSolve or Reduce for obtaining the results and connecting roots

Here I have one problem how to solve numerically equation for different values of one parameter x. I used just two digits because of length, but for x=0.57 I should have one real root and for others ...
215 views

### Why does Plot[Hold[x], {x,0,1}] work?

It appears that, counter to my expectation, all of these (and probably many others) seem to work fine: ...
292 views

### Converting from TableForm to Grid

I wonder if there is an easy way to convert from TableForm to Grid. I have an existing data format that uses the Table function that I’d like to prettify…. Let’s setup a nested table as follows: ...
71 views

### Assign a value to a variable without using Set or SetDelayed?

I supose probably yes, but at the end I assume that internally mathematica has to use Set or SetDelayed. Am I right? Background: I am developing a super simple phraser that takes a code description ...
138 views

### Boundary Condition Problem with Green's Function

My temperature distribution looks like: Mean wire temperature is : To[x_] := 2 c1 Cosh[x a1] + a2 And it is continuous at two points. In positive part: ...
104 views

### How is Wolfram Language different than regular Mathematica? [duplicate]

From all I can see there seems to be no difference between "Wolfram Language" and regular Mathematica. Is Wolfram just a marketing rebranding of Mathematica or is there a new capability I am missing?
140 views

### Import YAML file into Mathematica

Has anyone implemented the import of YAML data files into Mathematica? I suppose some sort of transformation into a nested list of rules would be the way to do it. Thanks
184 views

### Plotting a list in real time

I would like to use Mathematica for a presentation and have a list plotted in front of my audience, one coordinate at a time. How would I go about plotting a list progressively in real-time, ie the ...
487 views

### Categorical Distribution

Suppose I want to do calculations with a random variable $X$ that has a simple categorical distribution (a.k.a generalised Bernoulli distribution or discrete distribution). I was expecting to be able ...
102 views

### Merging two held expressions into a held compound expression

Consider e1 = Hold[a = x + x; b = y + y + y]; e2 = Hold[c = a + a + b + b + b; c^2]; How can I obtain the following? ...
162 views

### Order of symbols in Graphics labels

Do you have any idea how to force an order of Greek letter in the graphics? When I type in AxesLabel -> {Cost, Δ OverBar[π]} the order is π Δ. How can I ...
638 views

### Why Mathematica can't solve this? NSolve or Solve

I want solution of x and y which should be positive real numbers ...
498 views

### 2d heat conduction equation: Boundary and initial conditions are inconsistent

I have the following code for a 2d heat c equation: ...
92 views

### Define inverse for the custom operator

I want to define simple matrix algebra (inspired by the following posts: Block Matrix Algebra with Mathematica ; How to define custom operators ). I assume the funtion ...
225 views

### GatherBy and two conditions

I have a list of 4 dim points, given by ...
230 views

### For loop in Mathematica

I have set of statements ...
65 views

### Solve equation with two different sets of replacement rules

I want to solve eqn for c0. I want to do it with both replacement rules. I realize I could just use solve twice, once for subsCoke, and once for subsPepsi. I'm trying to do it in just one Sovle to ...