[sage-edu] Re: Sage in open source trig textbook

2009-09-25 Thread kcrisman
On Sep 25, 2:03 am, Rob Beezer wrote: > Michael Corral has released another open source mathematics textbook, > this one being a very nice (elementary) treatment of > trigonometry.http://mecmath.net/trig/ > > He mentions Sage in the preface, and late in the book says: > > There is a lot of mat

[sage-edu] Re: integer, tostring, length?

2009-09-25 Thread Kwankyu
> But for teaching and other mathematical connections, > would it perhaps be better to use the (base 10 logarithm) > decimal logarithm to get the number of digits? > In python it is ceil(log10(n)) > > Can be used like this: > sage:  from math import * > sage: n=1234567899010120203040506677