I need help with this plot, which Mathematica is plotting it incorrectly, spitting out a discontinuous function. The function of interest is attached. It is simply unity, which should show a continuous and horizontal line.
I would be grateful if you’d help me see why Mathematica is plotting it incorrectly.
Thank you for your response. I was wondering you’d kindly help me fix the discontinuity in this function named “corrfunc” (attached) in the notebook. In numerous literature, corrfunc should be continuous, but as you can see Mathematica shows otherwise, which is wrong.
In the notebook, the pink colored input is just numbers (e.g., frequency, time, and temperature) in the right units. The blue colored cell represents parts of corrfunc. The yellow colored part defines corrfunc. My suspension is that Log expression “g” (turns into sqaure root when dividing by “2” in the exponential) in corrfunc. As you the notebook shows when removing the factor 2 from g, the discontinuity is lifted.
I would gratefully appreciate your input as to how to fix this.
Thank you for your response so promptly. I plotted the function g//Re and it was continuous. With Exp[g/2] you are basically taking the square root of g, and the Log is gone due to the exponential. As such, it is only square root of g with neither Log nor Exp.