7.41 March 4, 2014
==================================
Top new questions this week:
==================================
[How can I add drop shadows and specular highlights to 2D
graphics?]\url{http://mathematica.stackexchange.com/questions/43186/how-can
-i-add-drop-shadows-and-specular-highlights-to-2d-graphics}
I thought I'd share some code in the form of a self-answered question,
but other answers are of course welcome.
Drop shadows are a familiar visual effect, giving the impression of a
graphical element ...
- asked by Simon Woods (26 votes), answered by Simon Woods (29 votes)
----------------------------
[Are greek symbols causing different
evaluation?]\url{http://mathematica.stackexchange.com/questions/43108/are-g
reek-symbols-causing-different-evaluation}
I've updated today to Mathematica 9.0.1.0 from version 8 and found
something that absolutely confuses me.
Let us define a piecewise function:
gr[x_, v1_, v2_, v3_, v4_, v5_] =
Piecewise[{{g, v1 ...
- asked by Mike (14 votes)
----------------------------
[How to make a function with its own options as well as passing options
to other
functions]\url{http://mathematica.stackexchange.com/questions/43088/how-to-
make-a-function-with-its-own-options-as-well-as-passing-options-to-other
> }
I have a function with many of its own options, but I would also like to
pass options to subfunctions using the FilterRules function. Here's a
simple example:
Options[pfunc] = {"test" -> True};
...
- asked by Jason B (11 votes), answered by rm -rf (8 votes)
----------------------------
[Why the Block command does not forget the $ContextPath
variable]\url{http://mathematica.stackexchange.com/questions/43137/why-the-
block-command-does-not-forget-the-contextpath-variable}
I do not understand this behavior:
method[args_] :=
(* forget the context path *)
Block[{$ContextPath},
(* should given nothing, right? *)
Print["cpath=", $ContextPath];
...
- asked by zorank (11 votes), answered by Szabolcs (8 votes)
----------------------------
[Third argument of
Compile]\url{http://mathematica.stackexchange.com/questions/43128/third-arg
ument-of-compile}
In his last comment on this answer, halirutan shows an example in which
the third argument of Compile does not have any effect. The example is
as follows.
cfu = Compile[{}, Module[{y = {}}, ...
- asked by Jacob Akkerboom (11 votes), answered by halirutan (5 votes)
----------------------------
[Plot Matlab
icon]\url{http://mathematica.stackexchange.com/questions/43012/plot-matlab-
icon}
I started to explore this on a whim and hasn't succeeded yet Some
introduction for the icon is found here but I can't understand it very
well. (I admit that, though playing with NDSolve a lot, I ...
- asked by xzczd (8 votes), answered by episanty (10 votes)
----------------------------
[Why does Plot[Hold[x], {x,0,1}]
work?]\url{http://mathematica.stackexchange.com/questions/43318/why-does-pl
otholdx-x-0-1-work}
It appears that, counter to my expectation, all of these (and probably
many others) seem to work fine:
Plot[Hold[x], {x, 0, 10}]
FindRoot[Hold[x^2 == 2], {x, 1}]
NMinimize[Hold[x^2], x]
I would ...
- asked by Szabolcs (8 votes), answered by Michael E2 (5 votes)
==================================
Greatest hits from previous weeks:
==================================
[Plotting the frequency spectrum of a data series using
Fourier]\url{http://mathematica.stackexchange.com/questions/18082/plotting-
the-frequency-spectrum-of-a-data-series-using-fourier}
testData = Table[N@Sin[500 x], {x, 0, 100}];
ListLinePlot[Abs[Fourier[testData]], PlotRange -> Full]
Gives me
Which I do not expect because the Fourier Transform is
FourierTransform[Sin[500 ...
- asked by Pickett (7 votes), answered by KennyColnago (8 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 (45 votes), answered by J.M. (41 votes)
==================================
Can you answer these?
==================================
[Is there a package or canonical way for writing test harnesses in
Mathematica?]\url{http://mathematica.stackexchange.com/questions/43014/is-t
here-a-package-or-canonical-way-for-writing-test-harnesses-in-mathematic
a}
I've written a complicated function foo.1
I'd now like to simplify this function's code, and later enhance it with
more features. With each change, however, I'd like to be confident that
I'm not ...
- asked by acheong87 (2 votes)
----------------------------
[Young Tableaux
Miscellanea]\url{http://mathematica.stackexchange.com/questions/43157/young
-tableaux-miscellanea}
I have a problem which is mostly neatly described by using Young
Tableaux. Mathematica seems to have these Tableaux built in, except
that the Tableaux function is only in Combinatorica. When I ...
- asked by evanb (2 votes)
----------------------------
[Assign a value to a variable without using Set or
SetDelayed?]\url{http://mathematica.stackexchange.com/questions/43306/assig
n-a-value-to-a-variable-without-using-set-or-setdelayed}
I supose probably yes, but at the end I assume that internally
mathematica has to use Set or SetDelayed. Am I right?
Background: I am developing a super simple phraser that takes a code
description ...
- asked by zorank (1 vote)