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 [2024/09/16 11:51] – Maurits W. Haverkort | documentation:language_reference:objects:start [2026/11/17 07:33] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ### | ### | ||
| - | 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. | ||
| ### | ### | ||
| Line 13: | Line 13: | ||
| ===== Defined objects ===== | ===== Defined objects ===== | ||
| {{indexmenu> | {{indexmenu> | ||
| + | |||
| + | |||