Re: [sage-support] Re: cancellation in fraction fields

2010-01-24 Thread Mike Hansen
On Sun, Jan 24, 2010 at 8:40 PM, Stefan Boettner wrote: > That sort of gets my expressions nicer. It doesn't quite solve the issue with > the computation time but works for now. Did working over Frac(ZZ['x,y']) speed things up? --Mike -- To post to this group, send email to sage-support@googl

Re: [sage-support] Re: cancellation in fraction fields

2010-01-24 Thread Stefan Boettner
That sort of gets my expressions nicer. It doesn't quite solve the issue with the computation time but works for now. Would it be too difficult to have such fractions normalized automatically to some normal form, e.g. monic denominator polynomial, if the coefficient ring is a field? Thanks, St

Re: [sage-support] bug in numerical approximation?

2010-01-24 Thread Felix Lenders
Alex Raichev schrieb: Hi, > Am i doing something wrong, or does the example below demonstrate a > bug in Sage's n() function? > sage: a= gamma(1/3) > sage: a.n() > 2.67893853470775 > sage: f= a*x > sage: c=f.coefficients(); c > [[gamma(1/3), 1]] > sage: c[0][0].n() >

Re: [sage-support] plot/show bug in plotting of DiGraphs for macs?

2010-01-24 Thread Minh Nguyen
Hi David, On Mon, Jan 25, 2010 at 11:08 AM, David Joyner wrote: > Is this a bug? I don't think so. Using www.sagenb.org, I got plots [1] of the given digraphs. On bsd.math, I got similar results [2]. In both cases, some of the images are cropped so some part of a vertex is cut off. Ticket #72

[sage-support] plot/show bug in plotting of DiGraphs for macs?

2010-01-24 Thread David Joyner
Hi: The latest bug fix for plotting a digraph seems to be http://trac.sagemath.org/sage_trac/ticket/5620 Using a 10.6.2 mac (and sage-4.3.1.a5), I am finding that (for example) sage: D = DiGraph( { "A": ["B","C"], "B": ["C","D"], "C": ["B","D","E"], "D": ["E"], "E": ["D"]} ) sage: D.plot() yield

Re: [sage-support] Re: cancellation in fraction fields

2010-01-24 Thread William Stein
On Sun, Jan 24, 2010 at 3:45 PM, Yann wrote: > > > On Jan 24, 9:17 pm, William Stein wrote: >> >> Here's a potentially good way to do this right now  :-) >> >> Define this function: >> >> def normalize_denoms(f): >>     n, d = f.numerator(), f.denominator() >>     a = [vector(x.coefficients()).de

[sage-support] Re: cancellation in fraction fields

2010-01-24 Thread Yann
On Jan 24, 9:17 pm, William Stein wrote: > > Here's a potentially good way to do this right now  :-) > > Define this function: > > def normalize_denoms(f): >     n, d = f.numerator(), f.denominator() >     a = [vector(x.coefficients()).denominator() for x in [n,d]] >     return (n*a[0])/(d*a[1])

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 12:39 pm, Harald Schilly wrote: > On Jan 24, 6:50 pm, gsever wrote: > > > Added as first wiki entry :) > > No problem, and i hope it's ok that i pushed you to do it ;) > > http://twitter.com/sagemath/status/8158003421 It was my pleasure Harald. Sage is one of the well designed appr

[sage-support] bug in numerical approximation?

2010-01-24 Thread Alex Raichev
Hi all: Am i doing something wrong, or does the example below demonstrate a bug in Sage's n() function? Alex -- | Sage Version 4.3, Release Date: 2009-12-24 | | Type notebook() for the GUI, and license()

[sage-support] Error while integrating a form of gamma distribution

2010-01-24 Thread gsever
Hello, Please see my published test notebook at: http://www.sagenb.org/home/pub/1408/ variable of integration must be a simple or subscripted variable I can get this form integrating properly, and resulting with expected gamma(nu)/(alpha^nu*s) f(x) = (mu/s)*x**(nu*mu-1)*exp(-alpha*x**mu) s = in

[sage-support] Re: Getting 'partial' rather than 'D' notation for derivatives

2010-01-24 Thread Nils Bruin
On Jan 24, 9:29 am, Mike Witt wrote: > To give the 'partial' notation rather than 'D' notation. > I hope that makes sense. The idea is that I'd like something on > the order of "\frac{\partial}{\partial y} foo" ... > > Anyway, I can't find the information about this now, and I wonder > if someone

[sage-support] axis labels using sagenb

2010-01-24 Thread Dan Aldrich
Is there any flexibility on where axis labels are placed? I'd like to see them under the x axis and vertically along the y. Seems like there should be more than just axes_labels= tag. Thanks, -d -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this gro

Re: [sage-support] cancellation in fraction fields

2010-01-24 Thread William Stein
On Sun, Jan 24, 2010 at 12:08 PM, Mike Hansen wrote: > Hello, > > On Sun, Jan 24, 2010 at 12:02 PM, Stefan Boettner wrote: >> I'm working with fraction fields of multivariate polynomials ring with >> coefficients in Q. My question is, how do I get cancellation between >> numerator and denominato

Re: [sage-support] cancellation in fraction fields

