Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Browsing all 3 articles
Browse latest View live

Answer by niles for Hello, I have the following code:def f(a,b,c,x): xtemp=a...

A [lambda function](http://www.secnetix.de/olli/Python/lambda_functions.hawk) might be the quickest workaround: plot(lambda t: f(10000000,1,0.01,t),3,20) And if you don't want to get the deprecation...

View Article


Comment by Lynda for Hello, I have the following code:def f(a,b,c,x): xtemp=a...

Thank you Niles it works well for my needs

View Article

Variable range()

Hello, I have the following code: def f(a,b,c,x): xtemp=a for i in range(b,x): xtemp=xtemp-xtemp*c return xtemp var('t') plot(f(10000000,1,0.01,t),3,20) and got the error TypeError: range() integer end...

View Article
Browsing all 3 articles
Browse latest View live