8.4 December 10, 2013
==================================
Top new questions this week:
==================================
[Unexpected dots from
Line]\url{http://mathematica.stackexchange.com/questions/38443/unexpected-d
ots-from-line}
I have noticed cases where Line produces dots in a graphics object when
I think it shouldn't. The first of these is:
Line[{{0., 0.}}]
The second is:
Line[{{0., 0.}, {0., 0.}}]
Longer lists of ...
- asked by m_goldberg (14 votes), answered by ybeltukov (3 votes)
----------------------------
[How to replace an element in a list based on the value of the next
element?]\url{http://mathematica.stackexchange.com/questions/38472/how-to-r
eplace-an-element-in-a-list-based-on-the-value-of-the-next-element}
I use Mathematica a little bit. I try to understand it, but it is hard
I have a list of 5 numbers selected randomly from 0 and -1. I have to
replace a 0 with a 1 when the 0 is followed by -1.
My ...
- asked by user11021 (14 votes), answered by ybeltukov (14 votes)
----------------------------
[How to pick increasing numbers from the
list]\url{http://mathematica.stackexchange.com/questions/38325/how-to-pick-
increasing-numbers-from-the-list}
How to pick increasing numbers from the list.
lst = {5, 3, 6, 2, 7, 4, 8};
out:
{5,6,7,8}
So many interesting answers, is it possible know the index of result
elements or position of ...
- asked by Thomas (11 votes), answered by Simon Woods (6 votes)
----------------------------
[How to collect expressions from cells created by
Print?]\url{http://mathematica.stackexchange.com/questions/38216/how-to-col
lect-expressions-from-cells-created-by-print}
I have a notebook where evaluation of a certain cell produced hundreds
of adjacent output cells using Print. I need to create a list containing
all expressions from those output cells as elements, and ...
- asked by Vladimir Reshetnikov (11 votes), answered by belisarius (17
votes)
----------------------------
[How to constrain memory usage on
HPC?]\url{http://mathematica.stackexchange.com/questions/38403/how-to-const
rain-memory-usage-on-hpc}
I found the performance of built-in function MemoryConstrained is very
poor. It stops the evaluation after the memory already exceeds greatly
than the values I set.
There are several other questions ...
- asked by matheorem (9 votes)
----------------------------
[Different results for integration using Mathematica and
MATLAB]\url{http://mathematica.stackexchange.com/questions/38457/different-
results-for-integration-using-mathematica-and-matlab}
I have the following integration:
$$\text{y}=2 \sqrt{\frac{1}{\pi }} \int_0^{\infty } \frac{e^{-z}
\left(1-e^{-\frac{z}{b}} \left(\frac{a}{a+c
z}\right)^L\right)}{\sqrt{z}} \, dz$$
I get different ...
- asked by barznjy (9 votes), answered by Peltio (8 votes)
----------------------------
[Disconnected Frame/Axes in
Plots]\url{http://mathematica.stackexchange.com/questions/38581/disconnecte
d-frame-axes-in-plots}
Is it possible to have "Tufte" style figure axes? That is so that the
axes do not need to connect or span the entire data range?
For an example of what I mean from the R's default histogram style:
...
- asked by Gabriel (8 votes), answered by Silvia (6 votes)
==================================
Greatest hits from previous weeks:
==================================
[How to determine the center and radius of a circle given three points
in
3D?]\url{http://mathematica.stackexchange.com/questions/16209/how-to-determ
ine-the-center-and-radius-of-a-circle-given-three-points-in-3d}
I was wondering if anyone could give me a hand with this problem I have.
I have six points on a plane, and I am trying to determine if they form
a circle or not.
I know that any three points in 2D ...
- asked by RedPotatoe (9 votes), answered by Mark McClure (15 votes)
----------------------------
[Get a "step by step" evaluation in
Mathematica]\url{http://mathematica.stackexchange.com/questions/148/get-a-s
tep-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 ...
- asked by Skydreamer (43 votes), answered by J.M. (38 votes)
==================================
Can you answer these?
==================================
[Manipulating the pitch of a
sound]\url{http://mathematica.stackexchange.com/questions/38423/manipulatin
g-the-pitch-of-a-sound}
After reading Manipulating a continuous stream of sounds I have to ask
about controlling the frequency of a Sin sound in a continuous manner,
with a Play inside a Manipulate, for example. The result ...
- asked by Andrestand (3 votes)
----------------------------
[How to get vertices of a polytope given by equalities and
inequalities?]\url{http://mathematica.stackexchange.com/questions/38414/how
-to-get-vertices-of-a-polytope-given-by-equalities-and-inequalities}
I have a polytope given by some equalities and inequalities, how can I
get all the vertices of the polytope?
If there's a way to deal with the one given by inequalities only, how
can I reduce the ...
- asked by Jason (3 votes)
----------------------------
[Solar system simulation (n-body physics) with
OpenCL]\url{http://mathematica.stackexchange.com/questions/38478/solar-syst
em-simulation-n-body-physics-with-opencl}
I would like to simulate a n-body solar system in Mathematica. I have
found the following example: ...
- asked by shrx (1 vote)