I plot a function for a spherically symmetric metric in RGTensor package written for Mathematica and for pressure profile I obtain a complicated plot.

enter image description here

But then as I Print[] the corresponding pressure profile the value is zero which contradicts the resultant plot. Does anyone know why this happens?


closed as off-topic by AccidentalFourierTransform, Emilio Pisanty, Kyle Kanos, Jon Custer, Yashas May 13 '17 at 1:53

  • This question does not appear to be about physics within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    $\begingroup$ I'm voting to close this question as off-topic because its not about physics. $\endgroup$ – AccidentalFourierTransform May 12 '17 at 17:27
  • 2
    $\begingroup$ Would Mathematica or Computational Science be a better home for this question? $\endgroup$ – Qmechanic May 12 '17 at 17:31
  • 2
    $\begingroup$ There is no contradiction. The plot is essentially the zero-function - have a look at the axes. $\endgroup$ – AccidentalFourierTransform May 12 '17 at 17:36

This is essentially impossible to answer conclusively without more context, but unless you actually intended to plot a quantity that was of the order of a few times $10^{-16}$ (which is roughly where the machine-error threshold normally sits), then your plot is essentially the zero function, and there is no contradiction there.

  • $\begingroup$ Thank you for your comments, I think you're right about the values on axes. But as I have had experience in plotting even smaller amounts which weren't zero this made me a little confused about this. And yes, I agree this question must have been asked in Mathematica page, sorry, I'm kinda new here. But again, thank you for answering. $\endgroup$ – Fatemeh May 14 '17 at 7:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.