Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is not really a Sage question, rather a mathematical question. What you are drawing is the unit ball of the L1 norm, which is an ocatagon. If you want to obtain a cube, you should rather draw the unit ball of the L-infinity norm. This norm does not sum the absolute values of the coordinates, but it takes their maximum.

Note that the maximum for symbolic expression, is max_symbolic.

click to hide/show revision 2
No.2 Revision

This is not really a Sage question, rather a mathematical question. What you are drawing is the unit ball of the L1 norm, which is an ocatagon. ocatahedron. If you want to obtain a cube, you should rather draw the unit ball of the L-infinity norm. This norm does not sum the absolute values of the coordinates, but it takes their maximum.

Note that the maximum for symbolic expression, is max_symbolic.