Hi guys(adsbygoogle = window.adsbygoogle || []).push({});

Take a look at

This just gives me a uniform plot. Why does the peak at the origin not show up?Code (Text):DensityPlot[If[x == 0 && y == 0, 1, 0], {x, -1, 1}, {y, -1, 1}]

Sincerely,

Niles.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Plotting piecewise functions

**Physics Forums | Science Articles, Homework Help, Discussion**