2018-04-01 02:43:20 +0200 | received badge | ● Student (source) |
2018-03-31 20:08:51 +0200 | asked a question | how to define constants? is this a good way to define constants? |
2018-03-31 20:08:51 +0200 | asked a question | Can I use custom Constant Values in SAGE? show(pi) will show a nice representation of pi, while pi.n() will yield a useable value how am I supposed to achieve the same functionality for a custom 'symbol' ? like Az = 5.5 # cm the surface area of my Cylinder but showing 'Az' as representation, not the value I solved this with a custom Class, but this feels wrong: now these work like I want them to :) Az.n() show(1/Az) But is this the intended approach? |