[sage-support] Re: how does one do this in Cython?

2011-07-25 Thread john_perry_usm
Thanks, William. I don't know why I didn't try cimport on that other example; that certainly works with Rational. But I shouldn't have simplified the example to that level. What I *really* want to cdef is MPolynomial_libsingular. Something like this: from

Re: [sage-support] Re: how does one do this in Cython?

2011-07-25 Thread Martin Albrecht
On Monday 25 July 2011, john_perry_usm wrote: Thanks, William. I don't know why I didn't try cimport on that other example; that certainly works with Rational. But I shouldn't have simplified the example to that level. What I *really* want to cdef is MPolynomial_libsingular. Something

[sage-support] Re: how does one do this in Cython?

2011-07-25 Thread john_perry_usm
On Jul 25, 6:46 am, Martin Albrecht martinralbre...@googlemail.com wrote: You'll need to compile your extension module (i.e. your pyx file) with C++ instead of C. See http://sagemath.org/doc/developer/coding_in_cython.html#special-pragmas From that link, I understood that I need to prepend

[sage-support] Re: Plots and Ticks

2011-07-25 Thread Jason Grout
On 7/24/11 5:36 PM, Dox wrote: Hi people, I have a little doubt about ticks in plots. I'd like to know whether the following tasks are possible: * eliminate all ticks of a plot. * eliminate the dependent variable ticks. * changing the number by letter, either 1 by \eta and 2 by

Re: [sage-support] Re: how does one do this in Cython?

2011-07-25 Thread Martin Albrecht
Hi John, see attachment. You'll have to change the cinclude path for it to work on your machine. On Monday 25 July 2011, john_perry_usm wrote: On Jul 25, 6:46 am, Martin Albrecht martinralbre...@googlemail.com wrote: You'll need to compile your extension module (i.e. your pyx file) with

[sage-support] Re: extending the Expression class

2011-07-25 Thread Steven Pollack
Is the syntax for this class t = new_exp(SR, symbolic_expression)? So that sage: t returns symbolic_expression? Second, I'm not entirely sure I understand how this patch was made, let alone how to install it. I skimmed over http://www.sagemath.org/doc/developer/patching_spkgs.html and

[sage-support] Re: Plots and Ticks

2011-07-25 Thread Dox
Hi again. I've seen the documentation for plot. However, the last of the points I highlight seems to be not possible. I'd like to change the numerical ticks (1,2,3,4) by alphabetical ones (eta, xi, lambda, rho). Thank you -- To post to this group, send email to sage-support@googlegroups.com

Re: [sage-support] method .polynomial() gives unexpected answer

2011-07-25 Thread Julian RĂ¼th
Apparently, this is caused by a problem in degree() which is used in polynomial(). In your example: sage: pol2.degree(q) 0 sage: pol2.degree(p) 3 You get the expected behavior if you bring q into pol2.parent() explicitly: sage: q=pol2.parent()(q) sage: pol2.degree(q),pol2.polynomial(q) (3,

[sage-support] Re: Plots and Ticks

2011-07-25 Thread Jason Grout
On 7/25/11 12:29 PM, Dox wrote: Hi again. I've seen the documentation for plot. However, the last of the points I highlight seems to be not possible. It is, but you have to follow the pointers in the documentation to the further documentation in matplotlib. In the Sage documentation for

[sage-support] Running Macaulay2 inside a sage script

2011-07-25 Thread Mel
Hello, I'm familiar with running just Macaulay2 from the sage notebook. However, I now have a task that requires me to execute a bunch of sage code to calculate an ideal, call some Macaulay2 functions on that ideal, and then return to the sage script to do some more calculations. Is it possible

[sage-support] Re: Running Macaulay2 inside a sage script

2011-07-25 Thread Mel
Perhaps I should clarify a couple more things: I have figured out how to do simple Macaulay 2 commands inside a sage script as follows: macaulay2(S = ZZ/101[t_1 .. t_9, u_1 .. u_9]) However, many of my commands are not working. The code in Macaulay2 which I would like to execute from sage