[sage-support] Re: plot

2010-04-22 Thread pallab
Ok. I got it, it is a python issue. May be this is the better way to do things !! :) On Apr 22, 3:46 pm, Jason Grout wrote: > On 04/22/2010 04:13 PM, pallab wrote: > > > Sorry I did not make it clear. I just defined S as > > > var('S') > > At=S*x > > S=

[sage-support] Re: plot

2010-04-22 Thread pallab
On Apr 22, 7:26 am, Jason Grout wrote: > On 04/22/2010 06:02 AM, pallab wrote: > > > Thanks for your answer, it seems complicated :). I think it would have > > been much easier if there is a way to specify the plot variables in > > plots. > > > On Apr 22, 2:5

[sage-support] Re: plot

2010-04-22 Thread pallab
Thanks for your answer, it seems complicated :). I think it would have been much easier if there is a way to specify the plot variables in plots. On Apr 22, 2:58 am, Mike Hansen wrote: > On Thu, Apr 22, 2010 at 2:46 AM, pallab wrote: > > How to specify variables in a plot. Say I want

[sage-support] plot

2010-04-22 Thread pallab
How to specify variables in a plot. Say I want something like, At=S*x S=4 plot(At,0,2) Question is that how to instruct Sage that I want to plot against 'x'. In Mathematica this is conveniently done by Plot[At,{x,0,2}] -- To post to this group, send email to sage-support@googlegroups.com To u

[sage-support] Re: derivative instance

2010-04-04 Thread pallab
Thanks. Will do. On Apr 3, 12:19 pm, Alec Mihailovs wrote: > On Apr 3, 2:32 pm, pallab wrote: > > > Is there any way to check whether a symbolic expression is a > > derivative. Like, > > > isinstance(diff(f(x),x),"what to put?") > > > gives "

[sage-support] Re: operands and expresssion

2010-04-03 Thread pallab
I got it :), thanks. On Apr 3, 11:34 am, Mike Hansen wrote: > On Sat, Apr 3, 2010 at 11:15 AM, pallab wrote: > > let us do, > > > f=function('f',x) > > expr=f(x) > > expr.operands() > > > the out put is, > > > [x] > > > Is it

[sage-support] Re: derivative instance

2010-04-03 Thread pallab
I mean... I do not know. If it is already evaluated to cos(x) then it should be false (not *true*). current "sympy" gives false, I think I would go with it. On Apr 3, 11:51 am, pallab wrote: > > > On Apr 3, 11:36 am, "ma...@mendelu.cz" wrote: > > > What k

[sage-support] Re: derivative instance

2010-04-03 Thread pallab
e(diff(sin(x),x),"what to put?") > > Robert > > On 3 dub, 20:32, pallab wrote: > > > Is there any way to check whether a symbolic expression is a > > derivative. Like, > > > isinstance(diff(f(x),x),"what to put?") > > > gives "True"

[sage-support] derivative instance

2010-04-03 Thread pallab
Is there any way to check whether a symbolic expression is a derivative. Like, isinstance(diff(f(x),x),"what to put?") gives "True" and isinstance(f(x),"what to put?") gives false, assuming f is not a derivative itself. -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] operands and expresssion

2010-04-03 Thread pallab
let us do, f=function('f',x) expr=f(x) expr.operands() the out put is, [x] Is it a bug?, I expect [f(x)]. using, f=function('f',x) expr=2*f(x) expr.operands() correctly gives, [f(x),2] -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, se

[sage-support] Re: ndsolve??

2010-04-01 Thread pallab
:T.y_0=trans_bc(eqn2,bc,f(x),x,0) File "", line 1, in File "/tmp/tmpKxA_KC/___code___.py", line 11, in T.ode_solve(t_span=[_sage_const_0 ,_sage_const_1 ],num_points=_sage_const_100 ) File "", line 1, in File "ode.pyx", line 531, in sage.gsl.

[sage-support] undefined substitution

2010-03-31 Thread pallab
Is it possible to define substitution rule with undefined variables ? like, s={y:x} where y and x are yet undefined. thanks, Pallab -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For

[sage-support] Re: substitute_function()

2010-03-30 Thread pallab
integrate(f(t),t,t2,t1).substitute({f(t):x}) will do. On Mar 30, 3:22 am, Tobias Katz wrote: > When I use substitute_function to declare a function within an existing > equation, I get the following message: > > DeprecationWarning: Substitution using function-call syntax and unnamed > arguments

[sage-support] Re: ndsolve??

2010-03-29 Thread pallab
elp. > Best wishes, > Rajeev > > On Mar 26, 11:06 am, dabu wrote: > > > Hi, > > Many thanks. I will try to have a look. > > best, > > Pallab > > On Mar 25, 1:05 pm, Jason Grout wrote: > > > > On 03/25/2010 10:25 AM, dabu wrote: > > > >