[sage-support] Re: How to refer to the reference manual when writing a tutorial?

2013-02-09 Thread kcrisman



  Maybe #6495 would make this possible? Just a guess. 
  
  
  Yes, I just check this. With #6495 in place, I added this to some random 
  file in the developer's guide, rebuilt it, and the link worked: 

 Great! I hope the same holds for thematic tutorials... 


Huh, I didn't expect that, but that is great news. 

-- 
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: Sage Crash Report

2013-02-09 Thread kcrisman
Am I correct in saying that you opened Sage for the first time, and then 
typed

sage: notebook()

and that's when it crashed?  It looks like your permissions are not 
correct, or at any rate that you do not have permission to make a new 
directory in your .sage/ directory

OSError: [Errno 13] Permission denied: 
'/home/surendran/.sage/temp/angeli_acer/2800'


What do you get with 

ls -al | grep .sage

from the command line, and do you have admin rights on the computer you are 
using?


On Friday, February 8, 2013 3:08:37 PM UTC-5, kks wrote:

 Oops, Sage crashed. We do our best to make it stable, but...

 A crash report was automatically generated with the following information:
   - A verbatim copy of the crash traceback.
   - A copy of your input history during this session.
   - Data on your current Sage configuration.

 It was left in the file named:
 '/home/surendran/.sage/ipython/Sage_crash_report.txt'
 If you can email this file to the developers, the information in it will 
 help
 them in understanding and correcting the problem.

 You can mail it to: sage-support at sage-s...@googlegroups.comjavascript:
 with the subject 'Sage Crash Report'.

 If you want to do it now, the following command will work (under Unix):
 mail -s 'Sage Crash Report' sage-s...@googlegroups.com javascript:  
 /home/surendran/.sage/ipython/Sage_crash_report.txt

 To ensure accurate tracking of this issue, please file a report about it 
 at:
 http://trac.sagemath.org/sage_trac

 Regards

 Surendran

 -- 
 247/3/1 Sadafuli Park, Off DP Road, Baner, Pune 411007
 Aadhar : 9559 4359 7055
 Phone  :+91-20-27298293


-- 
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] berlekamp massey / connection polynomial / lfsr

2013-02-09 Thread evrim
Hello, this is my first post to the list.

I am trying to use B/M algo included in Sage. Now,

berlekamp_massey([GF(2)(0),0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0])

evals to f(x)=x^5 + x^3 + x^2 + x + 1 which is the minimal poly.
Also, I know that  when I take the reciprocal (x^5*f(1/x)), I find
g(x)=x^5+x^4+x^3+x^2+1 which is the connection poly. of this LFSR.

My question is how can I regenerate this sequence using this connection poly.?
Providing initial states 0,0,1,0,1 yields to another sequence:

(0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 1 0 0 1 0 0 1 1 0 0)

I've tried several different approaches but got no luck.

--
Thank you,
evrim.

-- 
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] berlekamp massey / connection polynomial / lfsr

2013-02-09 Thread David Joyner
On Sat, Feb 9, 2013 at 9:34 AM, evrim evrim...@gmail.com wrote:
 Hello, this is my first post to the list.

 I am trying to use B/M algo included in Sage. Now,

 berlekamp_massey([GF(2)(0),0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0])

 evals to f(x)=x^5 + x^3 + x^2 + x + 1 which is the minimal poly.
 Also, I know that  when I take the reciprocal (x^5*f(1/x)), I find
 g(x)=x^5+x^4+x^3+x^2+1 which is the connection poly. of this LFSR.

 My question is how can I regenerate this sequence using this connection poly.?

Do the docstrings in lfsr help?
http://hg.sagemath.org/sage-main/file/ec1fb07db6e2/sage/crypto/lfsr.py#l1

 Providing initial states 0,0,1,0,1 yields to another sequence:

 (0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 1 0 0 1 0 0 1 1 0 0)

 I've tried several different approaches but got no luck.

 --
 Thank you,
 evrim.

 --
 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] Possible to have a notebook server without state like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Sage notebooks are great but take a lot of RAM (I assume) partially because 
they need to remember all the history
of the current session.

Is it possible to trade history for responsiveness/memory by somehow 
running the notebook server
to accept single commands and then forget the results?

