0
votes
0answers
11 views

StringLength function

allWeatherStations = WeatherData[]; fullformStations = FullForm /@ allWeatherStations; Tally[StringLength /@ fullformStations[[All, 1, 2]]]. This code not working. ...
0
votes
0answers
13 views

DSolve with assumptions

I'm new to mathematica and was wondering if someone could help me. I have a differential equation which is: $\frac{dy}{dx} = 1/2 y(1 - y)(a - y + a y)$ It has initial condition $y(0) = y0$ and ...
0
votes
1answer
19 views

How can I combine two plots?

I am interested in plooting x only from 0 to 1, and afterwards x^2, only from 1 to ... whatever ...
0
votes
0answers
11 views

Dealing Repeated pattern in StringReplace

A problem about StringReplace When I'm running into this problem possible [bug] ...
1
vote
1answer
17 views

Better way to visualize cylinder puzzle solution

The above puzzle has been a recent source of amusement in my clique. I decided to provide a visualization to motivate solution (here): My code: ...
0
votes
2answers
37 views

Plotting vectors using derivatives

This question stems from a previous question I asked here: Multiple Integral of equation including dx prime? An equation describing a gravitational field of a cuboid is given as: $V(X,Y,Z) = -G\rho ...
1
vote
2answers
55 views

How could I transform the YYYYDDD date string/Integer to YYYYMMDD date string?

suppose I have lots of YYYYDDD date Integers which look like(for example): ...
0
votes
4answers
53 views

How to trim the zeros from the right of a list?

I need to remove the zeros from the right of an integer list up to the first non-zero element. Such as {0,1,0,0,2,0,0}->{0,1,0,0,2}. Padding zeros can be simply ...
0
votes
0answers
23 views

Why the flat f[x] is treated as ghostHead_[f[x]]?

While reading this answer I feel confused. If we do not care any specific detail of the original question, then ybeltukov's answer essentially makes use of the following fact ...
0
votes
0answers
16 views

Question about Plotting Two Sets of Data (repetitive, but previous question did not help me)

I wish to plot two sets of data on the same graph (two separate lines). However, everytime I put in the data, it acknowledges everything as strictly being an x ...
1
vote
1answer
41 views

Solve the “Cheryl's birthday” puzzle using mathematica

The "Cheryl's birthday" puzzle has been circulating around, the backstory is available via wikipedia. The puzzle itself is reproduced here: Albert and Bernard just became friends with Cheryl, and ...
0
votes
0answers
14 views

Unable to save a notebook as pdf

I have removed all the dynamic and manipulate cells. I can save short selections as pdf, but when I try to select the whole notebook, or use save as - pdf, the result is just one page, sometimes the ...
0
votes
1answer
35 views

How to import data from a .mat or a .txt file and manipulate dimensions

I'm new to Mathematica (I know very, very little - so I apologize if anything I say is absolutely wrong) - but I'm trying to upload a file from matlab and arrange it in matrix form. I have a .mat ...
0
votes
0answers
23 views

Multiple Integral of equation including dx prime?

I'm hoping someone can verify I've written this function properly since I'm a little new to Mathematica. What I'm attempting to do is code a function that describes a gravitational field of an ...
3
votes
3answers
81 views

How to fit parameters in a system of coupled differential equations

Problem description: I'm studying a chemical reaction that can be modeled by a system of coupled differential equations, and I want to use measured data to determine the parameters that appear in the ...
3
votes
2answers
64 views

How to use an expression for the argument to a function [duplicate]

I would like to define a function over a list of variables like f[a_,b_,c_]:=a+b+c However, when this list is big it makes uncomfortable to read. Can I somehow ...
1
vote
0answers
33 views

Question on ClusteringComponents

I am fairly new to Mathematica. I've been playing around with ClusteringComponents. Assume we are clustering points in the plane using k-means clustering and ...
0
votes
3answers
55 views

Absolute VectorPlot scaling

I'm trying to visualize the vector components of a rotation matrix with absolute vector lengths. VectorScale help states that When using an explicit sfun, ...
0
votes
0answers
36 views

How to invert the default order of polynomial? [duplicate]

By default, Mathematica outputs polynomials starting with smallest degree. How can I invert this?
0
votes
0answers
14 views

Possible bug of Exporting as HTMLFragment at Linux

This is the result of Mathematica 10.0.2 of Linux Version. There are two style inside one tag, and this fragment cannot be Imported as XML by Mathematica. This is the result of Mathematica 10.1 of ...
1
vote
1answer
22 views

Truncating a List of Subsets of Ordered Pairs

I have a set of pairs: ...
0
votes
0answers
23 views

Definition of function for integration [on hold]

