[sage-support] Re: Integration of piecewise function

2009-12-09 Thread Sand Wraith
ssion_number = -1 > -> 1447                 raise TypeError, x >    1448         self._session_number = parent._session_number >    1449 > > TypeError: Computation failed since Maxima requested additional > constraints (try the command 'assume(x>0)' before integ

[sage-support] Integration of piecewise function

2009-12-08 Thread Sand Wraith
Hello, there is signal function: signal = Piecewise([ [(0,5), cos(2*pi*1*x) ], [(5,10), cos(2*pi*2.5*x) ], ]) And window function: window = Piecewise([[(-1,1),1]]) And the result function: r=window*signal How can I integrate it now? I'am trying: r.integral(definite=True) but it leads to error

[sage-support] Error: symbolic Ring still using old coercion framework

2009-10-12 Thread Sand Wraith
Hi all! I am trying to do simple convolution: x = PolynomialRing(QQ,'x').gen() f=piecewise([((-1,3),1*x^0)]) g=piecewise([((0,5),exp(-x))]) r=g.convolution(f) and got this error message: RuntimeError: Symbolic Ring still using old coercion framework What is wrong with it? --~--~-~--~-

[sage-support] Building problems on ArchLinux

2009-09-14 Thread Sand Wraith
Hi all! I'am trying to use sage on ArchLinux server. There is not enough space on /home, so i create a directory /ubin/sage and unpack sage in there: drwxr-xr-x 3 operator users 4.0K 2009-09-14 22:33 sage then i'am trying to run "make" command, and of this it's output here: ---

[sage-support] Find maximum on interval for result of diff() function.

2009-03-14 Thread Sand Wraith
f(x)=exp(-x^2) g=diff(f) then I'd like to find maximum of g function on interval: find_maximum_on_interval(g,0,1) (-1.30156325204e-08, 6.5078162602101728e-09) but for: find_maximum_on_interval(g,0,3) I've got error: Traceback (click to the left for traceback) ... TypeError: cannot coerce type ''

[sage-support] More marks on axes?

2009-03-08 Thread Sand Wraith
Hello, plot(lambda f:f,0.0003,0.0004) The graph has only two signed marks on the axes. How can I tell sage to make more? There are still a lot of free space. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] Re: question about solve() function

2009-01-10 Thread Sand Wraith
thank you! On Jan 9, 7:27 pm, "William Stein" wrote: > On Fri, Jan 9, 2009 at 3:49 AM, Sand Wraith wrote: > > > Hi! > > > Is it possible to get order of root of equation? For example equation: > > > f(x)=(x+1)^2 > > and it's solutio

[sage-support] question about solve() function

2009-01-09 Thread Sand Wraith
Hi! Is it possible to get order of root of equation? For example equation: f(x)=(x+1)^2 and it's solution "solve(f,x)" will be "[x == -1]", but this is not perfect clear, because x==-1 have second order. This equation actually must have two same roots: [x == -1,x == -1]. --~--~-~--~

[sage-support] Using HTML and plot function

2008-12-26 Thread Sand Wraith
Hi all! How to use both html and graphics? for example insert plot(sin,0,4) in html-tabe? i am trying: html('sin(x):') html(myimage) html('') but it gives table with text "sin: Graphics object consisting of 1 graphics primitive".. i'd like to see image, not text. Thank you. --~--~-~-

[sage-support] show(P,xmin=0) shows area below Y=0 line

2008-12-14 Thread Sand Wraith
Hi! I want to plot a few lines: Line=line([]) for i in [-10..3]: Line+=line([[0,0],[1.1+i/10,1.1]]) and show it: show(Line,xmin=0) but output contains area below X axis. :-\ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroup

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
Thank you! Than you all so much! It was so difficult to continue my research without it! And I am so glad Sage project have real support :-) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, sen

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
this round(H.substitute(f=4).abs(),4) give same error again... then this: round(RDF(H.substitute(f=4).abs()),4) takes so much time, can't wait... On Dec 9, 10:42 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > you mean for f? this: > > round(H.substitute(f=1),4) > &

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
you mean for f? this: round(H.substitute(f=1),4) gives type error again :-( On Dec 9, 9:51 pm, Tim Lahey <[EMAIL PROTECTED]> wrote: > On Dec 9, 2008, at 1:46 PM, Sand Wraith wrote: > > > > > > > thank you! )) > > > but I need to use my values, now ju

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
"H p Pole1 Pole2 Pole3 Ts z > f") > p = (2/Ts)*(z-1)/(z+1) > z = exp(I*2*pi*Ts*f) > H = (p^3)/((p-Pole1)*(p-Pole2)*(p-Pole3)) > show(H) > > The only difference is that I have declared the variables in the first > line. Hope that helps. > > On Dec 8, 5:58 pm,

[sage-support] How to replace variables in function?

2008-12-08 Thread Sand Wraith
Hi all! Please help me to replace variables: I have this function: H(p)=(p^3)/((p-Pole1)*(p-Pole2)*(p-Pole3)) where Pole1,Pole2,Pole3 - complex: r=2*2*pi Pole1=r*exp(I*2*pi/3) Pole2=-r Pole3=r*exp(-I*2*pi/3) Ts=0.1 And I need to make a few replaces: need to replace "p" with "(2/Ts)*(z-1)/(z+

