Algosim documentation: variable

variable

Returns the Variable structure of a variable.

Syntax

Description

If X is a variable (or s is a string containing the name of a variable), then variable(X) (or variable(s)) returns the Variable structure of the variable.

Variable is the name of the structure type.

This structure contains the variable’s name, description, time of creation, value, and protection status.

Examples

variable(π)
name: π
description: The ratio of a circle's circumference to its diameter.
created.date.year: 2020
created.date.month: september
created.date.day: 2
created.time.hour: 23
created.time.minute: 18
created.time.second: 39
created.time.millisecond: 794
value: 3.14159265359
protected: true

See also