[sage-support] Re: converting strings to latex

2010-05-06 Thread ablondin
Ok, I think I understand your problem. I had something similar before. The problem is that the object returned by the function sarrus is a 'str', which sagetex format so that it replaces every underscore, etc. with \_ to make it work in Latex. If you don't want the output to be modified, you have t

[sage-support] Re: coersion

2010-05-06 Thread Matt Bainbridge
Thanks! This seems to work. --M On May 5, 9:20 pm, Mike Hansen wrote: > On Wed, May 5, 2010 at 2:46 PM, Matt Bainbridge > > wrote: > > Sage knows how to coerce from Frac(ZZ[x]) to Frac(QQ[x]).  There is no > > coercion going the other way, though there should be one, since these > > two rings

Re: [sage-support] How to add grid lines to plot?

2010-05-06 Thread Mike Hansen
Hello, On Thu, May 6, 2010 at 2:14 PM, Eugene Goldberg wrote: > There is plot: > p=plot(sin,0,2*pi) > How to add grid lines to this plot? plot(sin,0,2*pi,gridlines=True) You can look at the documentation of plot for more examples. --Mike -- To post to this group, send email to sage-support@g

[sage-support] How to add grid lines to plot?

2010-05-06 Thread Eugene Goldberg
Hello! There is plot: p=plot(sin,0,2*pi) How to add grid lines to this plot? -- 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 group at http://groups.google.

[sage-support] Re: Sagetex wont plot

2010-05-06 Thread Oscar
I tried export PATH=/Applications/sage/:$PATH in Terminal and got this: export: Command not found. I'm running Mac OS 10.5.8. Oscar Chavez On May 5, 7:54 pm, Dan Drake wrote: > On Wed, 05 May 2010 at 07:38AM -0600, jrodri1...@gmail.com wrote: > > Thanks!!! I got that working. But, I stumbled

Re: [sage-support] Re: converting strings to latex

2010-05-06 Thread Georg Damm
Hi Alex, > If I understand correctly your question, you would like to > convert arithmetical expressions directly into Latex. I would like to convert a string into a sage-Latex-expression (in sagetex). > I don't know if it is possible to do it in Sage, but you could > always write your own fu

Re: [sage-support] enumerating vectors in Z^d

2010-05-06 Thread Mike Hansen
On Wed, May 5, 2010 at 8:38 PM, Eva wrote: > Problem background: I want to find the smallest (in l_2 norm) vectors > that satisfy a certain condition - creating a minimal set of coset > representatives for Z^d/A(Z^d) for a dilation matrix A.  My idea is to > start with 0 and enumerate vectors in Z

[sage-support] Re: Making a movie or animation with 3d plotting of sage: animate() fails with 3D

2010-05-06 Thread Marshall Hampton
I just noticed that saving 3d objects to a file has finally been fixed: http://trac.sagemath.org/sage_trac/ticket/2872 That means we are one step closer to handling 3d animations. I can't find a trac ticket that explicitly targets that but maybe I'm just missing it. -M. Hampton On May 6, 7:10 am

[sage-support] Re: Making a movie or animation with 3d plotting of sage: animate() fails with 3D

2010-05-06 Thread Marshall Hampton
If you search this group for "animate" or "animation" you can see a lot of other responses. One approach is to using ffmpeg to make a movie out of a sequence of frames you save somewhere (e.g. the DATA directory). Another is to use Jmol, but that requires learning a bit more about Jmol since the

Re: [sage-support] Making a movie or animation with 3d plotting of sage: animate() fails with 3D

2010-05-06 Thread Ajay Rawat
use : @interact On Thu, May 6, 2010 at 4:04 PM, isurug wrote: > Hello there, > First of all, a very big thank you for this piece of gold: sagemath. > Im loving it! > I could get it to do all i wanted so far without much less fuss! I > have now tried to make an animation or movie with it of some

[sage-support] Making a movie or animation with 3d plotting of sage: animate() fails with 3D

2010-05-06 Thread isurug
Hello there, First of all, a very big thank you for this piece of gold: sagemath. Im loving it! I could get it to do all i wanted so far without much less fuss! I have now tried to make an animation or movie with it of some 3d plot i have. I want to capture the changes occur in the plot with one v

[sage-support] Re: rational function arithmetic

2010-05-06 Thread JamesHDavenport
On May 5, 10:09 am, Mike Hansen wrote: > Hello, > > On Wed, May 5, 2010 at 5:03 AM, Matt Bainbridge > > wrote: > > I wrote a sage program which does a lot of arithmetic in the field of > > rational functions Frac(Q[x,y,z]).  The problem is that sage doesn't > > check for common divisors of the nu

[sage-support] Re: enumerating vectors in Z^d

2010-05-06 Thread Eva
On May 6, 5:21 am, Dan Drake wrote: > One starting point is IntegerVectors -- try IntegerVectors? in a Sage > session. You can do IntegerVectors(5,3) to get an iterator for all > vectors of nonnegative integers of length 3 that sum to 5. > > Others may have better ideas, but my first guess is th

Re: [sage-support] enumerating vectors in Z^d

2010-05-06 Thread Dan Drake
On Wed, 05 May 2010 at 05:38PM -0700, Eva wrote: > My question: what is the best way to enumerate vectors in Z^d (for an > arbitrary d that my function will be passed as a parameter, so I don't > know its value in advance) starting with 0, then going through all > vectors with just a single 1 and a