2
votes
3answers
225 views

Why does Dynamic for PlotRange in ListLinePlot prevent the proper range from being used?

I am using Manipulate to simulate Brownian motion. I want to be able to zoom in. Thus, I want to use Dynamic for the ...
1
vote
1answer
125 views

What is wrong with setting one list to another within function? [duplicate]

I have built a function which carries out a set of operations given two parameters. The function looks as follows: ...
4
votes
1answer
86 views

Is it possible to Print into a collapsable CellGroup?

During rather long computation I have intermediate steps Printed with useful information which should be collected for possible use in future inside of the ...
0
votes
1answer
68 views

how to superimpose two best-fit graphs [closed]

I have a couple of best fit curves. All I want to do is superimpose them, to see if they are shaped differently. (I can eyeball them but I want to be sure, as it were). On to what I am asking: I ...
3
votes
1answer
204 views

Are there any more time-efficient ways to solve a matrix equation than with SparseArray and LinearSolve?

I am trying to solve a matrix equation, with the matrix being tridiagonal. The problem I am having is that a message keeps appearing that I don't have enough memory. Here is the code: ...
3
votes
1answer
284 views

How to efficiently drag points on a curve within a Manipulate

My intention is to demonstrate on any conic various metrics properties on points belonging to the conic and connected by lines. I want the points to be dynamically moved not the usual way, ...
5
votes
1answer
131 views

Behavior of 1.2 ∈ Rationals changes in v9?

A friend of mine using version 9 recently showed me this: It's strange because in version 8.0.4 1.2 ∈ Rationals does return ...
2
votes
2answers
427 views

How to make lines in Plot Legends wider?

1.- How to put DASHED lines in the Legend? 2.- How to give Style to {20,Bold} to all "Expressions in Legend? (I use LegendMarkSize for make lines wider than default fine style ) ...
1
vote
1answer
433 views

How to find non zero elements of a list containing zeros and symbols

I have a list, obtained after differentiating a list of expressions, which contains zeros and symbols, say: A = {x1^2, x2^2, x3^2, x4^2} D[A,x3] results in the ...
4
votes
1answer
105 views

Converting string representation of boxes into explicit boxes

It is very easy and convenient to write textual labels as Strings in the WYSIWYG mode. For example, I define a short form describing a linear model: ...
1
vote
1answer
145 views

How to check a solution of a partial differential equations?

Here is a system which Maple can solve, but Mathematica cannot. ...
15
votes
4answers
2k views

