[sage-support] Problem in Sat Solver

2013-04-04 Thread Santanu Sarkar
When I run the following code, I have

Traceback (click to the left of this block for traceback)
...
AssertionError



from sage.crypto.boolean_function import BooleanFunction

R.=BooleanPolynomialRing(6)

C=[x0,   x0 + x1,   x1 + x2, x3,   x2 + 1,   x4 +x5]
tt=cputime()

I = Ideal(C)

import sage.sat.boolean_polynomials
B= sage.sat.boolean_polynomials.solve(I.gens())

print cputime(tt)


However B should be False, which I get when
C=[x0,   x0 + x1,   x1 + x2, x3,   x2 + 1]

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Fwd: sage.maa.org

2013-04-04 Thread Jason Grout

On 4/4/13 7:31 PM, Dan Drake wrote:

On Thu, 04 Apr 2013 at 05:06AM -0700, kcrisman wrote:

Now that I think about it, you shouldn't be able to make an account on it
anyway...  Dan, that's probably because OpenID is now allowed or something.
  In principle, one should have to know "the magic word" which only PREP
participants got.


The version of Sage on that server predates the OpenID stuff, so AFAIK
the only way to get an account is knowing the magic word.

I do plan on upgrading the version of Sage after the semester is over,
so I'll make a note to disable OpenID logins when I do that.



IIRC, the magic word still applies even if you use OpenID.  At least, 
that's how I set up the UTMOST servers.


Jason



--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Re: Fwd: sage.maa.org

2013-04-04 Thread Dan Drake
On Thu, 04 Apr 2013 at 05:06AM -0700, kcrisman wrote:
> Now that I think about it, you shouldn't be able to make an account on it 
> anyway...  Dan, that's probably because OpenID is now allowed or something. 
>  In principle, one should have to know "the magic word" which only PREP 
> participants got. 

The version of Sage on that server predates the OpenID stuff, so AFAIK
the only way to get an account is knowing the magic word.

I do plan on upgrading the version of Sage after the semester is over,
so I'll make a note to disable OpenID logins when I do that.

Dan

--
---  Dan Drake
-  http://math.pugetsound.edu/~ddrake
---


signature.asc
Description: Digital signature


Re: [sage-support] problem while compiling sage-5.8 with singular

2013-04-04 Thread Volker Braun
Time to blacklist gcc-4.8.0 on arch? Its clearly shipped in a broken state.

Can you compile sage with:

   export SAGE_INSTALL_GCC=yes
   make


On Friday, April 5, 2013 12:11:45 AM UTC+1, Aladin VIRMAUX wrote:
>
> Thanks for you answer, here is the output :
>
> [dadin@bubble .sage-5.8]% ./sage --sh 
>
> Starting subshell with Sage environment variables set.  Don't forget
> to exit when you are done.  Beware:
>  * Do not do anything with other copies of Sage on your system.
>  * Do not use this for installing Sage packages using "sage -i" or for
>running "make" at Sage's root directory.  These should be done
>outside the Sage shell.
>
> Bypassing shell configuration files...
>
> Note: SAGE_ROOT=/home/dadin/.sage-5.8
> (sage-sh) dadin@bubble:~/.sage-5.8$ which gcc
> /usr/bin/gcc
> (sage-sh) dadin@bubble:~/.sage-5.8$ gcc -v
> Utilisation des specs internes.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr 
> --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man 
> --infodir=/usr/share/info 
> --with-bugurl=https://bugs.archlinux.org/--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++
>  --enable-shared 
> --enable-threads=posix --with-system-zlib --enable-__cxa_atexit 
> --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch 
> --enable-gnu-unique-object --enable-linker-build-id 
> --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto 
> --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold 
> --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib 
> --disable-libssp --disable-werror --enable-checking=release
> Modèle de thread: posix
> gcc version 4.8.0 (GCC) 
> (sage-sh) dadin@bubble:~/.sage-5.8$ which g++
> /usr/bin/g++
> (sage-sh) dadin@bubble:~/.sage-5.8$ g++ -v
> Utilisation des specs internes.
> COLLECT_GCC=g++
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr 
> --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man 
> --infodir=/usr/share/info 
> --with-bugurl=https://bugs.archlinux.org/--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++
>  --enable-shared 
> --enable-threads=posix --with-system-zlib --enable-__cxa_atexit 
> --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch 
> --enable-gnu-unique-object --enable-linker-build-id 
> --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto 
> --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold 
> --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib 
> --disable-libssp --disable-werror --enable-checking=release
> Modèle de thread: posix
> gcc version 4.8.0 (GCC) 
> (sage-sh) dadin@bubble:~/.sage-5.8$
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] problem while compiling sage-5.8 with singular

2013-04-04 Thread Aladin VIRMAUX
Thanks for you answer, here is the output :

[dadin@bubble .sage-5.8]% ./sage --sh 

Starting subshell with Sage environment variables set.  Don't forget
to exit when you are done.  Beware:
 * Do not do anything with other copies of Sage on your system.
 * Do not use this for installing Sage packages using "sage -i" or for
   running "make" at Sage's root directory.  These should be done
   outside the Sage shell.

Bypassing shell configuration files...

Note: SAGE_ROOT=/home/dadin/.sage-5.8
(sage-sh) dadin@bubble:~/.sage-5.8$ which gcc
/usr/bin/gcc
(sage-sh) dadin@bubble:~/.sage-5.8$ gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr 
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ 
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared 
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch 
--enable-gnu-unique-object --enable-linker-build-id 
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto 
--enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold 
--with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib 
--disable-libssp --disable-werror --enable-checking=release
Modèle de thread: posix
gcc version 4.8.0 (GCC) 
(sage-sh) dadin@bubble:~/.sage-5.8$ which g++
/usr/bin/g++
(sage-sh) dadin@bubble:~/.sage-5.8$ g++ -v
Utilisation des specs internes.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr 
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ 
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared 
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch 
--enable-gnu-unique-object --enable-linker-build-id 
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto 
--enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold 
--with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib 
--disable-libssp --disable-werror --enable-checking=release
Modèle de thread: posix
gcc version 4.8.0 (GCC) 
(sage-sh) dadin@bubble:~/.sage-5.8$

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] problem while compiling sage-5.8 with singular

