InputForm
Returns a textual representation of an object in Algosim syntax.
Syntax
-
InputForm(X)
-
X
is any object
-
Description
If X
is any object, then InputForm(X)
returns a textual representation of X
, as accurate as possible, in a format that mimics Algosim’s own syntax. Hence, in most cases the result can be used as input to yield the original object, or something very close (numerically) to it.
Examples
InputForm(IdentityMatrix(3))
❨❨1, 0, 0❩, ❨0, 1, 0❩, ❨0, 0, 1❩❩
InputForm("These answers are ""wrong"":")
"These answers are ""wrong"":"
InputForm(time())
structure("hour": 17, "minute": 23, "second": 7, "millisecond": 414)