[sage-support] take Sage formulas into MSWord

2008-05-22 Thread roleic
I can do html(latex(sage-output)) What is the best way to import it into MSWord? And how can I not only create formulas from sage output but also from input? (i.e. not only from X^2 but also the actual integral(2x) with integral sign etc.) Thanks for your help. By the way: I tried #sage-support

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Mike Hansen
On Thu, May 22, 2008 at 12:45 AM, roleic [EMAIL PROTECTED] wrote: I can do html(latex(sage-output)) What is the best way to import it into MSWord? I don't have Word, but maybe this might be useful: http://www.chikrii.com/ . There is no way to get latex for the input since it only makes sense

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread roleic
On May 22, 9:56 am, Mike Hansen [EMAIL PROTECTED] wrote: On Thu, May 22, 2008 at 12:45 AM, roleic [EMAIL PROTECTED] wrote: I can do html(latex(sage-output)) What is the best way to import it into MSWord? I don't have Word, but maybe this might be useful:http://www.chikrii.com/. There is

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Mike Hansen
Maybe this? http://ooolatex.sourceforge.net/ --Mike On Thu, May 22, 2008 at 2:04 AM, roleic [EMAIL PROTECTED] wrote: On May 22, 9:56 am, Mike Hansen [EMAIL PROTECTED] wrote: On Thu, May 22, 2008 at 12:45 AM, roleic [EMAIL PROTECTED] wrote: I can do html(latex(sage-output)) What is the

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Mike Hansen
With html(latex(sage-output) we get html code, right? And MSWord is among other things also a html-editor capable of reading and writing html. So if I could save the sage html code somehow then I could try whether MSWord can read and display it... Now I just tested that and of course... it

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread roleic
Looks interesting. However it does not translate the formula it just embeds a picture of it. With html(latex(sage-output) we get html code, right? And MSWord is among other things also a html-editor capable of reading and writing html. So if I could save the sage html code somehow then I could

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Nikos Apostolakis
Jason Grout [EMAIL PROTECTED] writes: Nikos Apostolakis wrote: Hello, is there a way to get the the coordinates of the points where the vertices of a graph would be placed if drawn via plot2d or plot3d? If the layout is already computed, the coordinates can be retrieved with get_pos()

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread roleic
I tested the formula transfer from OpenOffice 2.4 to MSWord 2003 and that surprisingly - and contradicting other posts - worked fine for a simple formula with an integral and a fraction. In OO you must check L and S under the menu Tools/Options/Load/Save/MicrosoftOffice/ Mathtype. (I just checked

[sage-support] MPolynomialRing and indeterminate names

2008-05-22 Thread Marc Roeder
Dear sage community, I am new to sage, so please forgive me if I am reporting well-known behaviour here. When generating multivariate polynomial rings, some (seemingly) odd things can happen: 1. Sage seems to guess the meaning of 'x' in some cases: sage: QX=MPolynomialRing(QQ,2,'xy'); QX

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread roleic
Mike, what data format is used when sage exchanges symbolic math with math packages like maxima, maple, mathematica? Maybe there is a converter for one of these formats. Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Jason Grout
roleic wrote: Looks interesting. However it does not translate the formula it just embeds a picture of it. Isn't there two parts to oolatex? One does embed a picture, but the other (the expand tool) doesn't, at least from the description. Thanks, Jason

[sage-support] Re: MPolynomialRing and indeterminate names

2008-05-22 Thread William Stein
On Thu, May 22, 2008 at 7:03 AM, Simon King [EMAIL PROTECTED] wrote: Dear Marc, let me try some explanations. On May 22, 1:43 pm, Marc Roeder [EMAIL PROTECTED] wrote: sage: QX=MPolynomialRing(QQ,2,'xy') sage: x in QX # no variables assinged to indeterminates yet... False If you

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Jason Grout
roleic wrote: I tested the formula transfer from OpenOffice 2.4 to MSWord 2003 and that surprisingly - and contradicting other posts - worked fine for a simple formula with an integral and a fraction. In OO you must check L and S under the menu Tools/Options/Load/Save/MicrosoftOffice/

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread William Stein
On Thu, May 22, 2008 at 7:43 AM, Robert Miller [EMAIL PROTECTED] wrote: Nikos, This seems to work only with graphs already known to Sage but not with new graphs constructed by the user. For example: If you construct a new graph, the position dictionary is not set. You can do so with the

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread roleic
Jason, your right in so far that the expand tool does not embed a picture. However, it does also not embed genuine OO formulas. It represents the formulas as text with special fonts and special formatting and is therefore restricted to simple formulas. Your lead that a latex-formula interface

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Robert Miller
sage: G = graphs.PetersenGraph() sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, dim=2) {0: [0.93950023361313362, -0.088093655912920787], 1: [-0.032723044718243596, 0.0032620178712528453], 2: [-0.78167205667257567, 0.25668081056701608], 3: [-0.19695488333682584,

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Robert Miller
Nikos, This seems to work only with graphs already known to Sage but not with new graphs constructed by the user. For example: If you construct a new graph, the position dictionary is not set. You can do so with the set_pos() command, and if there is no position dict set when you plot, it

[sage-support] Re: take Sage formulas into MSWord

2008-05-22 Thread Carl Witty
On May 22, 6:23 am, roleic [EMAIL PROTECTED] wrote: Mike, what data format is used when sage exchanges symbolic math with math packages like maxima, maple, mathematica? Maybe there is a converter for one of these formats. Roland In each case, we use the native format of that package (the

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Nikos Apostolakis
Robert Miller [EMAIL PROTECTED] writes: sage: G = graphs.PetersenGraph() sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, dim=2) [...] sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, dim=3) That's exactly what I was looking for. This is great! Thanks

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Franco Saliola
On Thu, May 22, 2008 at 10:50 AM, Robert Miller [EMAIL PROTECTED] wrote: sage: G = graphs.PetersenGraph() sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, dim=2) Perhaps this should be exposed as G.spring_layout() (or some other name). It seems like it might be useful.

[sage-support] Re: MPolynomialRing and indeterminate names

2008-05-22 Thread Simon King
Dear William, On May 22, 4:09 pm, William Stein [EMAIL PROTECTED] wrote: I disagree. There is a canonical coercion to the symbolic ring. It seems that i need to learn more about canonical coercion. I thought that a coercion map goes between two parent structures, according to

[sage-support] Re: MPolynomialRing and indeterminate names

2008-05-22 Thread William Stein
On Thu, May 22, 2008 at 8:50 AM, Simon King [EMAIL PROTECTED] wrote: Dear William, On May 22, 4:09 pm, William Stein [EMAIL PROTECTED] wrote: I disagree. There is a canonical coercion to the symbolic ring. It seems that i need to learn more about canonical coercion. I thought that a

[sage-support] Re: MPolynomialRing and indeterminate names

2008-05-22 Thread Simon King
On May 22, 6:09 pm, William Stein [EMAIL PROTECTED] wrote: In fact there is no coercion around: There is a non-canonical coercion: sage: SR('x') x According to http://modular.math.washington.edu/sage/doc/html/prog/node17.html, this is *not* a (non-canonical) coercion but object creation.

[sage-support] Re: getting the coordinates of the vertices of a drawn graph

2008-05-22 Thread Robert Bradshaw
On May 22, 2008, at 8:07 AM, Franco Saliola wrote: On Thu, May 22, 2008 at 10:50 AM, Robert Miller [EMAIL PROTECTED] wrote: sage: G = graphs.PetersenGraph() sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, dim=2) Perhaps this should be exposed as G.spring_layout() (or

[sage-support] sparse Polynomial Quotient Ring troubles

2008-05-22 Thread Kirill Vankov
Is there any way to define a polynomial ring over a sparse quotient ring? This works: sage: p = 5 sage: A.T = PolynomialRing(Integers(p)) sage: f = T^2+1 sage: B = A.quo(f) sage: print B sage: C.s = PolynomialRing(B) sage: print C Univariate Quotient Polynomial Ring in Tbar over Ring of integers

[sage-support] Re: Problem

2008-05-22 Thread Rolandb
Tnx On 22 mei, 07:02, Justin C. Walker [EMAIL PROTECTED] wrote: On May 21, 2008, at 21:14 , Roland van den Brink wrote: The following problem occured and I don't understand what the mistake is using isqrt. Please help. Thanks in advance. I use Sage 3.0.0. Roland sage: for n in

[sage-support] bug: problem with arithmetic in SL_2(Z)

2008-05-22 Thread Utpal Sarkar
Hi, There are problems doing arithmetic in SL_2(Z): S,T = SL2Z().gens() S*T; # no problem S^2*T^3;# no problem S^-2*T^-3; # no problem but when I multiply two elements with different exponent: S^-2*T^3; S^2*T^-3; T^2*T^-3; I get a type 'exceptions.TypeError': Cannot convert

[sage-support] Re: sparse Polynomial Quotient Ring troubles

2008-05-22 Thread Craig Citro
Yep, this was a bug. Fix is up here: http://trac.sagemath.org/sage_trac/ticket/3272 Give it a try, and let me know if you run into any more trouble. -cc On Thu, May 22, 2008 at 11:13 AM, Kirill Vankov [EMAIL PROTECTED] wrote: Is there any way to define a polynomial ring over a sparse

[sage-support] Cannot open worksheet on OS X 10.5 (intel)

2008-05-22 Thread Simon Beaumont
Just installed from the dmg and cannot open previously saved worksheet: omega:~ seb$ /Applications/sage/sage -- | SAGE Version 3.0.1, Release Date: 2008-05-04 | | Type notebook() for the GUI, and license()

[sage-support] SAGE 3.0.1 OS X 10.5 (intel) - seems to log me in as admin

2008-05-22 Thread Simon Beaumont
even though default is require_login=True when I start notebook I get dropped straight into admin account. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

[sage-support] Re: Problem

2008-05-22 Thread William Stein
On Thu, May 22, 2008 at 1:52 PM, Rolandb [EMAIL PROTECTED] wrote: Tnx We're tracking this problem here: http://trac.sagemath.org/sage_trac/ticket/3273 On 22 mei, 07:02, Justin C. Walker [EMAIL PROTECTED] wrote: On May 21, 2008, at 21:14 , Roland van den Brink wrote: The following

[sage-support] Re: calling SAGE from C or Mathematica

2008-05-22 Thread mark mcclure
On May 7, 2:41 am, Amir [EMAIL PROTECTED] wrote: Can I start a Sage session from C? I would need to pass commands, set and get variables, and cleanly terminate the session. I would like to do this as a mathlink module to call Sage from Mathematica. As a fan of both Sage and Mathematica, I