2013-04-04 Thread Jeroen Demeyer

What is the output of
$ ./sage --sh
(sage-sh) $ which gcc
(sage-sh) $ gcc -v
(sage-sh) $ which g++
(sage-sh) $ g++ -v

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Cleaning temporary/easily generated files from ~/.sage

2013-04-04 Thread Jim Clark
Thank you for the response. I had not noticed the "Revisions" tab on the 
worksheet (feeling embarrassed).
Jim

On Apr 4, 2013, at 9:03 AM, kcrisman wrote:

> 
> 
> On Thursday, April 4, 2013 11:30:55 AM UTC-4, Jim wrote:
> Deep among the .sage/sage_notebook.sagenb subdirectories is a worksheet 
> subdirectory 
> that contains a subdirectory called "snapshots" that contains numerous *.bz2 
> files. 
> 
> I assume these are snapshots of the worksheet. 
> What causes their creation? 
> Do they contain a revision history? 
> 
> 
> At one time, long ago, they did do all these things.  Now they are probably 
> all the same - every time you "save" you get one, I believe.   You can see 
> the revisions by clicking on the "Revisions" tab on the upper right.
> 
> They used to be automatic saves, but that turned out to really really slow 
> down notebook servers, so we removed that.  For some reason, at the same time,
> 
> PEOPLE ALSO MADE IT SO ALL REVISIONS OVERWRITE THE PREVIOUS ONES
> 
> and I, at least, have no idea how to fix that - and I tried on some of the 
> previous codebase.  With the switch to the "flask" codebase a while ago it 
> has perhaps become easier or harder to fix.
> 
> If so, how do I examine a previous revision of the worksheet? 
> If there is not a way to look at the revision history, then why are they 
> maintained? 
> Can I safely delete them? 
> 
> Most likely, you can delete all but perhaps the last one.  I would just do 
> some spot checks but that's been my experience over the last quite-a-few 
> years.
> 
> See also 
> 
> http://code.google.com/p/sagenb/issues/detail?id=58
> http://code.google.com/p/sagenb/issues/detail?id=59
> both from an now-unmaintained codebase whose issues, however, did NOT 
> migrate to Github (!)
> http://trac.sagemath.org/sage_trac/ticket/8776
> probably bit rotted
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread Neda
 That's so nice, I wish I could attend some class there for learning 
Sage,but I'm looking forward to learn it here.. so kind of you, that would 
be my pleasure :-)
On Thursday, April 4, 2013 10:18:32 PM UTC+4:30, William wrote:
>
> On Thu, Apr 4, 2013 at 10:43 AM, Neda > 
> wrote: 
> >  Thank you so much, No it is not my homwork, I'm just trying to learn 
> sage 
> > :-) 
>
> Cool.  I'm teaching an intro course this quarter on Linear Algebra, 
> and I'll show your example to the class tomorrow. :-) 
>
> William 
>
> > On Thursday, April 4, 2013 9:56:24 PM UTC+4:30, William wrote: 
> >> 
> >> On Thu, Apr 4, 2013 at 10:21 AM, Neda  wrote: 
> >> > 
> >> > Hello 
> >> > 
> >> > Can we parametrize all solutions of the linear equations like 
> >> > 
> >> > x+2* y-2*z+w= -1 
> >> > 
> >> > x+y+z-w =2 
> >> > 
> >> > in sage? 
> >> 
> >> var('x,y,z,w') 
> >> solve([x+2*y-2*z+w == -1, x+y+z-w==2], [x,y]) 
> >> 
> >> 
> >> Did I just do your linear algebra homework?  :-) 
> >> 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups 
> >> > "sage-support" group. 
> >> > To unsubscribe from this group and stop receiving emails from it, 
> send 
> >> > an 
> >> > email to sage-support...@googlegroups.com. 
> >> > To post to this group, send email to sage-s...@googlegroups.com. 
> >> > Visit this group at http://groups.google.com/group/sage-support?hl=en. 
>
> >> > For more options, visit https://groups.google.com/groups/opt_out. 
> >> > 
> >> > 
> >> 
> >> 
> >> 
> >> -- 
> >> William Stein 
> >> Professor of Mathematics 
> >> University of Washington 
> >> http://wstein.org 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-support...@googlegroups.com . 
> > To post to this group, send email to 
> > sage-s...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/sage-support?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread kcrisman


Cool.  I'm teaching an intro course this quarter on Linear Algebra, 
>> and I'll show your example to the class tomorrow. :-) 
>
>
> Plot twist: Neda is actually enrolled in your class 
>

You are diabolical! :-) 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread Volker Braun
On Thursday, April 4, 2013 6:48:32 PM UTC+1, William wrote:

> Cool.  I'm teaching an intro course this quarter on Linear Algebra, 
> and I'll show your example to the class tomorrow. :-) 


Plot twist: Neda is actually enrolled in your class 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] problem while compiling sage-5.8 with singular

2013-04-04 Thread Aladin VIRMAUX
Hello,

I'm trying to compile from source sage-5.8 and singular seems to fail the 
installation.

I'm running archlinux with the option -j4, here is the end of the log with 
the error :

g++ -O2 -g  -fPIC -pipe  -fno-implicit-templates -I. -I.. 
-I/home/dadin/.sage-5.8/local  -I/home/dadin/.sage-5.8/local/include 
-I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include 
 -I/usr/local/include  -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H 
-c longtrans.cc
gcc -O2 -g  -fPIC -pipe  -I. -I.. -I/home/dadin/.sage-5.8/local 
 -I/home/dadin/.sage-5.8/local/include 
