Expression

Definition of a function given by an algebraic expression.

Fields

  • arguments: Vector of String, default = []

    A vector of strings with the names of the variables acting as arguments.

    For example a function $f(p,q) = p + \sqrt{1-q^2}$ would need ["p","q"] to be able to

    link the actual arguments when the function is evaluated to the algebraic expression.

    The invocation does not need to use p and q necessarily, it can be called as f(x,t)

    from a boundary condition of type ExpressionValues (or even (1+f(x/2,t^2))^(2/3)).

    In that case, p would be the half of the $x$ coordinate and q the time squared in $f(p,q)$.

  • expression: String, default = ""

    A string with an expression involving the arguments and eventually other variables

    (which would be kept as constants with the values they have at the moment of the evaluation

    of the function) and other functions. For example, the function above would need a + sqrt(1-b^2).