With the help of
sympy.stats.PowerFunction() method, we can get the continuous random variable which represents the Power Function distribution.
sympy.stats.PowerFunction(name, alpha, a, b)
Where, a, b and alpha are real number.
Return : Return the continuous random variable.
Example #1 :
In this example we can see that by using
sympy.stats.PowerFunction() method, we are able to get the continuous random variable representing power function distribution by using this method.
(-2*a + 2*z)/(-a + b)**2
Example #2 :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.