Scalar Expression

Description

With this node, you can combine or modify scalar quantities and output any scalar resulting from the arithmetic operation.

Inputs

The node has the following input:

  • Scalars ($a$, $b$, $c$ etc.): It inputs scalar quantities from other nodes 

Content

In the content text-field, an arithmetic operation is defined to combine or modify the scalar quantities.

Output

  • Scalar ($a$): The scalar resulting from the arithmetic operation of the scalar inputs. 

Example 

In the example below, the Scalar Expression node calculates the difference between the first two eigenstates of an infinite well. This tells us the energy spacing between the states of a particular system. Moreover, the energy spacing between any higher states can also be calculated and for any other potential (example: harmonic oscillator, finite well) as well.