finesse.symbols.Constant

Overview

class finesse.symbols.Constant(value, name=None)[source]

Bases: Symbol

Defines a constant symbol that can be used in symbolic math.

Parameters
valuefloat, int

Value of constant

namestr, optional

Name of the constant to use when printing

Properties

Constant.is_named

Was this constant given a specific name.

Constant.name

Methods

Constant.__init__(value[, name])

Constant.eval([subs])

Evaluate this constant.

Constant.substitute(subs)

Uses a dictionary to substitute terms in this expression with another.