-I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include 
 -I/usr/local/include  -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H 
-c weight0.c
In file included from ../kernel/si_gmp.h:4:0,
 from ../kernel/structs.h:15,
 from weight0.c:13:
../factory/cf_gmp.h:2501:28: erreur fatale: bits/c++config.h : Aucun 
fichier ou dossier de ce type (means "No file or folder of this type")
 #include 
^
compilation terminée.
make[4]: *** [weight0.o] Erreur 1
make[4]: *** Attente des tâches non terminées
make[4] : on quitte le répertoire « 
/home/dadin/.sage-5.8/spkg/build/singular-3-1-5.p4/src/kernel »
make[3]: *** [install-nolns] Erreur 1
make[3] : on quitte le répertoire « 
/home/dadin/.sage-5.8/spkg/build/singular-3-1-5.p4/src »
Unable to build and install Singular
Error building Singular (error in build_singular).

real 1m56.060s
user 5m49.167s
sys 0m17.733s

Error installing package singular-3-1-5.p4


Do someone have any solution ?
Thanks by advance,
Aladin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: an algorithm for computing S(f,g)

2013-04-04 Thread Neda
 Thank you so much, so nice of you.
On Thursday, April 4, 2013 9:58:27 PM UTC+4:30, Volker Braun wrote:
>
> See 
> http://www.sagemath.org/doc/reference/polynomial_rings/sage/rings/polynomial/toy_d_basis.html
>
> On Thursday, April 4, 2013 6:23:48 PM UTC+1, Neda wrote:
>>
>> could you please tell me how to write an algorithm for computing S(f,g) 
>> using any order of two polynomials f and g?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread William Stein
On Thu, Apr 4, 2013 at 10:43 AM, Neda  wrote:
>  Thank you so much, No it is not my homwork, I'm just trying to learn sage
> :-)

Cool.  I'm teaching an intro course this quarter on Linear Algebra,
and I'll show your example to the class tomorrow. :-)

William

> On Thursday, April 4, 2013 9:56:24 PM UTC+4:30, William wrote:
>>
>> On Thu, Apr 4, 2013 at 10:21 AM, Neda  wrote:
>> >
>> > Hello
>> >
>> > Can we parametrize all solutions of the linear equations like
>> >
>> > x+2* y-2*z+w= -1
>> >
>> > x+y+z-w =2
>> >
>> > in sage?
>>
>> var('x,y,z,w')
>> solve([x+2*y-2*z+w == -1, x+y+z-w==2], [x,y])
>>
>>
>> Did I just do your linear algebra homework?  :-)
>>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to sage-support...@googlegroups.com.
>> > To post to this group, send email to sage-s...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> William Stein
>> Professor of Mathematics
>> University of Washington
>> http://wstein.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread Neda
 Thank you so much, No it is not my homwork, I'm just trying to learn sage 
:-)
On Thursday, April 4, 2013 9:56:24 PM UTC+4:30, William wrote:
>
> On Thu, Apr 4, 2013 at 10:21 AM, Neda > 
> wrote: 
> > 
> > Hello 
> > 
> > Can we parametrize all solutions of the linear equations like 
> > 
> > x+2* y-2*z+w= -1 
> > 
> > x+y+z-w =2 
> > 
> > in sage? 
>
> var('x,y,z,w') 
> solve([x+2*y-2*z+w == -1, x+y+z-w==2], [x,y]) 
>
>
> Did I just do your linear algebra homework?  :-) 
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-support...@googlegroups.com . 
> > To post to this group, send email to 
> > sage-s...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/sage-support?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: an algorithm for computing S(f,g)

2013-04-04 Thread Volker Braun
See 
http://www.sagemath.org/doc/reference/polynomial_rings/sage/rings/polynomial/toy_d_basis.html

On Thursday, April 4, 2013 6:23:48 PM UTC+1, Neda wrote:
>
> could you please tell me how to write an algorithm for computing S(f,g) 
> using any order of two polynomials f and g?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Parametrization in sage

2013-04-04 Thread William Stein
On Thu, Apr 4, 2013 at 10:21 AM, Neda  wrote:
>
> Hello
>
> Can we parametrize all solutions of the linear equations like
>
> x+2* y-2*z+w= -1
>
> x+y+z-w =2
>
> in sage?

var('x,y,z,w')
solve([x+2*y-2*z+w == -1, x+y+z-w==2], [x,y])


Did I just do your linear algebra homework?  :-)

>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] an algorithm for computing S(f,g)

2013-04-04 Thread Neda


Hello

could you please tell me how to write an algorithm for computing S(f,g) 
using any order of two polynomials f and g? S(f,g)= x^A/ LT(f) * f - 
x^A/LT(g) *g ;   x^k = multideg(f) ;   x^q=multideg(g);

A= (A_1,..., A_n) 

A= max(k_i,q_i)  ;  x^A= LCM (LM(f),LM(g) )

I know all the above command in sage, but I want to write an algorithm to 
have these commands as a file so I can use it for many other polynomials 
without repeating the computation over and over! 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Parametrization in sage

2013-04-04 Thread Neda


Hello

Can we parametrize all solutions of the linear equations like 

x+2* y-2*z+w= -1

x+y+z-w =2

in sage?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: SIGSEGV error in large Code

2013-04-04 Thread Volker Braun
I think the patches need some rebasing (they also depend on other stuff). 
The first question is, does the same happen with your code on a newer glibc?

Mercurial is the version control system that we currently use.

SWO = strict weak order

On Thursday, April 4, 2013 5:08:36 PM UTC+1, FalkRichter wrote:
>
> I can reproduce the SIGSEGV example given on that page. 
> But I must confess that I'm unable to install the burcin pynac patches. 
>  
> hg_sage.apply("/home/frichter/sage-5.8/patches/trac9880_pynac_order_burcin_original.patch")
>  
>
> gives : (see below). 
> How to apply those patches without studying things for two years or so ? 
> I'm a simple SAGE user, I dont know Mercury or what SWO stands for, for 
> example. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: SIGSEGV error in large Code

