Johan Oudinet wrote:
> On Mon, Feb 23, 2009 at 1:25 PM, Stefanie Schmidt <[email protected]> wrote:
>> thank you for you quick answers! it works. but my example in my
>> previous mail was only a simplification of my real problem. your
>> answer works fine with my simplification. but I am not shure what to
>> do with my original problem. I want to plot a function of two
>> variables, but with one variable fixed. I have
>>
>> def g(f,s):
>>    ....
>>    (quiet long here with a lot of cases...)
>>
>> and I want to plot for example
>>
>> plot(g(x,90),48,51)
> 
> def h(x):
>   return g(x,90)
> 
> plot(h,48,51)
> 


Or:

plot(lambda x: g(x,90), (48, 51))

Or:

from functools import partial
h=partial(g,s=90)
plot(h, (48,51))

(see http://docs.python.org/library/functools.html)

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to