I have the little program:
P = function('P')
x,y = var('x y')
def S(x):
return sum(P(x,y),y,0,1)
S(x)
It returns:
P(x, 1) + P(x, 0)
Now, any idea on how to assign particular values to P(x,y) and return S(x) accordingly?
| 1 | initial version |
I have the little program:
P = function('P')
x,y = var('x y')
def S(x):
return sum(P(x,y),y,0,1)
S(x)
It returns:
P(x, 1) + P(x, 0)
Now, any idea on how to assign particular values to P(x,y) and return S(x) accordingly?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.