On Mar 14, 2009, at 6:29 PM, Jason Grout wrote: > It sounds like the problems is the known issue that numpy does not > interact very well with Sage data types. Try this: > > from numpy import * > import quantities as pq > res = 10r*pq.ohm > > The 10r means to create a python integer, rather than a Sage integer. > > It sounds like there could/should be a small change in quantities made > to support Sage datatypes. My guess is that it would take just a few > minutes.
+1 It'd be cool if one could do arbitrary Sage types (not just floating point numbers). For example sage: var('x') sage: (x * feet).lock('inches') 12*x At least rationals would be nice. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---