Re: [sage-edu] n() aka numerical_approx() functionality in python?

2017-05-14 Thread Luiz Felipe Martins
If you are trying to have your students develop a symbolic library by themselves, programming something like n() would indeed be quite nontrivial, since you have to use a specific numeric algorithm to find an arbitrary precision approximation for any object that is in the library. You could set

Re: [sage-edu] Another Sage review - from CUNY Math blog

2013-03-22 Thread Luiz Felipe Martins
It may be little consolation for end users, but people do not realize what a tour de force SageTeX is. It also took me a while to get SageTeX to work on my Mac, but it is worth every minute of it. On Thu, Mar 21, 2013 at 9:15 AM, kcrisman wrote: > I hadn't seen this before. I think it definitely

Re: [sage-edu] Re: [sage-notebook] Re: Learn Python in one web browser

2011-11-16 Thread Luiz Felipe Martins
Actually, would the authors be willing to share how things are running in the background (meaning, in the server side)? Something on the lines of Jason Grout's instructions in https://github.com/jasongrout/simple-python-db-compute On Wed, Nov 16, 2011 at 1:56 PM, William Stein wrote: > On Wed,

Re: [sage-edu] Re: unexpected int division

2011-10-30 Thread Luiz Felipe Martins
Could there be a function slen() that retuns a Sage integer (analogous to srange())? Or you can simply define it in your own worksheet: def slen(lst): return Integer(len(lst)) On Sun, Oct 30, 2011 at 12:53 AM, Jason Grout wrote: > On 10/29/11 10:24 PM, kcrisman wrote: >> >> >> On Oct 29, 10

Re: [sage-edu] Re: Fwd: Possible to do quizzes and/or practice problems in notebook?

2011-08-30 Thread Luiz Felipe Martins
This probably is also a "subotimal" solution, but I have written Python code to generate exams using SageTeX, I have even a tentative interface using PyQT. If anyone is willing to try it, I'll be glad to send it. It is not still in a form I would feel comfortable distributing it widely, but of cour

Re: [sage-edu] Sage for lab submissions.

2011-01-31 Thread Luiz Felipe Martins
> > I don't think opening it will change the timestamp.  However, changing > something would.  I tell my students not to touch their worksheet after the > deadline (on penalty of it not being accepted as a "late" worksheet).  Then > I just download all the worksheets after the deadline (say by the

Re: [sage-edu] Sage for lab submissions.

2011-01-31 Thread Luiz Felipe Martins
were any changes...) On Mon, Jan 31, 2011 at 6:57 AM, Jason Grout wrote: > On 1/30/11 11:50 AM, Luiz Felipe Martins wrote: >> >> The thing is that I want to have some sort of time stamp so I know >> they finished by the deadline. My understanding is that they could >>

Re: [sage-edu] Sage for lab submissions.

2011-01-30 Thread Luiz Felipe Martins
e time. > > HTH, > A. Jorge Garcia > Applied Math & CS > Baldwin SHS & Nassau CC > http://shadowfaxrant.blogspot.com > http://www.youtube.com/calcpage2009 > Sent from my iPod > > On Jan 30, 2011, at 12:50 PM, Luiz Felipe Martins > wrote: > >> The

Re: [sage-edu] Sage for lab submissions.

2011-01-30 Thread Luiz Felipe Martins
The thing is that I want to have some sort of time stamp so I know they finished by the deadline. My understanding is that they could keep changing the shared worksheets, right? On Sun, Jan 30, 2011 at 11:50 AM, A. Jorge Garcia wrote: > If you and your students all have accounts on the same serve

Re: [sage-edu] Re: Sage for lab submissions.

2011-01-30 Thread Luiz Felipe Martins
That's quite good enough for now! Thanks. On Sun, Jan 30, 2011 at 11:42 AM, Rob Beezer wrote: > The "upload" process into the notebook will also accept a zip file of > worksheets. > > So if you "zip" a directory full of your students' work (*.sws) into a > single zip file, you can upload that and

Re: [sage-edu] Re: computerised exams?