2013-04-04 Thread FalkRichter
I can reproduce the SIGSEGV example given on that page. 
But I must confess that I'm unable to install the burcin pynac patches.
 
hg_sage.apply("/home/frichter/sage-5.8/patches/trac9880_pynac_order_burcin_original.patch")
 
gives : (see below).
How to apply those patches without studying things for two years or so ?
I'm a simple SAGE user, I dont know Mercury or what SWO stands for, for example.


###
cd "/home/frichter/sage-5.8/devel/sage" && sage --hg import   
"/home/frichter/sage-5.8/patches/trac9880_pynac_order_burcin_original.patch"
application de 
/home/frichter/sage-5.8/patches/trac9880_pynac_order_burcin_original.patch
unable to find 'ginac/Makefile.am' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/Makefile.am.rej
unable to find 'ginac/add.cpp' for patching
1 out of 1 hunks FAILED -- saving rejects to file ginac/add.cpp.rej
unable to find 'ginac/basic.cpp' for patching
1 out of 1 hunks FAILED -- saving rejects to file ginac/basic.cpp.rej
unable to find 'ginac/basic.h' for patching
1 out of 1 hunks FAILED -- saving rejects to file ginac/basic.h.rej
unable to find 'ginac/ex.cpp' for patching
1 out of 1 hunks FAILED -- saving rejects to file ginac/ex.cpp.rej
unable to find 'ginac/ex.h' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/ex.h.rej
unable to find 'ginac/expairseq.cpp' for patching
8 out of 8 hunks FAILED -- saving rejects to file ginac/expairseq.cpp.rej
unable to find 'ginac/expairseq.h' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/expairseq.h.rej
unable to find 'ginac/function.cpp' for patching
3 out of 3 hunks FAILED -- saving rejects to file ginac/function.cpp.rej
unable to find 'ginac/function.h' for patching
1 out of 1 hunks FAILED -- saving rejects to file ginac/function.h.rej
unable to find 'ginac/mul.cpp' for patching
4 out of 4 hunks FAILED -- saving rejects to file ginac/mul.cpp.rej
unable to find 'ginac/mul.h' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/mul.h.rej
file ginac/order.cpp already exists
1 out of 1 hunks FAILED -- saving rejects to file ginac/order.cpp.rej
file ginac/order.h already exists
1 out of 1 hunks FAILED -- saving rejects to file ginac/order.h.rej
unable to find 'ginac/power.cpp' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/power.cpp.rej
unable to find 'ginac/power.h' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/power.h.rej
unable to find 'ginac/symbol.cpp' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/symbol.cpp.rej
unable to find 'ginac/symbol.h' for patching
2 out of 2 hunks FAILED -- saving rejects to file ginac/symbol.h.rej
abandon : patch failed to apply


On Thursday, 4 April 2013 16:09:55 UTC+2, Volker Braun  wrote:
> Most likely this is http://trac.sagemath.org/9880
> 
> 
> On Thursday, April 4, 2013 2:52:05 PM UTC+1, FalkRichter wrote:
> No symbol table info available.
> #1  0x7f7f4673ac63 in print_enhanced_backtrace () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #2  0x7f7f4673ace9 in sigdie () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #3  0x7f7f4673a49f in sage_signal_handler () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #4  
> No symbol table info available.
> #5  0x7f7f24d6a8ea in GiNaC::basic::tinfo() const () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #6  0x7f7f24ea0ef1 in GiNaC::power::compare(GiNaC::basic const&) const () 
> from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #7  0x7f7f24d6ad1b in GiNaC::ex::compare(GiNaC::ex const&) const () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #8  0x7f7f24dbd993 in 
> GiNaC::expair_rest_is_less::operator()(GiNaC::expair const&, GiNaC::expair 
> const&) const () from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #9  0x7f7f24dc0981 in void 
> std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator std::vector > >, GiNaC::expair, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, GiNaC::expair, 
> GiNaC::expair_rest_is_less) () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #10 0x7f7f24dbfe84 in void 
> std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>    from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #11 0x7f7f24dbf4e2 in void 
> std::__final_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu

Re: [sage-support] Cleaning temporary/easily generated files from ~/.sage

2013-04-04 Thread kcrisman


On Thursday, April 4, 2013 11:30:55 AM UTC-4, Jim wrote:
>
> Deep among the .sage/sage_notebook.sagenb subdirectories is a worksheet 
> subdirectory 
> that contains a subdirectory called "snapshots" that contains numerous 
> *.bz2 files. 
>
> I assume these are snapshots of the worksheet. 
> What causes their creation? 
> Do they contain a revision history? 
>


At one time, long ago, they did do all these things.  Now they are probably 
all the same - every time you "save" you get one, I believe.   You can see 
the revisions by clicking on the "Revisions" tab on the upper right.

They used to be automatic saves, but that turned out to really really slow 
down notebook servers, so we removed that.  For some reason, at the same 
time,

PEOPLE ALSO MADE IT SO ALL REVISIONS OVERWRITE THE PREVIOUS ONES

and I, at least, have no idea how to fix that - and I tried on some of the 
previous codebase.  With the switch to the "flask" codebase a while ago it 
has perhaps become easier or harder to fix.

If so, how do I examine a previous revision of the worksheet? 
> If there is not a way to look at the revision history, then why are they 
> maintained? 
> Can I safely delete them? 
>

Most likely, you can delete all but perhaps the last one.  I would just do 
some spot checks but that's been my experience over the last quite-a-few 
years.

See also 

http://code.google.com/p/sagenb/issues/detail?id=58
http://code.google.com/p/sagenb/issues/detail?id=59
both from an now-unmaintained codebase whose issues, however, did NOT 
migrate to Github (!)
http://trac.sagemath.org/sage_trac/ticket/8776
probably bit rotted

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Cleaning temporary/easily generated files from ~/.sage

2013-04-04 Thread Jim Clark
Deep among the .sage/sage_notebook.sagenb subdirectories is a worksheet 
subdirectory
that contains a subdirectory called "snapshots" that contains numerous *.bz2 
files.

I assume these are snapshots of the worksheet.
What causes their creation?
Do they contain a revision history?
If so, how do I examine a previous revision of the worksheet?
If there is not a way to look at the revision history, then why are they 
maintained?
Can I safely delete them?

Thank you,
Jim Clark

On Apr 4, 2013, at 1:28 AM, David Loeffler wrote:

> You can pretty much freely kill anything other than the
> "sage_notebook.sagenb" subdirectory -- the rest is just cache files,
> logs, command-line history, etc. The notebook subdirectory is
> important, because it contains your saved worksheets (if you use the
> sage notebook) -- if you use sage purely from the command line you can
> remove that too.
> 
> David
> 
> On 4 April 2013 07:46, Rogério Brito  wrote:
>> Hi.
>> 
>> I am preparing myself to backup my systems and I would like to clean
>> unnecessary, temporary files (or those that can be easily generated)
>> before actually proceeding to the backup and I was wondering what
>> would be safe to remove from my ~/.sage directory.
>> 
>> Are there guildelines here? Sorry if this is a FAQ, but my google-fu
>> is failing me.
>> 
>> 
>> Thanks in advance,
>> 
>> --
>> Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: SIGSEGV error in large Code

2013-04-04 Thread Volker Braun
Can you try your code on a more recent linux distro? Newer glibcs are more 
forgiving (i.e. don't crash) about sorting with a non-swo.



On Thursday, April 4, 2013 3:17:21 PM UTC+1, FalkRichter wrote:
>
> Thanks for fast reply. I will investigate this.   
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: SIGSEGV error in large Code

2013-04-04 Thread FalkRichter
Thanks for fast reply. I will investigate this.  


On Thursday, 4 April 2013 16:09:55 UTC+2, Volker Braun  wrote:
> Most likely this is http://trac.sagemath.org/9880
> 
> 
> On Thursday, April 4, 2013 2:52:05 PM UTC+1, FalkRichter wrote:
> No symbol table info available.
> #1  0x7f7f4673ac63 in print_enhanced_backtrace () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #2  0x7f7f4673ace9 in sigdie () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #3  0x7f7f4673a49f in sage_signal_handler () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #4  
> No symbol table info available.
> #5  0x7f7f24d6a8ea in GiNaC::basic::tinfo() const () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #6  0x7f7f24ea0ef1 in GiNaC::power::compare(GiNaC::basic const&) const () 
> from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #7  0x7f7f24d6ad1b in GiNaC::ex::compare(GiNaC::ex const&) const () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #8  0x7f7f24dbd993 in 
> GiNaC::expair_rest_is_less::operator()(GiNaC::expair const&, GiNaC::expair 
> const&) const () from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #9  0x7f7f24dc0981 in void 
> std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator std::vector > >, GiNaC::expair, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, GiNaC::expair, 
> GiNaC::expair_rest_is_less) () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #10 0x7f7f24dbfe84 in void 
> std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>    from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #11 0x7f7f24dbf4e2 in void 
> std::__final_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>    from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #12 0x7f7f24dbec07 in void 
> std::sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>    from /home/frichter/sage-5.8/local/lib/libpynac.so.4

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: SIGSEGV error in large Code

2013-04-04 Thread Volker Braun
Most likely this is http://trac.sagemath.org/9880


On Thursday, April 4, 2013 2:52:05 PM UTC+1, FalkRichter wrote:
>
> No symbol table info available.
> #1  0x7f7f4673ac63 in print_enhanced_backtrace () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #2  0x7f7f4673ace9 in sigdie () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #3  0x7f7f4673a49f in sage_signal_handler () from 
> /home/frichter/sage-5.8/local/lib/libcsage.so
> No symbol table info available.
> #4  
> No symbol table info available.
> #5  0x7f7f24d6a8ea in GiNaC::basic::tinfo() const () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #6  0x7f7f24ea0ef1 in GiNaC::power::compare(GiNaC::basic const&) const 
> () from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #7  0x7f7f24d6ad1b in GiNaC::ex::compare(GiNaC::ex const&) const () 
> from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #8  0x7f7f24dbd993 in 
> GiNaC::expair_rest_is_less::operator()(GiNaC::expair const&, GiNaC::expair 
> const&) const () from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #9  0x7f7f24dc0981 in void 
> std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair, GiNaC::expair_rest_is_less) () from 
> /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #10 0x7f7f24dbfe84 in void 
> std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #11 0x7f7f24dbf4e2 in void 
> std::__final_insertion_sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>from /home/frichter/sage-5.8/local/lib/libpynac.so.4
> No symbol table info available.
> #12 0x7f7f24dbec07 in void 
> std::sort<__gnu_cxx::__normal_iterator std::vector > >, 
> GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator std::vector > >, 
> __gnu_cxx::__normal_iterator std::allocator > >, GiNaC::expair_rest_is_less) ()
>from /home/frichter/sage-5.8/local/lib/libpynac.so.4
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] passing variables from one worksheet to the other

2013-04-04 Thread William Stein
On Apr 4, 2013 6:21 AM, "evren"  wrote:
>
> Professor Stein,
>
> Is it possible to save more than one variable at a time to \tmp?
>

