Skip to content

Assign a value to the Constant object #149

@ratnania

Description

@ratnania

Up to now, we can create a Constant object which is later considered as a free-variable, for example

kappa = Constant('kappa', is_real=True)

We would also like to allow the assignnment of a value to the Constant object, e.g.

kappa = Constant('kappa', 1.1)

In this case, kappa will not be treated as a free-variable by TerminalExpr, which will use subs to replace occurrences of the symbol kappa by its value.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions