Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:objects:start [2016/10/10 09:41] – external edit 127.0.0.1 | documentation:language_reference:objects:start [2024/09/16 11:51] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
====== Objects ====== | ====== Objects ====== | ||
Line 4: | Line 5: | ||
Besides functions Quanty defines several objects. The objects included are Complex numbers, Operators, Wavefunctions, | 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. | 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. | ||
+ | ### | ||
### | ### |