I am in the process of learning Sage, coming from Maxima (and Mathematica,
which I do not like much...).
Cut'n'pastes from a notebook running on sagenb.org
version()
version()
==>
'Sage Version 5.4, Release Date: 2012-11-09'
var('t,a,b,d')
## beta density
dbeta(t,a,b)=t^(a-1)*(1-t)^(b-1)/bet
Hi, all,
I want to create a "function" within a function, and return it as the value of
the latter function, something along the lines of:
def g(a,b,c):
var('x y')
f = a*x^2 + b*y + c
return f
This works, almost. I have to invoke the return value as a function returning
a functio