Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:start [2024/12/18 15:43] Maurits W. Haverkortdocumentation:language_reference:start [2024/12/18 15:50] (current) Maurits W. Haverkort
Line 3: Line 3:
  
 ### ###
 +
 This section contains a list of //all// functions implemented in Quanty. We separate the documentation into 3 parts, Constants, Global functions, and Objects.  This section contains a list of //all// functions implemented in Quanty. We separate the documentation into 3 parts, Constants, Global functions, and Objects. 
  
   * Constants are lists of some useful numbers (electron mass, value of the speed of light, ...).   * Constants are lists of some useful numbers (electron mass, value of the speed of light, ...).
   * Global functions are, as the name suggests functions available in Quanty that take a set of input parameters and produce several output values. In general the internal algorithm used is context dependent. For example Eigensystem will use dense methods is the dimension of the Hilbert space is small and sparse methods if the dimension is large. You can control the automated behaviour of functions with the use of options.   * Global functions are, as the name suggests functions available in Quanty that take a set of input parameters and produce several output values. In general the internal algorithm used is context dependent. For example Eigensystem will use dense methods is the dimension of the Hilbert space is small and sparse methods if the dimension is large. You can control the automated behaviour of functions with the use of options.
-  * Objects define a data structure and a set of libraries that can act on these data structures. For example the object matrix defines the data type Matrix and a set of functions such as Matrix.Chop() or Matrix.Eigensystem(). These functions take a matrix and possible other variables as input and return valuesleaving the arguments unchanged. If A is a matrix then one can use methods by indexing the variable. A.Chop() acts with the function Chop on A and stores the result in Ai.e. it changes the variable used to call the method. Operations define how BA-B or 1/A is implemented and properties define what happens when you index a data structure.+  * Objects define a data structure and a set of libraries that can act on these data structures. These libraries can be divided into functions, methods, operations and properties. **Functions** leave the arguments unchanged and are called using the name of the object "." the name of the function. **Methods** are called by indexing variable of the given type with function nameMethods change the variable they act upon**Operations** define how +, -/, *, etc. act on the data structure. **Properties** allow you to access the different elements of a data structure by indexing the variable. Note that not all Objects contain all 4 categories. 
 ### ###
 +
  
  
Print/export