[sage-support] Re: Error with integrate

2015-11-19 Thread Matt Rissler
Thanks for debugging my code. Should have been (1-x)^(3-1). I'm blaming that on having a one-week old at home. On Thursday, November 19, 2015 at 10:31:10 AM UTC-6, Dima Pasechnik wrote: > > > > On Thursday, 19 November 2015 15:41:37 UTC, Matt Rissler wrote: >> >>

[sage-support] Error with integrate

2015-11-19 Thread Matt Rissler
integrate(x^(3-1)*(1-x)*(3-1),x,0,1) Why is this returning 1/6 and not 1/30? More generally why is integrate(x^(ai-1)*(1-x)*(bi-1),x,0,1) returning (bi - 1)/(ai^2 + ai) and not beta(ai,bi) as it should? Running this on SMC. -- You received this message because you are subscribed to the Goog

[sage-support] Re: z-range issues in implicit_plot3d

2009-11-08 Thread Matt Rissler
That's line 932 On Nov 8, 9:38 pm, Matt Rissler wrote: > Poking through the code > > I think line 922 in sage/plot/plot3d/implicit_surface.pyx should read: > > self.zrange = ranges[2][:2] > > I'd submit the patch myself, but I'd have to create a login an

[sage-support] Re: z-range issues in implicit_plot3d

2009-11-08 Thread Matt Rissler
Poking through the code I think line 922 in sage/plot/plot3d/implicit_surface.pyx should read: self.zrange = ranges[2][:2] I'd submit the patch myself, but I'd have to create a login and figure out the versioning system. Someday, but not today. Matt On Oct 24, 11:34 pm, Micah wrote: > Greeti

[sage-support] echelon_form of matrix with a symbol

2009-10-15 Thread Matt Rissler
Basically, I'm having student look for the x that makes the matrix singular, or the columns linearly dependent, or ... However Sage behaves like so: sage: A=matrix([[0,1,1],[2,2,-2],[-1,x,3]]) sage: A [ 0 1 1] [ 2 2 -2] [-1 x 3] sage: A.echelon_form() [1 0 0] [0 1 0] [0 0 1] Is there anyw

[sage-support] Re: max and min evaluating symbolic expressions too soon

2009-09-24 Thread Matt Rissler
I finally got back to looking at this thread. That does work, though it breaks calling plot3d with the following format: max_symbolic=MaxSymbolic() f(x,y)=sqrt(max_symbolic(9-x^2-y^2,0)) plot3d(f(x,y),(x,-3,3),(y,-3,3)) However plot3d(f,(-3,3),(-3,3)) works fine. So it's a fine work around.

[sage-support] max and min evaluating symbolic expressions too soon

2009-09-14 Thread Matt Rissler
So I'm trying to get around the fact that plotting half of an ellipsoid with plot3d is nigh impossible, x,y=var('x,y') plot3d(sqrt(1-(x^2/9+y^2/4)),(x,-3,3),(y,-2,2)) but I stumbled across this problem in the process. Since the problem is that we can't evaluate at some points lets replace them.

[sage-support] Setting the bounding box on plot3d

2008-09-29 Thread Matt Rissler
Is there any way for the user to set the bounding box on plot3d? The basic idea is I don't want the full z-values for the function and would like to crop some of them off. The best I've come up with so far without hunting through source files is: y=var('y') f=lambda x,y: min(x^2+y^2,4); plot3d(