11-11-2017 05:52 PM - edited 11-11-2017 06:06 PM
I'm given these two equations:
11-12-2017 07:02 AM
You asked, "how do I account for the [-infinity, infinity] part?" Here is a hint: What is the range of the expression
uniform*pi - pi/2 ?
Ask yourself how the TAN function behaves on this interval.
For more about the inverse CDF method of simulating data, see "The inverse CDF method for simulating from a distribution."