Elegant solution to the Zebra [logic] Puzzle (“Einstein's Riddle”)

The famous Zebra Puzzle (Wikipedia), often called "Einstein's Riddle," is a logic puzzle that can be solved deductively by applying a list of logical rules. One version of the riddle (from Wikipedia) ...
0
votes
0answers
15 views

Prevent trigonometric simplification [duplicate]

I have created a plot of g(x)=a*sin(b(x-c))+b where a, b, c, and d change using sliders excetera. Also, the trig function itself func = (sin, cos, tan) is selected using buttons. My issue is with the ...
1
vote
1answer
107 views

Why don't I get the graphics output I'm expecting? [closed]

Today,I want to use a point generate a circle,the main picture as below: Given that I know the equation of circle, and the value of $L_1$,$L_2$.The coordinate of point $A$ is $(p_x,p_y)$. I use ...
1
vote
1answer
114 views

What is the inside?

What is the inside of the Mathematica command, solve, for a system of equations like the following? $$\eqalign{ (x +2\phantom{3} z)^2 + (y +\phantom{3} w)^2 &= 52\cr (x + 30z)^2 + (y + 3w)^2 ...
1
vote
0answers
225 views

Travel time sweet spot using: Mathematica and Google Maps API

I want to use Mathematica to do some time minimisation calculations calling on Google Maps API for travel time data. I'm concerned with travel time, e.g. along roads (by car or walk) and not linear ...
0
votes
0answers
39 views

How can I draw a bifurcation for the following system [duplicate]

How can I draw a bifurcation for the following system between b and T
3
votes
1answer
161 views

Zooming into animated plot

Let's say I have the following animation: Animate[ParametricPlot[{Cos[a t], Sin[a t]}, {t, 0, 1}], {a, 0, 2Pi}, AnimationRate -> 0.1] Is there a way to ...
3
votes
2answers
497 views

Symbolically solve a system of coupled second order differential equations

I have posted a similar question in another forum where the general consensus seems to suggest that it is not possible to symbolic solve a system of coupled second order differential equations with ...
2
votes
1answer
200 views

How to calculate a double indefinite integral [closed]

I need to calculate double integral as shown below. I used the Classroom Assistant palette to write the integral. How can I enter it as ordinary text, i.e., ...
0
votes
0answers
65 views

Problem with NDSolve and NDSolve::ivone error

I was trying to solve an diffusion-reaction rate model for the oxidation of Silicon (based on the nice paper by Almeida et.al.) with the help of NDSolve. In this model the boundary conditions are a ...
2
votes
1answer
213 views

Prove (or check) an expression is positive given constraints on variables?

I'm trying to figure out whether an expression is always positive given positive parameters. When the expression is complicated, I can't do this by eye. Is there any way to make Mathematica prove ...
0
votes
1answer
382 views

Parallel computation of NDSolve and a problem

I used this code to solve a system of differential equations: ...
4
votes
1answer
148 views

SmoothHistogram with sharp boundary [duplicate]

When using SmoothHistogram (to plot probability distribution function), I noticed that the edge of the figure is automatically smoothed towards zero probability. ...
2
votes
5answers
275 views

Returning all positions for all different occurences of elements in a list

Is there way to construct oneliner as pure function(s), so that I enter mylist only on one place - on the end of line. And that function return the same result as ...
1
vote
4answers
136 views

How to count number of {True,True} outputs?

Do[Print[{x + y + z == 3, x + y > z}], {x, 1, 2, 1}, {y, 1, 2, 1}, {z, 1, 2, 1}] If I run this syntax I get a series of Outputs, I am trying to Count only the ...
5
votes
2answers
354 views

Labeling a grid

I have m = {{0, -1, -2, -3, -4}, {1, 0, -1, -2, -3}, {2, 1, 0, -1, -2}, {3, 2, 1, 0, -1}, {4, 3, 2, 1, 0}}; And a grid ...
1
vote
1answer
97 views

How to study the sign of an expression including a function, with conditions on the function?

I'm trying to study the sign of an expression, having information on some of my parameters. I don't know how to code these conditions. For example, I want to know when this expression: ...
3
votes
3answers
373 views

How to exchange two arguments?

Recently, I have being using Mathematica to write my undergraduate paper. I want to use two pattern lists such as { A -> a, B -> b, c -> C, ....} and ...
0
votes
0answers
24 views

How to put the values/points in a loop into a plot? [duplicate]

I've already make the do loop..it has 200 points..how am i going to put those points into a plot?do i need to make a list@table before doing the plot?here's my loop example, ...
0
votes
0answers
63 views

Polar Plotting in Complex Plane [duplicate]

How would I plot the following functions in the polar complex plane? $$ \phi={-k\over 2\pi r}cos(\theta_0-\theta) $$ and $$ \psi={-k\over 2\pi r}sin(\theta_0-\theta) $$ Please ...
0
votes
0answers
18 views

Using functions as input for a function - won't simplify [duplicate]

I've defined a function P[k_] := 1/[Sqrt]2 (R[k] + L[k]) where R and L generate matrices. However the output of this function never full simplifies (even when I use the Simplify[%] functions). It ...
0
votes
0answers
47 views

Problem with loading my custom package [duplicate]

I've been having quite a bit of trouble loading a package I wrote. I've followed the suggestions on related questions on this site, as well as on Mathematica's own pages, and still nothing has worked. ...
1
vote
0answers
66 views

Cells overwritten as “Null” [closed]

Last week an entire section of a notebook was overwritten(?) such that all cells (headers, text, inputs, and outputs) were merely Null. It was in a section of the ...
2
votes
2answers
195 views

Create Table of replacement rules

I want to create a table of replacement rules. ...
4
votes
1answer
194 views

How to change a parameter dynamically inside NDSolve

I have no idea how to dynamically update a parameter inside NDSolve. For example consider following first-order DE: ...
12
votes
3answers
364 views

Disentangling the data

An experiment yields a functional dependence on two variables $F(x,y)$, can be imagined as a 2D map. It is known that the function can be factored as follows $F(x,y)=fx(x) gy(y) +gx(x) fy(y)$. Given ...
1
vote
0answers
99 views

Trying to study the three points theorem of the Mobius Transformation

I am trying to study the three points theorem of the Mobius transformation. This theorem says that the Mobius transformation $M$ maps three distinct points p, q, r to three distinct points p', q', r'. ...
3
votes
1answer
124 views

How to simulate the 1-D motion of a particle under constant acceleration? [duplicate]

I am trying to represent the position of an object under freefall, but am completely lost. Here is my attempt so far: ...
2
votes
2answers
114 views

How to control Manipulate speed

I want to ask about how can we control Manipulate function so that it is not incrementing the step until the expression is calculated. I have the following simple ...
1
vote
1answer
70 views

Inaccuracy of Piecewise function? [duplicate]

I have the following issue and can't find a solution so far. ...
1
vote
0answers
45 views

Replacing list elements by other list elements [duplicate]

I am a beginner of Mathematica and need some help for the following issue. I have the following two lists: ...
12
votes
3answers
351 views

Taking Top K Occurrences

Having millions of numbers in a list, I want to take top K occurrences. MMA Commonest is very slow so I write my own versions: ...
0
votes
1answer
35 views

How to use the circledot in 3 (or any) series in ListPlot? [closed]

How to use the dots in the 2 series, with diferent color?. I know use symbols "O" instead of Automatic... but... tu use de dot? ...
9
votes
2answers
2k views

Why is this semicolon in red?

I have a piece of code that works well, but when I put a semicolon after a plotting statement, the semicolon appears in red. What's the error?
0
votes
0answers
226 views

What algorithms does NSolve use?

I've been using NSolve to find roots and now I've been wondering what underlying algorithm mathematica uses. It's probabaly similiar to ...
10
votes
1answer
163 views

Importing an mx file into a context

Consider the following simple code which dumps the global context: var = 5; DumpSave["test.mx", "Global`"]; Now, in a new notebook, I would like to import var in ...
6
votes
2answers
453 views

Combining three R, G, B matrices into a single matrix of 3-tuples?

Working with Mathematica 8 on OSX here. I have three $1024 \times 1024$ matrices representing the counts from consecutive exposures onto a CCD with $R$, $G$, and $B$ filters on it, and am looking to ...
2
votes
1answer
84 views

LogPlot and LogLogPlot do not output their legends correctly

When I give lists of functions to LogPlot or LogLogPlot with the option of PlotLegends, ...

15 30 50 per page