If you are already familiar with objects from another programming language (such as Java or C++), then you will immediately be familiar with objects in Sage. If not, this example should help you understand the concept:
real_number = RR(10/3) print(type(real_number)) print('Value: ' + real_number.str()) print(real_number.n(digits=5)) print('Precision: ' + str(real_number.precision())) print(real_number.ceil())
The result should look like this:
We've already been using objects without knowing it—every number in Sage is actually an object! An object is a construct that consists of data (called ...