2010-01-24 Thread Mike Hansen
Hello, On Sun, Jan 24, 2010 at 12:02 PM, Stefan Boettner wrote: > I'm working with fraction fields of multivariate polynomials ring with > coefficients in Q. My question is, how do I get cancellation between > numerator and denominator coefficients to work? > > Example: > > R.=PolynomialRing(QQ,

[sage-support] cancellation in fraction fields

2010-01-24 Thread Stefan Boettner
Hi, I'm working with fraction fields of multivariate polynomials ring with coefficients in Q. My question is, how do I get cancellation between numerator and denominator coefficients to work? Example: R.=PolynomialRing(QQ, 2) F=FractionField(R) f=(x/2)/(y/2) My question is, how do I get the r

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
On Jan 24, 6:50 pm, gsever wrote: > Added as first wiki entry :) No problem, and i hope it's ok that i pushed you to do it ;) http://twitter.com/sagemath/status/8158003421 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 11:14 am, Harald Schilly wrote: > On Jan 24, 5:06 pm, gsever wrote: > > > Thanks this helped. Adding a plt.clf() clear the figure after each > > plot update. > > no problem, and i looked for a .reset or similar, thanks for the .clr > ()! > Can you post this somewhere to the wiki.sage

[sage-support] Getting 'partial' rather than 'D' notation for derivatives

2010-01-24 Thread Mike Witt
It seems to me I saw information somewhere on how to get: foo=function('foo',x,y) latex(diff(foo,y)) To give the 'partial' notation rather than 'D' notation. I hope that makes sense. The idea is that I'd like something on the order of "\frac{\partial}{\partial y} foo" ... Anyway, I can't fi

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
On Jan 24, 5:06 pm, gsever wrote: > Thanks this helped. Adding a plt.clf() clear the figure after each > plot update. no problem, and i looked for a .reset or similar, thanks for the .clr ()! Can you post this somewhere to the wiki.sagemath.org/interact/graphics (or a better topic?) as an example

Re: [sage-support] SAGE gives the following ERROR when working with strings? Is this normal.

2010-01-24 Thread Minh Nguyen
Hi Alex, On Mon, Jan 25, 2010 at 3:48 AM, Alex P wrote: > | Sage Version 4.2.1, Release Date: 2009-11-14 | > Hi, > I was trying the code below and I was wondering how not to get an > ERROR. > ~Alex > > > | Type notebook() for the GUI, and license() for information.|

[sage-support] SAGE gives the following ERROR when working with strings? Is this normal.

2010-01-24 Thread Alex P
| Sage Version 4.2.1, Release Date: 2009-11-14 | Hi, I was trying the code below and I was wondering how not to get an ERROR. ~Alex | Type notebook() for the GUI, and license() for information.| -- s

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 5:49 am, Harald Schilly wrote: > Last line must be plt.savefig('plt.png') and not .show() because you > are on a website and saved files are shown. When I tried it first, it > didn't update the image because it was somehow locally cached. On > second try it worked ... > > H Thanks t

[sage-support] Re: installation problems for Sage binary on Mac

2010-01-24 Thread John H Palmieri
On Jan 24, 6:38 am, "davidgal...@gmail.com" wrote: > I downloaded > > sage-4.3.1-OSX-10.6-i386-Darwin.dmg This is for OS X 10.6. If you're running OS X 10.5.8, you shouldn't expect this one to work for you. -- John -- To post to this group, send email to sage-support@googlegroups.com To unsub

[sage-support] Re: installation problems for Sage binary on Mac

2010-01-24 Thread davidgal...@gmail.com
I downloaded sage-4.3.1-OSX-10.6-i386-Darwin.dmg copied the contents to my disk and tried to execute sage. I received the messages -- | Sage Version 4.3.1, Release Date: 2010-01-20 | | Type notebook() for t

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
Last line must be plt.savefig('plt.png') and not .show() because you are on a website and saved files are shown. When I tried it first, it didn't update the image because it was somehow locally cached. On second try it worked ... H -- To post to this group, send email to sage-support@googlegroup

Re: [sage-support] installation problems for Sage binary on Mac

2010-01-24 Thread Robert Bradshaw
Do you know which exact binary you downloaded? On Jan 23, 2010, at 2:02 PM, Mark Mueller wrote: I installed the Sage 4.3.1. binary in the Applications folder on my MacBook Air. I am running Mac OSX 10.5.8. I have tired installing both by dragging the image into the applications folder and

[sage-support] @interact with non-Sage objects

2010-01-24 Thread gsever
Hello, Is it possible to use the @interact with the following code-snippet? I want experiment with distributions functions that Scipy have but not in Sage. Thanks from scipy import stats import numpy as np import matplotlib.pyplot as plt @interact def plot_norm(loc=(0,(0,10)), scale=(1,(1,10)))

[sage-support] installation problems for Sage binary on Mac

2010-01-24 Thread Mark Mueller
I installed the Sage 4.3.1. binary in the Applications folder on my MacBook Air. I am running Mac OSX 10.5.8. I have tired installing both by dragging the image into the applications folder and also by using the copy command explicitly. Double-clicking the Sage icon (as instructed in the