Yes - use multiple files or put multiple variables together in a list...
> Best,
>
> Evren
>
> On Thursday, April 4, 2013 12:36:10 AM UTC-4, William wrote:
>>
>> On Wed, Apr 3, 2013 at 6:50 PM, evren  wrote:
>> > Hi everyone,
>> >
>> > I use sage online.   How can I pass variables from one worksheet to
the other?  For instance, if I have a matrix in one worksheet, how do I
transfer it to another worksheet?
>> >
>>
>> You could save it to /tmp, e.g., something link
>>
>>  save(m, '/tmp/a.sobj')# in one
>>
>>
>>  m = load('/tmp/a.sobj')   # in the other
>>
>> William
>> > Evren
>> >
>> > --
>> > You received this message because you are subscribed to the Google
Groups "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
an email to sage-support...@googlegroups.com.
>> > To post to this group, send email to sage-s...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> William Stein
>> Professor of Mathematics
>> University of Washington
>> http://wstein.org
>
> --
> You received this message because you are subscribed to the Google Groups
"sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] SIGSEGV error in large Code

2013-04-04 Thread FalkRichter
Hi, 

sage-5.8, install from source on Ubuntu10.04 LT.
the SIGSEGV has been reproduced on a Scientifuc Linux node as well.

Unfortunately I cannot not isolate it. It occurs in the middle of
the run after doing similar things a thousand times before.
Probably caused in one of the libraries used for treatment of symbolic
expressions at least thats where it always stops, in gmul or in subs. 

I run it with -gbd. The backtrace is the only thing I can show you (see below)
for now. The code is rather large. 
The last line of my code is 
865varfu=((f1-f)**_sage_const_2 
+(f2-f)**_sage_const_2)**_sage_const_0p5 *avrho
... some multiplication of symbolic functions f1,f,avrho
In this example it sage crashes stops at trying gsub.  

I dont know how to get a Valgrind report .Always when the Segfault appears SAGE 
switches to the gdb report. 

How to proceed ? 

I really need to get rid of this, else I will lose
a lot of more time - I think of eliminating all symbolic expressions in my code
to avoid usage of sage libraries.

ciao & thanks

Here is the crash report: 


GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
0x7f7f493bf44e in waitpid () from /lib/libpthread.so.0

Stack backtrace
---
No symbol table info available.
#1  0x7f7f4673ac63 in print_enhanced_backtrace () from 
/home/frichter/sage-5.8/local/lib/libcsage.so
No symbol table info available.
#2  0x7f7f4673ace9 in sigdie () from 
/home/frichter/sage-5.8/local/lib/libcsage.so
No symbol table info available.
#3  0x7f7f4673a49f in sage_signal_handler () from 
/home/frichter/sage-5.8/local/lib/libcsage.so
No symbol table info available.
#4  
No symbol table info available.
#5  0x7f7f24d6a8ea in GiNaC::basic::tinfo() const () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#6  0x7f7f24ea0ef1 in GiNaC::power::compare(GiNaC::basic const&) const () 
from /home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#7  0x7f7f24d6ad1b in GiNaC::ex::compare(GiNaC::ex const&) const () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#8  0x7f7f24dbd993 in GiNaC::expair_rest_is_less::operator()(GiNaC::expair 
const&, GiNaC::expair const&) const () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#9  0x7f7f24dc0981 in void 
std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator > >, GiNaC::expair, 
GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator > >, GiNaC::expair, 
GiNaC::expair_rest_is_less) () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#10 0x7f7f24dbfe84 in void 
std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator > >, 
GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator > >, 
__gnu_cxx::__normal_iterator > >, GiNaC::expair_rest_is_less) ()
   from /home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#11 0x7f7f24dbf4e2 in void 
std::__final_insertion_sort<__gnu_cxx::__normal_iterator > >, 
GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator > >, 
__gnu_cxx::__normal_iterator > >, GiNaC::expair_rest_is_less) ()
   from /home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#12 0x7f7f24dbec07 in void 
std::sort<__gnu_cxx::__normal_iterator > >, 
GiNaC::expair_rest_is_less>(__gnu_cxx::__normal_iterator > >, 
__gnu_cxx::__normal_iterator > >, GiNaC::expair_rest_is_less) ()
   from /home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#13 0x7f7f24dbb9ab in GiNaC::expairseq::canonicalize() () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#14 0x7f7f24dbad2a in 
GiNaC::expairseq::construct_from_epvector(std::vector > const&, bool) () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#15 0x7f7f24d66076 in 
GiNaC::add::add(std::auto_ptr > >, GiNaC::ex const&) () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#16 0x7f7f24e5a7b3 in GiNaC::mul::eval(int) const () from 
/home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#17 0x7f7f24db4648 in GiNaC::ex::construct_from_basic(GiNaC::basic const&) 
() from /home/frichter/sage-5.8/local/lib/libpynac.so.4
No symbol table info available.
#18 0x7f7f24d6acb7 in GiNaC::ex::ex(GiNaC::basic const&) 

Re: [sage-support] passing variables from one worksheet to the other

2013-04-04 Thread evren
Thanks!

Evren

On Thursday, April 4, 2013 5:07:40 AM UTC-4, Volker Braun wrote:
>
> Alternatively, if its a small enough matrix, use sage_input() and 
> copy&paste:
>
> sage: m = random_matrix(ZZ,3)
> sage: m
> [ 1 -1 -1]
> [ 3  0  6]
> [41  2 10]
> sage: sage_input(m)
> matrix(ZZ, [[1, -1, -1], [3, 0, 6], [41, 2, 10]])
>
>
>
> On Thursday, April 4, 2013 5:36:10 AM UTC+1, William wrote:
>>
>> You could save it to /tmp, e.g., something link 
>>
>>  save(m, '/tmp/a.sobj')# in one 
>>
>>
>>  m = load('/tmp/a.sobj')   # in the other 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] passing variables from one worksheet to the other

2013-04-04 Thread evren
Professor Stein,

Is it possible to save more than one variable at a time to \tmp?

Best,

Evren