I have this function: g33[p_] = Integrate[1/(a - b) (a μ2[-p/b] + μ1'[-p/b] - 2 a g2'[(-a p)/b] - (a + b) g4'[-p]), {p, -l/b, 0}] And I want to call it with ...
0
votes
2answers
53 views

Returning value if a point is in a region?

I'm writing a function so that if the user clicks on a certain region, a value is returned. The function takes in a condition list like the one below and a point. ...
0
votes
0answers
42 views

How can I make a plot of integer lattice? [on hold]

I want to make a plot of complex plane with dots representing visible lattice points. I want the result represented somehow like this: ...
1
vote
4answers
101 views

Manipulating List?

I have a huge list with 1000 elements. Manually entering and calculating SUM of probabilities it would take a few hours. Example: list = {1, 2, 3, 3, 4, 3} ...
1
vote
0answers
23 views

ConnectedComponents problem of syntactic structure

In Mathematica 10, ConnectedComponent computes the list of vertices belonging to strongly connected components. In the following simple example with a graph with no edges, the result is as follows: ...
1
vote
1answer
61 views

Manipulate with plot and images

I have the following code: ...
0
votes
0answers
27 views

Package for symbolic computation of christoffel symbols and parallel transports in Riemannian geometry, given the metric

I've no knowledge in mathematica (but I do in matlab), but I'd really appreciate if someone could mention what is/are the best and easy to learn mathematica package(s) for symbolic and numerical ...
0
votes
0answers
23 views

PeriodogramArray or PowerSpectralDensity?

could anyone explain what is the difference between PowerSpectralDensity[data,omega] and PeriodogramArray[data]? When I plot them (starting from the same set of data of course) I get two different ...
0
votes
0answers
50 views

I made my own equation, how do I know if it already exists? [on hold]

I made my own equation after playing around with some numbers. So I started to look for the equation to be sure I made it first. I googled and searched for it almost everywhere but couldn't find it. ...
0
votes
0answers
49 views

Matrix iteration failing after second step

I am calculating 11x6 matrix using different logics as in below code. Problem is in Do loop in below code where I have two different criteria to update matrix "fd". I am expecting logic in IF which ...
1
vote
0answers
46 views

Plot a data of four dimension

I have a confusion recently about the visualization of data.the data you can get there enter link description here.The construction of data is four dimension,like as {x,y,z,color},this is my current ...
0
votes
1answer
30 views

More than one graphic in Graphics command [on hold]

another question regarding plotting. I'm sorry, but somehow it is superhard for me to use these. I have a Graphics plot and I want to add a Point to it. A circle is already working. But everything ...
0
votes
1answer
67 views

Arbitrary hollow cylinders in mathematica 9

I'm having trouble displaying a hollow cylinder in Mathematica 9. A hollow cylinder looks like this: I tried to use RevolutionPlot3D with a step function. It ...
1
vote
1answer
45 views

In WolframAlpha, how can I make a Scatter Plot without connecting points? [on hold]

How do I plot a list of points without connecting the dots in WolframAlpha? I tried, for example, ...
1
vote
3answers
61 views

NDSolve parametric plot

Here is my code. s = NDSolve[{f'''[x] + f[x]*f''[x] == 0, f[0] == A, f'[0] == 0, f'[10] == 1}, f, x] I want to plot f''[0] ...
1
vote
1answer
49 views

Numerical solution of IVP for linear ODE with variable coefficient runs wild soon

A friend of mine showed me this initial value problem (IVP) for a linear ordinary differential equation (ODE) with variable coefficient: $$y''(x)=\left(x^2-1\right) y(x)$$$$y(0)=1$$$$y'(0)=0$$ Seems ...
0
votes
0answers
57 views

How to clear Mathematica's storage after a large computation? [on hold]

I've done some surfing and haven't found a solution to my problem... hopefully it is a simple one! Here is the problem. I have a Monte Carlo module that is stepping/tracking particles in a ...
1
vote
1answer
64 views

White Edges Around Graphics Elements

Using the following code, I am able to generate a grayscale Voronoi diagram: ...
0
votes
1answer
34 views

Replace element of matrix based on rule which invloves other element of same matrix

I am trying to replace 1s row of matrix d iteratively from right by multiplying last element in 1st row with (1-int*dt) to generate 2nd last element. The replacement continues till I reach the 1st ...
0
votes
2answers
51 views

Force Mathmatica to simplify an ArcTan[]?

I understand that there are many solutions that will produce the same arctangent, nevertheless I really need a simplification: ...
2
votes
1answer
71 views

Output an Expression in terms of GoldenRatio

Sorry if this is a dumb question (I'm new). I swear I searched and read forums first! I'm trying to rewrite expressions in terms of the Golden Ratio. For example, I know ...
-2
votes
0answers
72 views

How to compute and plot an intersection? [on hold]

When two surfaces (ParametricPlot3D based on two independent parameters or a CountourPlot3D or a Monge Plot3D with known formula) are placed and plotted together, how is the intersection line ...
-3
votes
0answers
70 views
4
votes
0answers
49 views

Trouble understanding TrackedSymbols

While developing a relatively complex demonstration for Manipulate I encountered the problem that my output was unintentionally self-updating in an endless loop. ...
2
votes
0answers
33 views

Tensors with mixed symmetry

I want to work with tensors of mixed symmetry, for example with a rank 3 tensor $A_{ijk}$ that is symmetric under the exchange of $i$ and $j$ and antisymmetric with respect to $i$ and $k$. I was ...
0
votes
0answers
23 views

STL exports as flat rectangle

I have this code to graph a 3D surface and fill it to the axis: ...
1
vote
2answers
108 views

How can I reshape my solutions to make a 3D plot?

I need some help on the following. I need to run Solve for multiple values of a and b. To do so instead of using Do, I use ...
7
votes
1answer
66 views

Applying a texture to part of a sphere

I am trying to texture a sphere with a picture of myself. I don't want it to be stretched across the whole sphere but only to appear on the front. I used ...
0
votes
0answers
16 views

How can I get the 1-ring neighbor of mesh triangle?

I have an .obj file. I import it into my mathematica and get the vertices and also triangles as follows: ...

15 30 50 per page