> > > > Then you would know that 1/2 = 0, and that wouldn't trouble you. In > Lisp, 1/2 is > what you would might expect. For example (= (+ 1/2 1/2) 1) returns > t. And Maxima > also knows about 1/2. >
In Sage, 1/2 is the fraction 1/2 and so you do have : sage: 1/2 1/2 sage: 1/2+1/2 1 On the sage interface, integers are Sage Integers and not python int. But yes, if you write a .py file that you call with sage, then 1 is a python int and you have: sage: int(1)/int(2) 0 which is quite common for many programming languages as floats are quite a messy thing (which is not due to python, floats are messy everywhere). sage: 0.5+0.5==1. True sage: 3*0.1==0.3 False > > > >> >> On Thursday, September 25, 2014 10:13:20 AM UTC-5, rjf wrote: >>> >>> >>> >>> On Wednesday, September 24, 2014 11:33:19 PM UTC-7, Chris Seberino wrote: >>>> >>>> I read W. Stein's blog on why he thinks Sage is failing since it isn't >>>> on par with Maple, Mathematica and other Ma*'s *now*. >>>> >>>> I teach high schoolers and college students. At that level Sage is >>>> more than adequate as a replacement for all Ma*'s now. >>>> >>> >>> I am curious as to what parts of Sage you use. I suspect you are using >>> it mostly as a front-end to Maxima, >>> In which case -- have you considered using Maxima directly, esp. >>> wxmaxima? >>> >>> Thanks for any info. >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.