Yes, that is working, but working with physical units in SageCell remains
problematic.
For example
Q(20,'g/cm^3').base is working,
but
si(x)=Q(x,'g/cm^3').base
si(20.0)
is not, while
def si(x, u):
return Q(x,u).base
si(20.0, 'g/cm^3')
is working again.
[email protected] schrieb am Donnerstag, 17. Dezember 2020 um 00:03:56
UTC+1:
> It expects Python integers and is not happy with Sage integers.
>
> Sage's preparser converts your 2 into Integer(2).
> You can convert it back with `int`, or, better,
> prevent it from converting by marking it as "raw" with `r`.
>
> Try these:
>
> s**int(2)
> s**2r
>
--
You received this message because you are subscribed to the Google Groups
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cell/a6c09c1c-384b-491f-adf1-b812953487ddn%40googlegroups.com.