2011-01-20 Thread Luiz Felipe Martins
It seems this topic branched into two different issues... I had a similar problem with a recent Sage installation I made (In ubuntu). I installed Sage, and SageTex according to the "official" documentation (get SageTex from the Sage site, set a local texmf structure, etc.), and had exceptions runn

Re: [sage-edu] computerised exams?

2011-01-20 Thread Luiz Felipe Martins
e would be: "Find all solutions of the equation ax=b in Z/mZ. You are only allowed to use basic arithmetic with integers and the xgcd command for this problem." On Thu, Jan 20, 2011 at 10:05 PM, Luiz Felipe Martins wrote: > I teach a course in which all exams require the use of Sage.

Re: [sage-edu] computerised exams?

2011-01-20 Thread Luiz Felipe Martins
I teach a course in which all exams require the use of Sage. I do this only in an upper-level course, with at most 20 students. The exams always have two parts. In the in-class part, I ask them to use Sage for the computations and write the solutions on paper with an explanation of the method of so

Re: [sage-edu] To keep away slugs, use beer

2011-01-13 Thread Luiz Felipe Martins
SUMO = Sage User Movement On Thu, Jan 13, 2011 at 1:31 PM, kcrisman wrote: > Or so my mother always taught me. > > However, this is about the potential for having a nifty acronym for > Sage user groups. We know about TUGs, and there are R user groups > (very successful ones, in fact) all over t

Re: [sage-edu] display problem

2010-10-10 Thread Luiz Felipe Martins
I had a similar problem a couple months ago. It happened whey I upgraded Sage. I tried several things, and kept getting a "permission error" when trying to evaluate a cell. (BTW, to which port is your server listen to?) I then decided to try the following instructions, by Jason Grout: http://wiki

Re: [sage-edu] Re: hmmm ... this is interesting

