[sage-support] Re: Test if p(x) is in a ring generated by polynomials

2010-09-09 Thread Cary Cherng
Suppose I form the row matrix: M = [ (p_1*p_2, .., p_i*p_j) ] and then try looking for a column vector x satifying M*x = q where the elements of x are integers, hopefully 1 or -1. If I tried this approach how would I get sage to only consider integer vectors x as solutions. On Sep 8, 6:20 am,

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread maldun
On Sep 8, 6:19 pm, KvS keesvansch...@gmail.com wrote: Dear all, I am trying to implement a recursive algorithm that is rather complex, in the sense that it uses a high number of variables and (elementary) computations. The output in Sage looks fine but it gets quite slow, so I am thinking of

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-09 Thread Jean-Pierre Flori
I created a Ticket on Sage's Trac: http://trac.sagemath.org/sage_trac/ticket/9880 It could be a problem with the comparison function expair_rest_is_less used by std::sort function like in the following link: http://gcc.gnu.org/ml/gcc-bugs/2010-08/msg01163.html The backtrace of our bug look

[sage-support] Mathematica

2010-09-09 Thread Jan Groenewald
Hi Mathematica is touring South Africa. http://www.wolfram.com/events/southafrica2010/ I expect their presentation to be very professional. Reviving an old topic since Mathematica is visiting our Free Software supporting institute www.aims.ac.za on Monday. It happens to be the first day of a

Re: [sage-support] Mathematica

2010-09-09 Thread Minh Nguyen
Hi Jan, On Thu, Sep 9, 2010 at 7:47 PM, Jan Groenewald j...@aims.ac.za wrote: Does anyone have anything to add, Here's a section from the Sage FAQ that raises some ethical issues in mathematics research: http://www.sagemath.org/doc/faq/faq-general.html#why-is-sage-free-open-source -- Regards

Re: [sage-support] Re: Custom GUI or updating interact widgets?

2010-09-09 Thread Mitesh Patel
On 09/08/2010 11:32 AM, HMark wrote: I'm following up to see if someone has any ideas/suggestions for how to create a GUI in the notebook and interact with it in a bi- directional way, where Python code (with the help of Javascript?) can not only read the GUI controls, but also impact/write

[sage-support] Re: monic list

2010-09-09 Thread andrew ewart
no it should be chekcing the term with the highest power of x and then make it monic that includes possibilitys like x*y as this is not monic wrt x -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

Re: [sage-support] Mathematica

2010-09-09 Thread Dr. David Kirkby
On 09/ 9/10 10:47 AM, Jan Groenewald wrote: * the price of the software http://www.wolfram.com/events/southafrica2010/ $139.95 even for students. I'm not sure I can convey how astronomical that amount to almost all African students. Worse, when they want to start a small business after

[sage-support] Re: Mathematica

2010-09-09 Thread kcrisman
On Sep 9, 7:23 am, Dr. David Kirkby david.kir...@onetel.net wrote: On 09/ 9/10 10:47 AM, Jan Groenewald wrote: * the price of the software http://www.wolfram.com/events/southafrica2010/ $139.95 even for students. I'm not sure I can convey how astronomical that amount to almost all

[sage-support] Re: Mathematica

2010-09-09 Thread Jason Grout
On 9/9/10 6:23 AM, Dr. David Kirkby wrote: On 09/ 9/10 10:47 AM, Jan Groenewald wrote: * the price of the software http://www.wolfram.com/events/southafrica2010/ $139.95 even for students. I'm not sure I can convey how astronomical that amount to almost all African students. Can you put it

Re: [sage-support] Re: Mathematica

2010-09-09 Thread David Kirkby
On 9 September 2010 14:43, Jason Grout jason-s...@creativetrax.com wrote: On 9/9/10 6:23 AM, Dr. David Kirkby wrote: On 09/ 9/10 10:47 AM, Jan Groenewald wrote: * the price of the software http://www.wolfram.com/events/southafrica2010/ $139.95 even for students. I'm not sure I can convey

Re: [sage-support] Re: Mathematica

