Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:start [2016/09/17 07:47] – created Maurits W. Haverkort | documentation:language_reference:objects:start [2024/09/16 11:51] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== Objects ====== | ||
+ | ### | ||
+ | Besides functions Quanty defines several objects. The objects included are Complex numbers, Operators, Wavefunctions, | ||
+ | When possible implementations are such that functions do not change the values of their argument, whereas methods act on the object they belong to. i.e. B=Chop(A) will not alter A but return a new object B that is the chopped version of A. A.Chop() will change A to its chopped version. A.Chop() uses less memory as it only stores one copy of A. | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | Objects give some access to data structures defined within Quanty. One can directly access some of the elements of these structures, which are listed below as the properties of each of these objects. Objects have methods defined that directly modify the structure. For example rounding small numbers to zero can be done with the method A.Chop on most objects. Last but not least objects can define functions specific to the defined data structure within the object. | ||
+ | ### | ||
+ | |||
+ | ===== Defined objects ===== | ||
+ | {{indexmenu> |