================================== Top new questions this week: ================================== [Why won't Parallelize speed up my code?] <http://mathematica.stackexchange.com/questions/48295/why-wont-parallelize-speed-up-my-code> What reasons are there that can cause parallelized Mathematica code not to run with full performance? - asked by Szabolcs (18 votes), answered by Szabolcs (26 votes) ---------------------------- [High-quality RegionPlot3D for logical combinations of predicates]\url{http://mathematica.stackexchange.com/questions/48486/high-q uality-regionplot3d-for-logical-combinations-of-predicates} Unlike RegionPlot, RegionPlot3D copes poorly with logical combinations of predicates (&&, ||), which should result in sharp edges in the region to be plotted. Instead, these edges are usually ... - asked by Rahul Narain (11 votes), answered by Simon Woods (10 votes) ---------------------------- [Correct way to integrate a certain function]\url{http://mathematica.stackexchange.com/questions/48437/correct- way-to-integrate-a-certain-function} I want to integrate $$ \int_{0}^{2\pi} dt_1 \frac{a + b*\cos(t_1 - t_2)}{c + d*\cos(t_1 - t_2)} $$ where $a, b, c, d, t_2$ are real numbers and $c + d > 0$ & $0 \leq t_2 \leq 2\pi$. I used ... - asked by vik (9 votes), answered by Michael E2 (4 votes) ---------------------------- [How do I get Mathematica to return a function call unevaluated?]\url{http://mathematica.stackexchange.com/questions/48349/how- do-i-get-mathematica-to-return-a-function-call-unevaluated} How do I get Mathematica to return a function call (conditionally) unevaluated? I expect this may use the slightly-mysterious Hold function. As a toy example, suppose I want to define AlgebraicQ such ... - asked by Charles (9 votes), answered by Szabolcs (9 votes) ---------------------------- [Why is plot legend unsafe?]\url{http://mathematica.stackexchange.com/questions/48291/why-is-pl ot-legend-unsafe} Every time I open a notebook contains a legend, I get the message warning that it's not safe. Why does this happen and how to fix it? - asked by xslittlegrass (9 votes), answered by Szabolcs (12 votes) ---------------------------- [Faster way to compute the distance from a point to a surface in 3D]\url{http://mathematica.stackexchange.com/questions/48565/faster-way-to- compute-the-distance-from-a-point-to-a-surface-in-3d} I am trying to compute the shortest distance between a point and a triangle in 3D distance[point_, {p1_, p2_, p3_}] := Module[{p, s, t, sol}, p = s*p1 + (1 - s)*(t*p2 + (1 - t)*p3); ... - asked by tintin (8 votes), answered by RunnyKine (15 votes) ---------------------------- [Does the syntax coloring I see indicate a real problem?]\url{http://mathematica.stackexchange.com/questions/48432/does-the -syntax-coloring-i-see-indicate-a-real-problem} I need a behaviour provided by: x = 2; Block[{x = HoldForm[x]}, x] x FrontEnd marks this syntax as not quite correct. It has not caused me any troubles so far so my question is: could it ... - asked by Kuba (8 votes), answered by halirutan (6 votes) ================================== Greatest hits from previous weeks: ================================== [How many Christmas gifts?]\url{http://mathematica.stackexchange.com/questions/39338/how-many-c hristmas-gifts} This question is based on the old song, The Twelve Days of Christmas In a comment made on a recent question, Yves Klett remarked, "no seasonal questions this year?" This reminded me of one I solved ... - asked by m_goldberg (18 votes), answered by rm -rf (23 votes) ---------------------------- [How to generate a random snowflake]\url{http://mathematica.stackexchange.com/questions/39361/how-to- generate-a-random-snowflake} 'Tis the season... And it's about time I posed my first question on Mathematica Stack Exchange. So, here's an holiday quest for you Graphics (and P-Chem?) gurus. What is your best code for generating ... - asked by Peltio (87 votes), answered by Silvia (117 votes) ================================== Can you answer these? ================================== [Diagonalization in parallel]\url{http://mathematica.stackexchange.com/questions/48416/diagonal ization-in-parallel} I would like to diagonalize one unitary non-sparse matrix of size 12870 with complex number entries (not symbols, this is really a numerical problem). Is is possible to make eigensystem run in ... - asked by lagoa (1 vote) ---------------------------- [Package FiniteFields]\url{http://mathematica.stackexchange.com/questions/48379/pack age-finitefields} In a Mathematica session, I evaluate: Needs["FiniteFields`"]; fld = GF[2]; Now, for example, I'd like to compute $a^3+a^5$ for $a \in{Z_2}$. The result I'd like to have is $0$, because in $Z_2$, ... - asked by user14545 (1 vote) ---------------------------- [When to use indexed variables]\url{http://mathematica.stackexchange.com/questions/48602/when-to -use-indexed-variables} Still learning the fundamentals of the language I would like to ask you what advantages there might be in writing something like: a[1] = 2; a[2] = 4; a[3] = "x"; It seems to me that it is always ... - asked by eldo (3 votes)