2010-09-09 Thread Jan Groenewald
Hi On 09/ 9/10 10:47 AM, Jan Groenewald wrote: * the price of the software http://www.wolfram.com/events/southafrica2010/ $139.95 even for students. I'm not sure I can convey how astronomical that amount to almost all African students. On Thu, Sep 09, 2010 at 08:43:41AM -0500, Jason Grout

[sage-support] Re: Mathematica

2010-09-09 Thread Ben Edwards
I might shy away from any personal attacks on Stephen Wolfram, despite controversy as him as a scientist. This should be about comparing sage and Mathematica, not the people behind them. One thing that is a natural advantage for me is the ability to not only use all the packages included in sage,

[sage-support] Re: Mathematica

2010-09-09 Thread kcrisman
On Sep 9, 11:41 am, Ben Edwards bjedwa...@gmail.com wrote: I might shy away from any personal attacks on Stephen Wolfram, despite controversy as him as a scientist. This should be about comparing sage and Mathematica, not the people behind them. The name of the company is Wolfram as well,

[sage-support] Re: Mathematica

2010-09-09 Thread Ben Edwards
kcrisman, No confusion, the poster included this article: * the controversial Mr Wolfram as a scientific role model http://chem.tufts.edu/science/Shermer/E-Skeptic/SkepticsOnWolfram.html I would say rather than include any discussion about how Dr. Wolfram practices science, steer the

[sage-support] Re: Mathematica

2010-09-09 Thread Jason Grout
On 9/9/10 10:54 AM, kcrisman wrote: On Sep 9, 11:41 am, Ben Edwardsbjedwa...@gmail.com wrote: I might shy away from any personal attacks on Stephen Wolfram, despite controversy as him as a scientist. This should be about comparing sage and Mathematica, not the people behind them. The name

