[sage-edu] Re: inequalities

2009-09-21 Thread kcrisman
On Sep 20, 3:46 pm, michel paul wrote: > Also so does this: > > sage: 2.3 in [1 .. 3, step = 1/10] > True > > That's interesting. > Here's why: sage: [1..3, step=.1] [1.00, 1.10, 1.20, 1.30, 1.40, 1.50, 1.6

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

2009-09-21 Thread kcrisman
On Sep 19, 11:24 am, calcp...@aol.com wrote: > Yes, that was it!  Thank you! > > How easy it is to forget syntax in one environment when using another.   > I was teaching java all day yesterday and I just couldn't remember the > equivalent in Sage! > > BTW, I had worksheets in sagenb online wher

[sage-edu] Re: inequalities

2009-09-21 Thread jason-sage
michel paul wrote: > Hi, > > I'm a high school math teacher experimenting with getting kids to use > SAGE. My situation - high school math in a department that rigidly > believes either that > > 1. graphing calculators provide sufficient technology for > contemporary math classrooms or that >

[sage-edu] Re: inequalities

2009-09-21 Thread kcrisman
> > You might also note that Sage has some rather sophisticated interval > arithmetic capabilities: > > sage: myinterval= RIF((1,3)) > sage: myinterval > 2.? > sage: myinterval.str(style='brackets') > '[1. .. 3.]' > sage: 2.3 in myinterval > True > sage: myinterva

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

2009-09-21 Thread kocbach
The string length is naturally already mentioned by D. Joyner ( len (str(n)) ) 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: sag

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

2009-09-21 Thread calcpage
Yes, yes, of course! But I was just thinking of it as the langth of a string Thanx, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College --~--~-~--~~~--

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

2009-09-21 Thread William Stein
On Mon, Sep 21, 2009 at 5:55 AM, kcrisman wrote: > > > > On Sep 19, 11:24 am, calcp...@aol.com wrote: >> Yes, that was it!  Thank you! >> >> How easy it is to forget syntax in one environment when using another. >> I was teaching java all day yesterday and I just couldn't remember the >> equivale

[sage-edu] HTML5 article from MAA

2009-09-21 Thread kcrisman
FYI, for those who have been discussing this: http://mathdl.maa.org/mathDL/55/?pa=content&sa=viewDocument&nodeId=3340 - kcrisman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this grou

[sage-edu] inequalities

2009-09-21 Thread michel paul
On Mon, Sep 21, 2009 at 5:53 AM, kcrisman wrote: One idea you may want to consider is using Sage strictly *without* any > programming per se > Something that occurred as kind of a surprise - an example problem in our text involved the income figures for Oprah, Seinfeld, and Simon Cowell. Given r