[sage-devel] Re: Backslashes in docstring

2011-01-23 Thread Andrey Novoseltsev
See also http://groups.google.com/group/sage-devel/browse_thread/thread/5af60a53b2618833/c5df88a9ce443f6e#c5df88a9ce443f6e It is possible to get slashes, but you need a lot of them without any clear pattern... Andrey -- To post to this group, send an email to sage-devel@googlegroups.com To unsu

Re: [sage-devel] Conversion PARI GEN -> NumberFieldElement

2011-01-23 Thread David Roe
Take a look at sage.rings.number_field.number_field.NumberField_absolute._coerce_non_number_field_element_in sage.rings.number_field.number_field_element.NumberFieldElement.__init__ (under if isinstance(f, pari_gen)) sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flin

Re: [sage-devel] Re: Installation sage 4.6.1 on OpenSUSE 11.3

2011-01-23 Thread Bobby Kurniawan
Thanks evryone.. I already built sage with options make -i to ignore errors. Build succesful and I can run sage. Sage is awesome. On Sun, Jan 23, 2011 at 10:05 AM, Mike wrote: > I ran into the same problem. Try installing (in opensuse) the package > readline-devel. This should provide the mis

Re: [sage-devel] Conversion PARI GEN -> NumberFieldElement

2011-01-23 Thread Jeroen Demeyer
On 2011-01-23 18:18, Jeroen Demeyer wrote: > Hello sage-devel, > > I am lost in coercion again. Can somebody please point out to me where > to find the code which converts PARI objects to a NumberFieldElement. > In other words, what happens in the third line below? > > sage: K. = NumberField(x^2

Re: [sage-devel] Re: Backslashes in docstring

2011-01-23 Thread Jeroen Demeyer
Okay, you are right. But the "nodetex" trick doesn't work in Cython. So I guess this is a bug? Jeroen. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this gr

[sage-devel] Re: Free advertising on Stack Overflow

2011-01-23 Thread Eviatar
>That's nice, although it would be good to mention something about the >languages invovled. It's possible to make big contributions to Sage >without knowing much or even caring about the mathematical software side >of things. Can you work in something about Python, C, and Javascript? >Maybe add in

[sage-devel] Octave / Matlab interface

2011-01-23 Thread Pablo W.
Hi, I'm planning to use sage notebook for a tutorial on numerical techniques in economics. I would like to leave my students free to choose the language they already know among octave, R and python . When doing some preliminay work I noticed a difference in the way interfaces for Octave or Matlab

[sage-devel] Re: Backslashes in docstring

2011-01-23 Thread Simon King
Hi Jeroen, > Unfortunately, that doesn't seem to work.  It just literally adds the > text "nodetex" to the docstring. Really?? I get, for example: sage: def foo(): : r"""nodetex : the command ``\x" in gp : """ : return : sage: foo? Type: function Ba

Re: [sage-devel] Re: Free advertising on Stack Overflow

2011-01-23 Thread Ivan Andrus
On Jan 23, 2011, at 4:24 PM, Tim Daly wrote: > Advertising images target the emotions, not the intellect. > What images bring strong emotional responses to mathematicians? > Are Mandelbrot sets the leading edge of "cool"? > For the Sage crowd wouldn't an elliptic curve be better? > > Tim Daly Pe

Re: [sage-devel] Re: Backslashes in docstring

2011-01-23 Thread Jeroen Demeyer
On 2011-01-23 18:16, John H Palmieri wrote: > I'm not sure what you mean by "eat all backslashes", but maybe this > does what you want: What I mean is that I want an actual backslash to appear in the help when the user does:: sage: a = pari(42) sage: a.debug? > def foo(): > r"

[sage-devel] Conversion PARI GEN -> NumberFieldElement

2011-01-23 Thread Jeroen Demeyer
Hello sage-devel, I am lost in coercion again. Can somebody please point out to me where to find the code which converts PARI objects to a NumberFieldElement. In other words, what happens in the third line below? sage: K. = NumberField(x^2 + 5) sage: b = pari("Mod(x+1, x^2+5)") sage: K(b) a + 1

[sage-devel] Re: Backslashes in docstring

2011-01-23 Thread John H Palmieri
On Jan 23, 7:19 am, Jeroen Demeyer wrote: > It seems that docstrings eat all backslashes. > > I want to write in a docstring: > like the ``\x`` command in gp > > Any clues on how to do this? (escaping with more backslashes doesn't > seem to work) I'm not sure what you mean by "eat all backslashes

[sage-devel] Re: Transforming exponentials to hyperbolic functions.

2011-01-23 Thread Dox
Thank you very much Francois, much more explicit than I expected!!! On Jan 23, 4:39 pm, Francois Maltey wrote: > Dox a crit : > > > Hi guys! I have an easy question... got an expression with > > exponentials, say exp(x)+exp(-x), How can I get the result in terms of > > hyperbolic functions > > 1/

Re: [sage-devel] Transforming exponentials to hyperbolic functions.

2011-01-23 Thread Francois Maltey
Dox a écrit : Hi guys! I have an easy question... got an expression with exponentials, say exp(x)+exp(-x), How can I get the result in terms of hyperbolic functions 1/ First you can use the expr.subs method : y=exp(x)+exp(-x) y.subs(exp(x)==sinh(x)+cosh(x)).subs(exp(-x)=cosh(x)-sinh(x)) [You

[sage-devel] Transforming exponentials to hyperbolic functions.

2011-01-23 Thread Dox
Hi guys! I have an easy question... got an expression with exponentials, say exp(x)+exp(-x), How can I get the result in terms of hyperbolic functions? -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@g

Re: [sage-devel] Re: Free advertising on Stack Overflow

2011-01-23 Thread Tim Daly
Advertising images target the emotions, not the intellect. What images bring strong emotional responses to mathematicians? Are Mandelbrot sets the leading edge of "cool"? For the Sage crowd wouldn't an elliptic curve be better? Tim Daly On 1/23/2011 7:56 AM, Martin Albrecht wrote: On Sunday 23

[sage-devel] Backslashes in docstring

2011-01-23 Thread Jeroen Demeyer
It seems that docstrings eat all backslashes. I want to write in a docstring: like the ``\x`` command in gp Any clues on how to do this? (escaping with more backslashes doesn't seem to work) Thanks, Jeroen. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe

[sage-devel] Anybody using weave?

2011-01-23 Thread Jeroen Demeyer
If not, we can remove it from Sage?... It looks to be broken anyway. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/grou

Re: [sage-devel] Re: Free advertising on Stack Overflow

2011-01-23 Thread Martin Albrecht
On Sunday 23 January 2011, you wrote: > Here is a basic design: > > http://tinyurl.com/48xqfm5 > > Thoughts? Hi, I like the general idea but would suggest a few optimisations design wise. - I think the font isn't optimal. A sans serif font is a good choice I think but I would play around with

[sage-devel] Re: Installation sage 4.6.1 on OpenSUSE 11.3

2011-01-23 Thread Mike
I ran into the same problem. Try installing (in opensuse) the package readline-devel. This should provide the missing headers. On Jan 21, 7:18 pm, Bobby Kurniawan wrote: > I recently joint this forum. I have trouble compiling sage-4.6.1 on SUSE. > Laptop Intel Dual Core 2.1 GHz,  OS Opensuse 11