2009-11-29 Thread Luiz Felipe Martins
This is how round(x) is in the C library: (http://www.gnu.org/s/libc/manual/html_node/Rounding-Functions.html) Function: double round (double x) — Function: float roundf (float x) — Function: long double roundl (long double x) These functions are similar to rint, but the

[sage-edu] Re: Can you make @interact have a variable # of input boxes...

2009-01-22 Thread Luiz Felipe Martins
On Thu, Jan 22, 2009 at 11:47 AM, Jonathan wrote: > > Thanks, this looks like it might do what I want. I have some > questions for below on exactly what you are doing. > > On Jan 22, 10:30 am, Luiz Felipe Martins > wrote: >> This worked for me, but it is definitely hac

[sage-edu] Re: Can you make @interact have a variable # of input boxes...

2009-01-22 Thread Luiz Felipe Martins
This worked for me, but it is definitely hackish and cumbersome. You basically define the function in a string, exec the string to create the function, and then use the function interact, instead using the decoration @interact. (I've read it is frowned up, but...) # first cell fields = ['a','b','

[sage-edu] Re: Howto setup local sagenb?

2009-01-13 Thread Luiz Felipe Martins
That's the reason I didn't post it anywhere else. I knew nothing about this stuff until a month ago, and would not feel comfortable making it look "official" before others look it over. On Tue, Jan 13, 2009 at 8:35 AM, kcrisman wrote: > > > > On Jan 12, 8:42 pm

[sage-edu] Re: Image processing

2009-01-10 Thread Luiz Felipe Martins
Sure, once I actually write them. So far I just experimented with the stuff. On Sat, Jan 10, 2009 at 12:25 PM, David Joyner wrote: > > On Sat, Jan 10, 2009 at 11:54 AM, Luiz Felipe Martins > wrote: >> >> Thanks, I will try it. >> >> What I want do is pretty

[sage-edu] Re: Image processing

2009-01-10 Thread Luiz Felipe Martins
Thanks, I will try it. What I want do is pretty simple, simply open an image, add noise to it and try error-correcting codes. I was able to do it easily with PIL. I am actually thinking of what to use for bit operations, etc. My plan is to simply use Numpy, but octave may be an alternative. On S

[sage-edu] Re: Image processing

2009-01-09 Thread Luiz Felipe Martins
I just got pyglet to do what I want, it is pretty easy to use and well documented. Since it is already in the standard distribution, as part of sympy, would it not make sense simply making it more straightforward to import? On Fri, Jan 9, 2009 at 10:06 AM, David Joyner wrote: > > On Fri, Jan 9,

[sage-edu] Re: sage worksheet's by Prof Cha

2009-01-07 Thread Luiz Felipe Martins
I installed it and it is working. I'll keep working in my class preparation using it and then will report. On Wed, Jan 7, 2009 at 9:39 AM, wrote: > > Luiz Felipe Martins wrote: >> Before I start: to which Sage version should I apply this? Should I >> download a develop

[sage-edu] Re: sage worksheet's by Prof Cha

2009-01-07 Thread Luiz Felipe Martins
Before I start: to which Sage version should I apply this? Should I download a development version? I noticed that current distributions are "3.2", and in TRAC I see things like "3.3", "3.4". On Wed, Jan 7, 2009 at 12:02 AM, wrote: > > Luiz Felipe Martin

[sage-edu] Re: sage worksheet's by Prof Cha

2009-01-07 Thread Luiz Felipe Martins
Thanks, I'll try it. On Wed, Jan 7, 2009 at 12:02 AM, wrote: > > Luiz Felipe Martins wrote: >> Here is a basic question: how to enter the HTML text between cells? Is >> there a handy way to do it? The only thing I could figure out is to >> jump back and fo

[sage-edu] Re: sage worksheet's by Prof Cha

2009-01-06 Thread Luiz Felipe Martins
Here is a basic question: how to enter the HTML text between cells? Is there a handy way to do it? The only thing I could figure out is to jump back and forth from "Worksheet" to "Edit". (I also saw the LaTeX-Sage converter, but still have to experiment with it.) On Tue, Jan 6, 2009 at 7:48 PM,

[sage-edu] Re: Many variables?

2009-01-06 Thread Luiz Felipe Martins
It is uploaded: http://sagenb.org:8000/home/pub/139 On Tue, Jan 6, 2009 at 11:10 AM, William Stein wrote: > > On Tue, Jan 6, 2009 at 8:06 AM, lfmartins > wrote: >> >> What would be the best way, for students, to define functions of an >> arbitrary (but fixed) number of variables? >> >> What I

[sage-edu] Re: Sage academic setup experiences.

2008-12-12 Thread Luiz Felipe Martins
Thank you very much. I'll start working on the setup this weekend. I'll post here what happens. On Tue, Dec 9, 2008 at 1:09 AM, William Stein wrote: > > On 12/4/08, William Stein wrote: > > On Thu, Dec 4, 2008 at 9:51 AM, Luiz Felipe Martins > > wrote: > >>

[sage-edu] Re: Sage academic setup experiences.

2008-12-04 Thread Luiz Felipe Martins
I'd love to try that, actually. Could you send me what I need and, perhaps, a few pointers? On Thu, Dec 4, 2008 at 11:59 AM, William Stein <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 4, 2008 at 7:50 AM, Luiz Felipe Martins > <[EMAIL PROTECTED]> wrote: >> >> T

[sage-edu] Re: Sage academic setup experiences.

2008-12-04 Thread Luiz Felipe Martins
Thanks for the response and the tips. I agree. When I saw the notebook server at work I thought: wow, this is the way things ought to go. There's a lot of stuff to digest on the threads you suggested, I'll tell how I'm doing as I go along. BTW, I found the following in the Wiki: http://wiki.sage

[sage-edu] Re: Sage academic setup experiences.

2008-12-04 Thread Luiz Felipe Martins
On Thu, Dec 4, 2008 at 9:52 AM, David Joyner <[EMAIL PROTECTED]> wrote: > > > You didn't say if this is a classroom lab (so all of your students will be > using > Sage at once) or a math computer lab for out-of-class homework (so students > will go in at random times, convenient for them). Others