[sage-support] Re: Integral problems

2008-09-15 Thread David Joyner
On Mon, Sep 15, 2008 at 1:06 PM, Sand Wraith <[EMAIL PROTECTED]> wrote: > > i've find anothe way to solve my problems with rect-function: > rect=lambda x: Piecewise([ > [(-infinity,-1),(lambda x:0)], > [(- 1, 1),(lambda x:1)], > [( 1, infinity),(lambda x:0)] > ])(x); > > now: > plot(rect,-4,4) > w

[sage-support] Re: Integral problems

2008-09-15 Thread Sand Wraith
i've find anothe way to solve my problems with rect-function: rect=lambda x: Piecewise([ [(-infinity,-1),(lambda x:0)], [(- 1, 1),(lambda x:1)], [( 1, infinity),(lambda x:0)] ])(x); now: plot(rect,-4,4) works, and: f=lambda x: rect(x)*x^2; plot(f,-4,4) works too :-) but now if want to use my fun

[sage-support] Re: Integral problems

2008-09-15 Thread David Joyner
On Mon, Sep 15, 2008 at 11:10 AM, Sand Wraith <[EMAIL PROTECTED]> wrote: > > > > On Sep 13, 2:35 am, Jason Merrill <[EMAIL PROTECTED]> wrote: >> On Sep 12, 4:48 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: >> >> > Hi all! Help please again :-) >> >> > here is worksheet describes my problem: >> >> >h

[sage-support] Re: Integral problems

2008-09-15 Thread Sand Wraith
On Sep 13, 2:35 am, Jason Merrill <[EMAIL PROTECTED]> wrote: > On Sep 12, 4:48 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > > > Hi all! Help please again :-) > > > here is worksheet describes my problem: > > >http://75.75.6.176/home/pub/8/ > > > so, at the last stem i have wrong result: 0 instea

[sage-support] Re: Integral problems

2008-09-13 Thread Sand Wraith
Thank you, i shell read more about piecewise, :-) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com

[sage-support] Re: Integral problems

2008-09-12 Thread Jason Merrill
On Sep 12, 4:48 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > Hi all! Help please again :-) > > here is worksheet describes my problem: > > http://75.75.6.176/home/pub/8/ > > so, at the last stem i have wrong result: 0 instead of 2/3. > > what i am doing wrong? It looks like there are a few proble