[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

[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)),

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] 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] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 5:49 am, Harald Schilly harald.schi...@gmail.com 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

[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.| --

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 alexvpetr...@gmail.com 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

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

2010-01-24 Thread Harald Schilly
On Jan 24, 5:06 pm, gsever gokhanse...@gmail.com 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

[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

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

2010-01-24 Thread gsever
On Jan 24, 11:14 am, Harald Schilly harald.schi...@gmail.com wrote: On Jan 24, 5:06 pm, gsever gokhanse...@gmail.com 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

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

2010-01-24 Thread Harald Schilly
On Jan 24, 6:50 pm, gsever gokhanse...@gmail.com 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,

[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.x,y=PolynomialRing(QQ, 2) F=FractionField(R) f=(x/2)/(y/2) My question is, how do I get

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 sboet...@tulane.edu 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:

Re: [sage-support] cancellation in fraction fields

2010-01-24 Thread William Stein
On Sun, Jan 24, 2010 at 12:08 PM, Mike Hansen mhan...@gmail.com wrote: Hello, On Sun, Jan 24, 2010 at 12:02 PM, Stefan Boettner sboet...@tulane.edu wrote: I'm working with fraction fields of multivariate polynomials ring with coefficients in Q. My question is, how do I get cancellation

[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

[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 =

[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] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 12:39 pm, Harald Schilly harald.schi...@gmail.com wrote: On Jan 24, 6:50 pm, gsever gokhanse...@gmail.com 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-support] Re: cancellation in fraction fields

2010-01-24 Thread Yann
On Jan 24, 9:17 pm, William Stein wst...@gmail.com 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

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 wdjoy...@gmail.com wrote: SNIP 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

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] 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,

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 sboet...@tulane.edu 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