File:Beta function contour plot.png
Summary
Category:Created with SageMath#Beta%20function%20contour%20plot.png| Description |
English: A contour plot of the beta function. Created using the following Sage code:
from math import isnan
from scipy import stats
def beta2(x, y):
return (gamma(x) * gamma(y)) / gamma(x + y)
vals = [beta2(a, b) for a in srange(-2, 2, 0.2) for b in srange(-2, 2, 0.2)] # test values to work out contours
filtered = filter(lambda num: (not isnan(num)) and (-1000 < num < 1000), vals)
contours = stats.mstats.mquantiles(filtered, srange(0, 1, 1/15))
contour_plot(beta2, (x, -3, 3), (y, -3, 3), cmap='rainbow', contours=contours)
|
| Date | |
| Source | Own work |
| Author | Eviatar Bach |
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
|