Re: [sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread Robert Bradshaw
On Wed, Sep 8, 2010 at 6:39 PM, KvS keesvansch...@gmail.com wrote: Thanks all, however I am not very successful so far :(. I tried both options mentioned before: - only optimize the loops in Cython and keep using symbolic expressions/infinite precision, but this is unfortunately rather

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread Jason Grout
On 9/9/10 11:27 AM, Robert Bradshaw wrote: This should be much faster than symbolic (if I understand you right, calling find_root and integrate) but have higher precision than using raw doubles. I believe the standard find_root uses scipy, which is limited to double precision. Jason -- To

Re: [sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread Robert Bradshaw
On Thu, Sep 9, 2010 at 9:46 AM, Jason Grout jason-s...@creativetrax.com wrote: On 9/9/10 11:27 AM, Robert Bradshaw wrote: This should be much faster than symbolic (if I understand you right, calling find_root and integrate) but have higher precision than using raw doubles. I believe the

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread KvS
On Sep 9, 5:27 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Sep 8, 2010 at 6:39 PM, KvS keesvansch...@gmail.com wrote: Thanks all, however I am not very successful so far :(. I tried both options mentioned before: - only optimize the loops in Cython and keep using

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread KvS
On Sep 9, 5:27 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Sep 8, 2010 at 6:39 PM, KvS keesvansch...@gmail.com wrote: Thanks all, however I am not very successful so far :(. I tried both options mentioned before: - only optimize the loops in Cython and keep using

[sage-support] Finding the solution to a linear equation with minimal l1 norm

2010-09-09 Thread Alastair Irving
Hi All I've been solving the following optimisation problem in sage and was wondering if there's a more efficient method than my current one. I have a large matrix A and want to solve xA=B, where we can assume B=(1,0,0,0,...). The matrix has quite large nullity and I want the solution

Re: [sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread Robert Bradshaw
On Thu, Sep 9, 2010 at 11:44 AM, KvS keesvansch...@gmail.com wrote: On Sep 9, 5:27 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Sep 8, 2010 at 6:39 PM, KvS keesvansch...@gmail.com wrote: Thanks all, however I am not very successful so far :(. I tried both options

[sage-support] Re: monic list

2010-09-09 Thread Nils Bruin
On Sep 9, 4:08 am, andrew ewart aewartma...@googlemail.com wrote: no it should be chekcing the term with the highest power of x and then make it monic that includes possibilitys like x*y as this is not monic wrt x If I understand your description correctly, that is what the code does. Compare

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-09 Thread jockothy
On Sep 8, 7:25 pm, Rolandb rola...@planet.nl wrote: Version 4.5.3 has the same problem. Could you elucidate somewhat more on what you did exactly. Where did you put the command sudo rm /etc/udev/rules.d/70- persistent-net.rules ? N.B.: I'm using VMware 3.1.1, and I have no knowledge

Re: [sage-support] Re: Mathematica

2010-09-09 Thread Dr. David Kirkby
On 09/ 9/10 04:41 PM, Ben Edwards wrote: I might shy away from any personal attacks on Stephen Wolfram, despite controversy as him as a scientist. This should be about comparing sage and Mathematica, not the people behind them. I think that would be *very* wise. I'm no fan of Steven Wolfram.

[sage-support] Re: Mathematica

2010-09-09 Thread Marshall Hampton
Dave, I think the key point is that there are clearly companies and organizations that use python for engineering. Using Sage as a student gives you exposure to python. I'm sure its technically possible to use python within mathematica, but its not something you'd naturally do. So I do think

[sage-support] Re: Mathematica

2010-09-09 Thread Jason Grout
On 9/9/10 4:53 PM, Marshall Hampton wrote: I think the key point is that there are clearly companies and organizations that use python for engineering. See http://www.python.org/about/success/ for lots of examples. Jason -- To post to this group, send email to sage-support@googlegroups.com

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-09 Thread KvS
On Sep 9, 9:17 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Sep 9, 2010 at 11:44 AM, KvS keesvansch...@gmail.com wrote: On Sep 9, 5:27 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Sep 8, 2010 at 6:39 PM, KvS keesvansch...@gmail.com wrote: Thanks all,

[sage-support] Re: Mathematica

2010-09-09 Thread Ben Edwards
I doubt it's as extensive as the Python libraries, but then a lot of the python libraries are not related to science/engineering/maths. I agree with this, but I think it's a strength. Part of my research includes scraping BGP data, and there are modules for doing this in python.(Currently by

[sage-support] irreducible test

2010-09-09 Thread andrew ewart
if i have a function f(x,y) i want to write a function is_irri(f) that would say if f is irreduible or not how do i go about this -- 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

Re: [sage-support] Mathematica

2010-09-09 Thread Dan Drake
On Thu, 09 Sep 2010 at 11:47AM +0200, Jan Groenewald wrote: Mathematica is touring South Africa. http://www.wolfram.com/events/southafrica2010/ I expect their presentation to be very professional. Reviving an old topic since Mathematica is visiting our Free Software supporting institute

[sage-support] Re: Mathematica

2010-09-09 Thread Marshall Hampton
I completely agree - very well said, except that you don't actually _need_ an internet connection to use Sage. And in fact South Africa had rather low bandwidth when I was there (hopefully that's improved with some new cables) but Jan's lab was running Sage beautifully. -Marshall On Sep 9, 6:42 

[sage-support] Re: Custom GUI or updating interact widgets?

2010-09-09 Thread Innigo
re. decorators, I found this example quite illustrative def memoize(f): #this is a decorator eg. cache = {} def helper(x): #lexical closure fn. if x not in cache: cache[x] = f(x) return cache[x] return helper #fib = memoize(fib) # = @memoize

Re: [sage-support] Re: Mathematica

2010-09-09 Thread Dan Drake
On Thu, 09 Sep 2010 at 06:00PM -0700, Marshall Hampton wrote: I completely agree - very well said, except that you don't actually _need_ an internet connection to use Sage. Well, unless you travel to the UW and plug in your USB stick into sage.math and copy a tarball over, someone will be be

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-09 Thread Rolandb
On 9 sep, 22:54, jockothy jgmcc...@gmail.com wrote: On Sep 8, 7:25 pm, Rolandb rola...@planet.nl wrote:  Version 4.5.3 has the same problem. Could you elucidate somewhat more  on what you did exactly.  Where did you put the command   sudo rm /etc/udev/rules.d/70-  persistent-net.rules