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:
>>
>>
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
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
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
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
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.
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.
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(