Special (beta) function shown as F1D
Source code name: "func_special.py"
Programming language: Python
Topic: Function/Special
DMelt Version 1. Last modified: 12/11/2015. License: Pro
https://datamelt.org/code/cache/func_special_1717.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.



from jhplot import *
from java.awt import Color

class beta(FNon):
   def value(self, v):
      from cern.jet.stat.Probability import beta
      return beta(self.p[0],self.p[1],v[0]) 

p=beta('β function',1,2) 
print p.dimension() 
print p.numberOfParameters()
print p.parameterNames()
print p.variableNames() 
print p.variableName(0)
p.setParameters([0.2,0.1])
print p.value([0.3])
f1=F1D(p,0.1,0.8)
f1.setPenWidth(3)
f1.setColor(Color.red)


c1 = HPlot('Special function')
c1.setGTitle('β function')
c1.visible()
c1.setAutoRange()
c1.draw(f1)


You see the box below because you did not login.