[sage-support] Cool firefox extensions?

2008-11-22 Thread Sand Wraith
Hi all! Does anyone know any cool extensions for firefox? I know only ItIsAllText... For example i'd like to have syntax highlighting? (into the firefox text areas) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubsc

[sage-support] jsMath failed to set up properly (error code -7)

2008-11-13 Thread Sand Wraith
Hi all! I am running SAGE Version 3.1.4 on my XUbuntu ( 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux), and then executing show("Test") in sage notebook i have this error message: >It looks like jsMath failed to set up properly (error code -7). I will try to >keep going,

[sage-support] Re: Unexpected changes in worksheet name.

2008-10-07 Thread Sand Wraith
So am i wrong? or it is a bug --~--~-~--~~~---~--~~ 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/group/sage-

[sage-support] Unexpected changes in worksheet name.

2008-10-05 Thread Sand Wraith
Hi! Here is my problem: 1. Creating a new worksheet, 2. Clicking at "Unnamed" in the title of page and entering new name "Test & Test: Test" 3. Save&Quit 4. Entering to "Test & Test: Test" worksheet 5. Save&Quit again 6 And name of this worksheet changed to:"Test &amp; Test : Test" What is

[sage-support] Re: Can not delete worksheet.

2008-09-24 Thread Sand Wraith
Thank you )) now its OK On Sep 21, 5:25 pm, "Timothy Clemans" <[EMAIL PROTECTED]> wrote: > Hi, > > This and other bugs have been fixed in the latest release, 3.1.2. > > Timothy > > On Sun, Sep 21, 2008 at 7:23 AM, Sand Wraith <[EMAIL PROTECTED]>

[sage-support] Re: Using Fourier transform in sage.

2008-09-24 Thread Sand Wraith
Thank you! :-) > sage: v = vector(CDF,[1..10]); v > (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0) > sage: w = v.fft(); w > (55.0, -5.0 + 15.3884176859*I, -5.0 + 6.88190960236*I, -5.0 + > 3.63271264003*I, -5.0 + 1.62459848116*I, -5.0, -5.0 - 1.62459848116*I, > -5.0 - 3.63271264003*I, -5.0 -

[sage-support] Can not delete worksheet.

2008-09-21 Thread Sand Wraith
Hi! Using sage: SAGE Version 3.1.1, Release Date: 2008-08-17 and can not delete worksheet: 1) select worksheet "test" 2) press "delete" 3) now i can see "test" worksheet in Trash, 4) press "sign out" 5) stop sage 6) launch sage again 7) and now i see "test" worksheet in active section again! --

[sage-support] Using Fourier transform in sage.

2008-09-18 Thread Sand Wraith
Hi all! Does anyone know where to find guide or example how to use Fourier transform and inverse Fourier transform in sage? Thanks. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Re: Integral problems

2008-09-15 Thread Sand Wraith
> 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 :-) &

[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/ > &g

[sage-support] Accessing spline like function?

2008-09-13 Thread Sand Wraith
Hello, tell please, how to access spline like function? for example i have: p=list(); p.append([1,1]); p.append([2,1.5]); p.append([3,2]); p.append([4,0]); s=spline(p) and i can get value of s in any point: s(1) or s(3) etc. so, i want to use this spline like function: g(x)=s(x)+1; or def g(x)

[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] Integral problems

2008-09-12 Thread Sand Wraith
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? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@google

[sage-support] Re: Wrong plotting!

2008-09-10 Thread Sand Wraith
On Sep 9, 1:29 am, Jason Merrill <[EMAIL PROTECTED]> wrote: > On Sep 8, 4:12 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > > > > > Hi all! > > > I do not know - it is an bug, or my mistake. I am trying to plot sum > > of a few same functions: &g

[sage-support] Wrong plotting!

2008-09-08 Thread Sand Wraith
Hi all! I do not know - it is an bug, or my mistake. I am trying to plot sum of a few same functions: This is my function: B=10*sqrt( pi)/7; b=pi/7; c(f)=B*exp(-(b*f)^2); plot(c(f),(f,-5,5)); in the output i see correct graphic. Then i have define a function to calculate sum: def specsum(x,Fd

[sage-support] Re: X range (plotting).

2008-05-01 Thread Sand Wraith
William Stein wrote: > On Thu, May 1, 2008 at 8:31 AM, Sand Wraith <[EMAIL PROTECTED]> wrote: > > > > > > Hi! I use notebooks, and for example i want to plot cosine function: > > > > plot(cos(x),1,2) > > > > in output i see graphic which ha

[sage-support] X range (plotting).

2008-05-01 Thread Sand Wraith
Hi! I use notebooks, and for example i want to plot cosine function: plot(cos(x),1,2) in output i see graphic which have x in range near [-1.5,2.5]. but there is no information for me when x is in interval [-1.5,1] and [2,2.5], so i do not want to see it in output graphic. and another example: