All Questions

3
votes
1answer
36 views

Manipulate Demo Full Screen

Is it possible to create a demo using Manipulate and then open it in a document that can be expanded to full screen?
0
votes
0answers
16 views

How to combine several graphs in one?

If I have table of for example 5 sets of points which form 5 curves, to plot all of them in the same graph I use this: ...
-1
votes
0answers
16 views

How to create my own procedures in mathematica?

I need to use some sequence of actions several times in my code. This actions includes cycles and some simple mathematics. Is it possible to create procedure (function) like in languges such as c, to ...
3
votes
2answers
48 views

Turning arrowheads off

My thinking was that Arrowheads[0] would turn off the arrowheads. ...
1
vote
0answers
29 views

Summing the probability distribution to 1 to convince myself

I have worked out a probability distribution and want to check its sum which is necessarily 1. First we write $$ r \triangleq \frac{(2 \lambda + \mu)^2}{2(\mu + \lambda)^2}, \quad s \triangleq ...
312
votes
12answers
58k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
3
votes
2answers
70 views

Parametric contour plot?

I am trying to plot a contour of a function g(x,y) (in particular, the contour g(x,y)=1) on a different set of axes than (x,y): I want to plot it on (f1(x),f2(y)), where f1 and f2 are (monotone ...
0
votes
1answer
38 views

Can anyone help me to get the solution of this first order ODE?

$\ y'(x)=-sqrt(y(x)^3)$ with initial condition $\ y(0)=-2$. In fact, this is an example here in page 3-4 ...
6
votes
1answer
97 views

Does anyone know a way to draw lines connecting nearest neighbor points in ListPlot[ ]?

I have a two-dimensional mesh that I am visualizing in Mathematica, with ListPlot[]. The mesh looks like this: Any ideas for how to connect all the nearest neighboring points with lines? Thanks, ...
1
vote
1answer
59 views

List(Line)Plot with a big jump

I am trying to plot a joined plot. Some possible ways would be ListPlot with Joined -> True or ...
1
vote
0answers
23 views

I can't connect all wolfram websites if I use VPN

I can connect wolfram's sites if I connect them directly,but once I connect my vpn,even mathematica can't connect to the internet.And there is no problem to connect other sites.Why does this ...
0
votes
0answers
33 views

Align a plot with other rotated plot

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
6
votes
1answer
201 views

How can I improve speed of code that generates an orbit plot?

I am attempting to generate an orbit for the "time 2 Pi map" of a forced damped pendulum. The example comes from page 57 in the Chaos text by Alligood,Sauer and Yorke, see Figure 2.7. The code ...
0
votes
0answers
49 views

Mathematica List Selection

I have a list which contains these elements : ...
0
votes
0answers
35 views

Converting list into Double quote list

I am trying to import a spreadsheet of stocks. I have tried to flatten it and a few other functions but noting seems to work. Can someone help me get the double quotes surrounding each stock like in ...
16
votes
3answers
736 views

Is it possible to draw really thin lines in Mathematica?

I want to have in Mathematica the same result I have in Python: I have this nice effect simply by using very thin lines. But it seems in Mathematica thickness property has some limit and i just got ...
22
votes
3answers
639 views

Which Distributions can be Compiled using RandomVariate

Recently, Oleksandr kindly showed a list of Mathematica commands that can be compiled. RandomVariate was part of that list. However, whether this can be compiled depends upon the distribution that is ...
2
votes
0answers
72 views

Fitting an implicit function to data with error bars

I am trying to fit a Brillouin function to the peak intensity of neutron scattering data, for which I have an error bar for each data point. For this the program has to fit a function, for which the ...
1
vote
2answers
103 views

How to tell Mathematica that certain variables are real/imaginary, integer-valued, etc

I'm trying to expedite some quantum mechanical calculations by running them through Mathematica. Expectation values and stuff like that. When I say, for example, ...
0
votes
1answer
23 views

Labelling a bar chart with multiple data sets

I'd like to plot a bar chart with two data sets $\{a_1,a_2,\dots,a_n\}$ and $\{b_1,b_2,\dots,b_n\}$ in such a way that the columns appear in the order $\{a_1,b_1,a_2,b_2,\dots,a_n,b_n\}$ and that each ...
0
votes
0answers
36 views

Solving for a Transfer Matrix

I am currently working on a program that will solve a transfer matrix and extract several elements. Particularly, the transfer matrix is characterized by four elements in a ...
0
votes
1answer
53 views

ColorFunction that depends on angle of line

I have a ListLinePlot, and I want the ColorFunction to vary as the angle, so that the color of the whole line depends on its angle from the x-axis. Here is a MWE of what I am doing: ...
1
vote
1answer
39 views
60
votes
5answers
34k views

Get a “step by step” evaluation in Mathematica

Is it possible in Mathematica to get a step-by-step evaluation of some functions; that's to say, outputting not only the result but all the stages that have led to it? Example : Let's say I want to ...
2
votes
2answers
54 views

Finding out all undocumented values for “Properties” in XxxData[] functions

No, XxxData[] is not a new function in Mathematica 11. I am just using that name for all curated data-related functions. As you know, ...
1
vote
0answers
32 views

Direction Field for an Ordinary Differential Equation

I have found links for plot the direction field of a differential equation. For example: How can I plot the direction field for a differential equation? And: Plotting the direction field of a ...
12
votes
1answer
3k views

how to make graphic timelines in mathematica

Hi does anyone know how to make timelines with mathematica? http://images.nationmaster.com/images/motw/atlas_middle_east/turkey_timeline.jpg something like that would be great! thanks
7
votes
1answer
1k views

Linear programming with many variables and parameters

I am trying to reconstruct the answer that is given in this report. (page 153 in Appendix B; Section B.2.1). They are given variables, parameters, constraints, and the objective function to minimize. ...
3
votes
0answers
40 views

Regarding Evaluated True

Done a bit of reading: Normal[Series[ ]] does not give a normal expression Regarding the Evaluated->True, consider: ...
0
votes
1answer
60 views

Graphic timeline from array

I found this question where someone put some code to graphic a timeline based on a certain number of events. In that code in particular, the events are hard coded one by one, I want to modify it, so ...
1
vote
1answer
41 views

Wolfram CDF Player not working anymore in WordPress v.4.0.1

I usually instert my CDF demonstrations in my WordPress site with the WolframCDF plugin v.2.1. It worked fine till a couple of days ago. But, after the recent (automatic) upgrade of WordPress from ...
0
votes
0answers
45 views

How to take a coordinates of mouse position? [on hold]

There is MousePosition function, which gives a coordinates of mouse right now.But I need coordinates of a line, that been made by user in the picture. I was thinking about writing function, that gives ...
44
votes
4answers
2k views

Plot draws list of curves in same color when not using Evaluate

This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
0
votes
1answer
42 views

What is the simplest way to obtain function obect of a given function?

Suppose I have a function p of some arguments: p[x_,y_]:= (* something *) Now I with to pass this function as an object to ...
1
vote
0answers
34 views

plot the numerical value of the average on a BoxWhiskerChart

Im using BoxWhiskerChart to get a boxplot of a matrix of two columns. I need to read the value of the sample average directly from the plot and not from the axes. That is I need to plot the number ...
1
vote
2answers
106 views

Merging two lists with possible different keys

This is very similar to my earlier question One to Many Lists Merge but somehow different. I have two lists, first column in each list represents its key. I want to merge these two lists. The only ...
22
votes
3answers
2k views

Maple vs. Mathematica

I am reading the document "How Maple Compares to Mathematica" found at http://www.maplesoft.com/products/maple/compare/HowMapleComparestoMathematica.pdf. On page 15 there is an example where ...
2
votes
2answers
98 views

Something wrong with the way units are handled in V10

(This applies only to version 10) I obtain these two properties of silicon: a = ElementData[14, "CrustAbundance"] b = ElementData[14, "MeteoriteAbundance"] both ...
2
votes
1answer
55 views

replace RHS of rule

is there an elegant way of replacing the RHS of a rule with the value of some function of it. Say I have {{a -> 1.2}, {a -> 2.3}} and I want to replace ...
11
votes
2answers
783 views

How to vary color of fill between listplots based on y-distance between them

I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
7
votes
1answer
459 views

Filling only when one curve is below the other

I want to fill the area between two curves only when curve-1 (Black) is below curve-2(Blue). So In this example, I don't want the middle portion shaded but just the left and right tails to be shaded. ...
13
votes
2answers
372 views

Improve TextRecognize[] on numbers

I have an image contain only numbers, and TextRecognize fail to recognize some numbers: img=; TextRecognize[img] (*826718*) The documentation says that "The ...
11
votes
1answer
223 views

How to do color-fill in Mathematica?

Color fill, the ability to apply a desired color to an enclosed area, is one of the basic functions provided by most graphic applications. Is there a similar ...
0
votes
1answer
62 views

C# Tree view similar

Is it possible in Mathematica to add a GUI like the Tree GUI element in Visual Studio 2010 C# Windows Forms? I want to have the similar feel
1
vote
1answer
61 views

How to print non zero elements of the matrix containing zero elements and non-zero elements both?

A matrix with both non-zero and zero elements is given. I want to print only the non-zero elements of the matrix. What is syntax that have to be used for this? matr2 = Table[FortranForm[matrixx[[i, ...
0
votes
0answers
30 views

Histogram bin includes numbers out of range [on hold]

I have a list of large integers I want to plot in a histogram. The integers are distributed in [2^(l-1), 2^l) where l is the bit ...
0
votes
0answers
30 views

reloading previously evaluated inputs? [duplicate]

How do I avoid having to resend previously evaluated commands when I reopen my notebook? can't it just allow me continue my computation from where I stopped? Also, some inputs take forever to execute, ...
6
votes
3answers
239 views

“NotAvailable” and “NotApplicable” data points returned by WeatherData[]

I am trying to use ListVectorPlot in combination with WeatherData and CountryData to show ...
3
votes
1answer
128 views

Applying LinearModelFit[] to data obtained with WeatherData[]

I am trying to perform a linear regression on some weather data, but I can't seem to figure out how to perform the operation. What I have right now is this: ...
1
vote
1answer
101 views

15 30 50 per page