On Thursday, April 4, 2013 12:36:10 AM UTC-4, William wrote:
>
> On Wed, Apr 3, 2013 at 6:50 PM, evren > 
> wrote: 
> > Hi everyone, 
> > 
> > I use sage online.   How can I pass variables from one worksheet to the 
> other?  For instance, if I have a matrix in one worksheet, how do I 
> transfer it to another worksheet? 
> > 
>
> You could save it to /tmp, e.g., something link 
>
>  save(m, '/tmp/a.sobj')# in one 
>
>
>  m = load('/tmp/a.sobj')   # in the other 
>
> William 
> > Evren 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-support...@googlegroups.com . 
> > To post to this group, send email to 
> > sage-s...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/sage-support?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Re: Fwd: sage.maa.org

2013-04-04 Thread David Joyner
On Thu, Apr 4, 2013 at 8:06 AM, kcrisman  wrote:

>
>
> On Wednesday, April 3, 2013 8:24:40 PM UTC-4, kcrisman wrote:
>>
>>
>>
>> On Wednesday, April 3, 2013 6:42:37 PM UTC-4, Jason Grout wrote:
>>>
>>> On 4/3/13 5:23 PM, David Joyner wrote:
>>> > Hi:
>>> > Has anyone on sage-support tested out sage.maa.org <
>>> http://sage.maa.org>?
>>> > I tried (very impatiently) a fw times and found it slow.
>>> > - David
>>>
>>> That server was originally set up for the PREP workshop participants.  I
>>> administered it for the first two years, and Dan Drake administers it
>>> now (and has been for the last year or so).
>>>
>>> I don't know if it is intended to be a truly public server...
>>>
>>
>> Not really, no.
>>
>
> Now that I think about it, you shouldn't be able to make an account on it
> anyway...  Dan, that's probably because OpenID is now allowed or something.
>  In principle, one should have to know "the magic word" which only PREP
> participants got.
>


Okay. I never did get an account, but I assumed it was just because it was
a slow server
and I was very impatient


>  --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Polynomial command

2013-04-04 Thread Neda Dargahi
* by the way !


On Thu, Apr 4, 2013 at 5:13 PM, Neda Dargahi  wrote:

> I asked this question befor but no one answerd so i think maybe if I know
> how towrite F maybe I can solve this!
>  yes I read that page but still dont know how to write F
> bye the way,thank you so much for answering.
>
>
> On Thu, Apr 4, 2013 at 5:05 PM, John Cremona wrote:
>
>>
>>
>>
>>
>>
>> On 4 April 2013 13:27, Neda Dargahi  wrote:
>>
>>>
>>>   no, ijust want to know how can I compute the remainder on division of
>>> the given polynomial f by the order set F using grlex order in sage? thank
>>> you f= x^*y^2+x^3*y^2-y+1 F=(x*y^2-x , x-y^3)
>>>
>>>
>>
>> I'm not sure how I was supposed to guess that from the question  "How can
>> I write a polynomial  f(x^2-4,x^2-2*x) in sage?"
>>
>> Have you read all that the reference manual has to say on multivariable
>> polynomial rings (see
>> http://www.sagemath.org/doc/reference/polynomial_rings/polynomial_rings_multivar.html)?
>> That would seem to be relevant.
>>
>>
>>> On Thu, Apr 4, 2013 at 4:36 PM, John Cremona wrote:
>>>
 Like this?

 sage: R. = QQ[]
 sage: f = x^2+y^2 # for example
 sage: f(x^2-4,x^2-2*x)
 2*x^4 - 4*x^3 - 4*x^2 + 16

 John Cremona

 On 4 April 2013 12:58, Neda  wrote:
 >
 > Hello
 > How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
 > thank you
 >
 > --
 > You received this message because you are subscribed to the Google
 Groups
 > "sage-support" group.
 > To unsubscribe from this group and stop receiving emails from it,
 send an
 > email to sage-support+unsubscr...@googlegroups.com.
 > To post to this group, send email to sage-support@googlegroups.com.
 > Visit this group at http://groups.google.com/group/sage-support?hl=en
 .
 > For more options, visit https://groups.google.com/groups/opt_out.
 >
 >

 --
 You received this message because you are subscribed to the Google
 Groups "sage-support" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to sage-support+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-support@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-support?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.



>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-support+unsubscr...@googlegroups.com.
>>> To post to this group, send email to sage-support@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-support+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-support@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Polynomial command

2013-04-04 Thread Neda Dargahi
I asked this question befor but no one answerd so i think maybe if I know
how towrite F maybe I can solve this!
 yes I read that page but still dont know how to write F
bye the way,thank you so much for answering.


On Thu, Apr 4, 2013 at 5:05 PM, John Cremona  wrote:

>
>
>
>
>
> On 4 April 2013 13:27, Neda Dargahi  wrote:
>
>>
>>   no, ijust want to know how can I compute the remainder on division of
>> the given polynomial f by the order set F using grlex order in sage? thank
>> you f= x^*y^2+x^3*y^2-y+1 F=(x*y^2-x , x-y^3)
>>
>>
>
> I'm not sure how I was supposed to guess that from the question  "How can
> I write a polynomial  f(x^2-4,x^2-2*x) in sage?"
>
> Have you read all that the reference manual has to say on multivariable
> polynomial rings (see
> http://www.sagemath.org/doc/reference/polynomial_rings/polynomial_rings_multivar.html)?
> That would seem to be relevant.
>
>
>> On Thu, Apr 4, 2013 at 4:36 PM, John Cremona wrote:
>>
>>> Like this?
>>>
>>> sage: R. = QQ[]
>>> sage: f = x^2+y^2 # for example
>>> sage: f(x^2-4,x^2-2*x)
>>> 2*x^4 - 4*x^3 - 4*x^2 + 16
>>>
>>> John Cremona
>>>
>>> On 4 April 2013 12:58, Neda  wrote:
>>> >
>>> > Hello
>>> > How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
>>> > thank you
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "sage-support" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> > email to sage-support+unsubscr...@googlegroups.com.
>>> > To post to this group, send email to sage-support@googlegroups.com.
>>> > Visit this group at http://groups.google.com/group/sage-support?hl=en.
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>> >
>>> >
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-support+unsubscr...@googlegroups.com.
>>> To post to this group, send email to sage-support@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-support+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-support@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Polynomial command

2013-04-04 Thread John Cremona
On 4 April 2013 13:27, Neda Dargahi  wrote:

>
>   no, ijust want to know how can I compute the remainder on division of
> the given polynomial f by the order set F using grlex order in sage? thank
> you f= x^*y^2+x^3*y^2-y+1 F=(x*y^2-x , x-y^3)
>
>

I'm not sure how I was supposed to guess that from the question  "How can I
write a polynomial  f(x^2-4,x^2-2*x) in sage?"

Have you read all that the reference manual has to say on multivariable
polynomial rings (see
http://www.sagemath.org/doc/reference/polynomial_rings/polynomial_rings_multivar.html)?
That would seem to be relevant.


> On Thu, Apr 4, 2013 at 4:36 PM, John Cremona wrote:
>
>> Like this?
>>
>> sage: R. = QQ[]
>> sage: f = x^2+y^2 # for example
>> sage: f(x^2-4,x^2-2*x)
>> 2*x^4 - 4*x^3 - 4*x^2 + 16
>>
>> John Cremona
>>
>> On 4 April 2013 12:58, Neda  wrote:
>> >
>> > Hello
>> > How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
>> > thank you
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to sage-support+unsubscr...@googlegroups.com.
>> > To post to this group, send email to sage-support@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-support+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-support@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Polynomial command

2013-04-04 Thread Neda Dargahi
  no, ijust want to know how can I compute the remainder on division of the
given polynomial f by the order set F using grlex order in sage? thank you
f= x^*y^2+x^3*y^2-y+1 F=(x*y^2-x , x-y^3)


On Thu, Apr 4, 2013 at 4:36 PM, John Cremona  wrote:

> Like this?
>
> sage: R. = QQ[]
> sage: f = x^2+y^2 # for example
> sage: f(x^2-4,x^2-2*x)
> 2*x^4 - 4*x^3 - 4*x^2 + 16
>
> John Cremona
>
> On 4 April 2013 12:58, Neda  wrote:
> >
> > Hello
> > How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
> > thank you
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sage-support" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to sage-support+unsubscr...@googlegroups.com.
> > To post to this group, send email to sage-support@googlegroups.com.
> > Visit this group at http://groups.google.com/group/sage-support?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Fwd: sage.maa.org

2013-04-04 Thread kcrisman


On Wednesday, April 3, 2013 8:24:40 PM UTC-4, kcrisman wrote:
>
>
>
> On Wednesday, April 3, 2013 6:42:37 PM UTC-4, Jason Grout wrote:
>>
>> On 4/3/13 5:23 PM, David Joyner wrote: 
>> > Hi: 
>> > Has anyone on sage-support tested out sage.maa.org ? 
>>
>> > I tried (very impatiently) a fw times and found it slow. 
>> > - David 
>>
>> That server was originally set up for the PREP workshop participants.  I 
>> administered it for the first two years, and Dan Drake administers it 
>> now (and has been for the last year or so). 
>>
>> I don't know if it is intended to be a truly public server... 
>>
>
> Not really, no. 
>

Now that I think about it, you shouldn't be able to make an account on it 
anyway...  Dan, that's probably because OpenID is now allowed or something. 
 In principle, one should have to know "the magic word" which only PREP 
participants got. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Polynomial command

2013-04-04 Thread John Cremona
Like this?

sage: R. = QQ[]
sage: f = x^2+y^2 # for example
sage: f(x^2-4,x^2-2*x)
2*x^4 - 4*x^3 - 4*x^2 + 16

John Cremona

On 4 April 2013 12:58, Neda  wrote:
>
> Hello
> How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
> thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Polynomial command

2013-04-04 Thread Neda

Hello
How can I write a polynomial  f(x^2-4,x^2-2*x) in sage?
thank you

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] passing variables from one worksheet to the other

2013-04-04 Thread Volker Braun
Alternatively, if its a small enough matrix, use sage_input() and 
copy&paste:

sage: m = random_matrix(ZZ,3)
sage: m
[ 1 -1 -1]
[ 3  0  6]
[41  2 10]
sage: sage_input(m)
matrix(ZZ, [[1, -1, -1], [3, 0, 6], [41, 2, 10]])



On Thursday, April 4, 2013 5:36:10 AM UTC+1, William wrote:
>
> You could save it to /tmp, e.g., something link 
>
>  save(m, '/tmp/a.sobj')# in one 
>
>
>  m = load('/tmp/a.sobj')   # in the other 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] /Applications/sage/spkg/bin/sage: line 270: 3401 Segmentation fault sage-location

2013-04-04 Thread dame diongue
Hello guys 
I'm a a sage begginer and i copyed the sage folder to my application 
folder. And when i try to execute sage via the terminal with root profil i 
have this error: /Applications/sage/spkg/bin/sage: line 270:  3401 
Segmentation fault  sage-location

Please i need your help 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Cleaning temporary/easily generated files from ~/.sage

2013-04-04 Thread David Loeffler
You can pretty much freely kill anything other than the
"sage_notebook.sagenb" subdirectory -- the rest is just cache files,
logs, command-line history, etc. The notebook subdirectory is
important, because it contains your saved worksheets (if you use the
sage notebook) -- if you use sage purely from the command line you can
remove that too.

David

On 4 April 2013 07:46, Rogério Brito  wrote:
> Hi.
>
> I am preparing myself to backup my systems and I would like to clean
> unnecessary, temporary files (or those that can be easily generated)
> before actually proceeding to the backup and I was wondering what
> would be safe to remove from my ~/.sage directory.
>
> Are there guildelines here? Sorry if this is a FAQ, but my google-fu
> is failing me.
>
>
> Thanks in advance,
>
> --
> Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC
> http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
> DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.