My answer formats properly in the edit preview, but not in my browsers (Safari, Chrome on Mac). Any idea why "tensor" appears with asterisks and not in italics?
@MichaelE2 I fixed it for you. SE's markdown requires a space after a *. In other words, you can't style a substring of a string. I think the different view in the preview might be because it uses a slightly different markdown parser.
If you want to use latex there, might as well go all the way with: $\mathtt{TensorProduct}[tensor_1, tensor_2,\ldots]$ :)
I'm trying to simulate Fraunhofer diffraction by a single slit using DensityPlot
I run the code:
DensityPlot[(Sinc[β])^2, {β, -6 π, 6 π}, {y, -6 π, 6 π}, PlotPoints -> 200,
ColorFunction -> GrayLevel, AspectRatio -> 9/16, Frame :> False]
and get:
Which is great but I'd like ...
First of all, the color is well outside sRGB gamut. Secondly, white on the photo is a sensor artifact. Thirdly, color space handling and spectral colors in Mathematica leave lot to be desired. Lastly, when playing with linear intensities, one has to manually manage gamma correction, which is poorly implied for Mathematica graphics.
@halirutan Actually, I never had any programming problems that involved such hacks. The cause of my question was this thread on SO, and the findings I dug up.
@IstvánZachar We had kind of the same discussion here and decided to delete it completely because for the obvious reason that people earn their money by selling packages that they need to secure.