Opened 7 years ago

Last modified 7 years ago

#19093 new defect

bug in units conversion

Reported by: schymans Owned by:
Priority: major Milestone: sage-6.9
Component: symbolics Keywords: units
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


The .convert() function converts units to their base units, e.g.

sage: (                            

The units of heat capacity are joule/kelvin/kilogram and since joule is not a base unit, it should be possible to convert them to base units. However, this throws an error:

sage: (
Traceback (click to the left of this block for traceback)
ValueError: Cannot convert

This seems to be the case whenever something is divided by temperature.

Change History (1)

comment:1 Changed 7 years ago by schymans

Goodness, did I really create this ticket only 3 weeks ago? Just googled it again and found the same issue asked by myself 2 years ago with a proposed workaround by Eviatar Bach:

Note: See TracTickets for help on using tickets.