On Jun 10, 10:07 am, Stan Schymanski <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> When I try to display some of the documentation notebooks, they turn
> out partly or wholly blank in Firefox, especially the long ones (e.g.
> 5.1 2d plotting).
>
> They work fine in Safari, so perhaps this is more a
Thanks, this was helpful
>
> Sometimes you can use 'assume' to get the behavior you want, however. In
> this case, for example:
>
> sage: var('vgs vt n')
> (vgs, vt, n)
> sage: f = (vgs - vt)^n
> sage: assume(vgs > vt)
> sage: f^(1/n)
> vgs - vt
> sage: forget()
> sage: f^(1/n)
> ((vgs - vt)^n)
I don't think composition of piecewise functions has been implemented yet.
2008/6/11 houp <[EMAIL PROTECTED]>:
>
> Hello.
>
> I'd like to have some simple piecewise defined function like:
> f = Piecewise([[[0,1],1]])
> and the composite it with some other function like
> h = x - 1
>
> I've tried s
Hello.
I'd like to have some simple piecewise defined function like:
f = Piecewise([[[0,1],1]])
and the composite it with some other function like
h = x - 1
I've tried somethine like this:
f1 = lambda x:1
f2 = lambda x:x+2
f = piecewise([[[0,1],f1]])
f(f2)
and it fails with:
Traceback (most r
I forgot the code in the last post:
def li(z): #def log integral for real and complex variables
if z in RR and z >= 2: #check if real number greater than 2
return Li(z) +
1.04516378011749278484459194613136522615578151 #adjust for offset
in SAGE def
elif z == 0:
return 0
I made a few modifications so it now works everywhere but (0,1)
On Jun 11, 1:45 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 11, 2008 at 8:07 AM, M. Yurko <[EMAIL PROTECTED]> wrote:
>
> > O.K. I defined li(x) as follows:
>
> > def li(z): #def log integral for real and complex vari
On Wed, Jun 11, 2008 at 8:07 AM, M. Yurko <[EMAIL PROTECTED]> wrote:
>
> O.K. I defined li(x) as follows:
>
> def li(z): #def log integral for real and complex variables
>if z in RR and z >= 2: #check if real number greater than 2
>return Li(z) +
> 1.0451637801174927848445919461313
O.K. I defined li(x) as follows:
def li(z): #def log integral for real and complex variables
if z in RR and z >= 2: #check if real number greater than 2
return Li(z) +
1.04516378011749278484459194613136522615578151 #adjust for offset
in SAGE def
elif z == 1:
return -in
O.K. I defined li(x) as follows:
def li(z): #def log integral for real and complex variables
if z in RR and z >= 2: #check if real number greater than 2
return Li(z) +
1.04516378011749278484459194613136522615578151 #adjust for offset
in SAGE def
elif z == 1:
return -in
On Wed, Jun 11, 2008 at 7:28 AM, John H Palmieri <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jun 10, 9:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
>> On Tue, Jun 10, 2008 at 9:35 PM, John H Palmieri <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>>
>> > On Jun 10, 7:12 pm, "William Stein" <[EMAIL PROTECTE
On Jun 10, 9:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 10, 2008 at 9:35 PM, John H Palmieri <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Jun 10, 7:12 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> >> On Wed, May 28, 2008 at 2:03 PM, John H Palmieri <[EMAIL PROTECTED]> wrot
Sure. My current code is a bit messy, so I'll clean it up and make an
example. However, one thing to note is that I defined my Li(x)
starting from 0 ("American" convention), while the current Li(x) in
SAGE (for positive reals) is defined starting at 2 ("offset").
On Jun 10, 11:02 pm, "William Ste
12 matches
Mail list logo