Re: [sage-support] Re: ultraspherical (Gegenbauer polynomials)

2011-07-14 Thread Burcin Erocal
On Wed, 13 Jul 2011 19:01:40 -0700 (PDT) Steven Pollack stevenlawrencepoll...@gmail.com wrote: I hope this code helps anyone trying to do any work in Sage with the ultraspherical(n,a,x) function. Note that there is an experimental patch on the issue tracker which improves orthogonal

[sage-support] Python question about rafters used in ring

2011-07-14 Thread Christophe BAL
Hello, how do Sage analyse the rafters in ratpoly.t = PolynomialRing(QQ) ? Where I could find the method used in the source of Sage ? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For

[sage-support] How to calculate the affine coordinats of a point

2011-07-14 Thread Johannes
Hi list, i have given a finite set of points (lets call it V \subset ZZ^n) and have to express some other points p_0,\dots,p_k \in ZZ^n as affine (or convex) combination of elements from V. How can i do this? I tried it with span(ZZ,V) but that leads to ZZ^n and the p_i are written with respect to

[sage-support] Re: Graphics() objects and a histogram

2011-07-14 Thread David Monarres
Thank you for pointing that out. I didn't do my homework before I started so I probably duplicated efforts. I will take a look at that trac ticket today. David Monarres -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: Graphics() objects and a histogram

2011-07-14 Thread David Monarres
Just looked over the code posted on in your patch. It is almost exactly what I did, but I like the way that you handled options better. I haven't gotten a full grasp of the * and ** argument magic. I can start here and look into extending it. Any ideas on what you would want? Or what else

[sage-support] Re: Graphics() objects and a histogram

2011-07-14 Thread David Monarres
Hey Jason, I added some code to handle a the axis computation for a list of datasets since the help string says that this was something to be implemented. Here it is: http://dl.dropbox.com/u/1768136/sage-main_rev15695.patch David -- To post to this group, send email to

[sage-support] Re: Cannot sign out

2011-07-14 Thread Andrey Novoseltsev
Based on my experience, it seems to be a Firefox 5 issue, I just got it on a fresh install of Windows 7 Enterprise 64-bit and Firefox 5.0.1. Given that e.g. google accounts behave normally, it still can indicate issues with Sage authentication mechanism that gets broken in certain circumstances.

Re: [sage-support] How to calculate the affine coordinats of a point

2011-07-14 Thread William Stein
On Thu, Jul 14, 2011 at 7:39 PM, Johannes dajo.m...@web.de wrote: Hi list, i have given a finite set of points (lets call it V \subset ZZ^n) and have to express some other points p_0,\dots,p_k \in ZZ^n as affine (or convex) combination of elements from V. How can i do this? I tried it with

[sage-support] Re: Very slow matrix calculations in SAGE

2011-07-14 Thread Rob Beezer
On Jul 13, 8:32 pm, William Stein wst...@gmail.com wrote: Sage is probably just using some completely generic general implementation of kernel for matrices. Yes, that is correct. It's a totally generic routine and it stands a very good chance of giving an incorrect result with entries from

[sage-support] Nearest Integer

2011-07-14 Thread Santanu Sarkar
How to find the nearest integer (+ve or -ve) of a rational number (P/Q) where P,Q are very large integers? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this

Re: [sage-support] Nearest Integer

2011-07-14 Thread D. S. McNeil
How to find the nearest integer (+ve or -ve) of a rational number (P/Q) where P,Q are very large integers? You could use the .round method of rationals. sage: q = 17+1/2+1/11**1000 sage: RR(q.numerator()), RR(q.denominator()) (2.48685403212345e10413928, 1.42105944692768e10413927) sage: