There is a command to calculate the probability distribution function.
I need to calculate the probability distribution density, for which I have to numerically find the integral of the first function. How can I record this in a new command?
\newcommand\PDF[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}
\newcommand\PDD[2]{int {1/(#2sqrt(2pi))exp(-((x-#1)^2)/(2#2^2))}} % ???
\newcommand\PDD[2]{int PDF} % ???
\integratemacro presented in my answer there: https://tex.stackexchange.com/a/662100/117050 – Skillmon Oct 30 '22 at 11:50