I'm envisioning something like wolframalpha.com where a teacher can ask all 
students to type
single commands at a time without the need for saving history.

Chris


-- 
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] Possible to have a notebook server without state like wolframalpha.com just for single commands?

2013-02-09 Thread David Joyner
On Sat, Feb 9, 2013 at 2:04 PM, Chris Seberino cseber...@gmail.com wrote:
 Sage notebooks are great but take a lot of RAM (I assume) partially because
 they need to remember all the history
 of the current session.

 Is it possible to trade history for responsiveness/memory by somehow running
 the notebook server
 to accept single commands and then forget the results?


Do you mean like http://aleph.sagemath.org/ ?

There is also an iphone and andriod cell-phone app.


 I'm envisioning something like wolframalpha.com where a teacher can ask all
 students to type
 single commands at a time without the need for saving history.

 Chris


 --
 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] berlekamp massey / connection polynomial / lfsr

2013-02-09 Thread evrim
On Saturday, February 9, 2013 4:40:00 PM UTC+2, David Joyner wrote:
 Do the docstrings in lfsr help?
 http://hg.sagemath.org/sage-main/file/ec1fb07db6e2/sage/crypto/lfsr.py#l1

Hello,

Thanks for pointing the docs, the following site does also implement B/M over 
GF(2).

http://bma.bozhu.me/

Interesting enough, it gives me:

x^19 + x^18 + x^17 + x^14 + x^13 + x^10 + x^9 + x^8 + x^6 + x^3 + x^2 + 1

Wow! A degree 19 polynomial. As far as I recall, B/M cannot generate a 
polynomial degree  (sequence length / 2). My seq. has length 36. So, max 
degree can be 18. It seems their implementation is a bit off.

I still have no clue about my question:( 
Tried decimating the sequence of the lfsr, yet no luck.

Thanks,
evrim.

-- 
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: Don't know a PDF representation for alpha in graphics?

2013-02-09 Thread john_perry_usm
I have uploaded a patch to the trac, ticket 13732, which fixes this for all 
the plot commands that seem to accept alpha. (To find them, I performed a grep 
alpha sage/plot/*py and looked at those files.) The doctests in sage/plot 
pass for me, though I had to make some changes to older doctests because 
float gives a different output; I haven't yet tried doctesting anything 
outside of that directory.

I couldn't find anything that made the save command choke like this except 
the alpha option, though I didn't try very hard. I hope someone reviews it; 
it should be easy, unless I did something stupid.

john perry

-- 
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: Don't know a PDF representation for alpha in graphics?

2013-02-09 Thread kcrisman



 With this change, I can sage PDF with alpha, and it probably fixes a lot 
 of other thing


Huh.  See http://trac.sagemath.org/sage_trac/ticket/14074 for an example 
where alpha works fine with saving as a pdf.  Of course, you could always 
put the alpha to float(.5) or something...
 

 s, as well.

 

-- 
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: Clearing the Terminal when running Sage

2013-02-09 Thread Kannappan Sampath
Thank you everyone for the help!

But, in the octave_console provided by Sage, ctrl+L does not work! Isn't
this bug (given that it works when I run Octave from outside Sage)? (clear
should not and does not work!)

~KnS


On Sat, Feb 9, 2013 at 12:59 PM, John H Palmieri jhpalmier...@gmail.comwrote:



 On Friday, February 8, 2013 7:40:52 PM UTC-8, KnS wrote:

  I think that clear (with no parentheses) clears the screen.
 reset('a') is probably the command you're looking for.


 No, I wanted to clear the screen. I brought in Octave for want of an
 anology and to say the fact that what works when I start Octave myself does
 not work when I start it from Sage (the Ctrl + L). And, unfortunately,
 clear does not clear the screen -- it just returns the prompt on the next
 line. Ctrl+L works like a Tab in the Sage Console...


 Sorry, in the beta releases of sage 5.7, clear clears the screen. As P
 Purkayastha says, try !clear in earlier versions of Sage.

 --
 John

  --
 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] Possible to have a notebook server without state like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Oh wow that is soo awesome.  Someone read my mind.

I've been selling Sage to my students with a slightly inadequate server but
Sage Cell Server will dispense with the need for passwords,
memory issues and more.

Their impressions of Sage are about to go up tenfold.

A thousand thank yous.

Chris

-- 
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.