Algosim documentation: history

history

Returns a record for a previous command handled by the kernel during the current kernel session.

Syntax

Description

If i > 0, then history(i) returns the record for the ith command handled by the kernel during the current kernel session. If i < 0, then history(i) returns the record for the ith most recent command. i must not be 0.

The record contains the input (the expression), the time of execution, the evaluation time of the expression, and, if results are saved, the value returned by the expression.

To enable or disable saving of old results, use the SaveHistory function.

Examples

IsPrime(304141895051231)
true
history(−1)
cmd: IsPrime(304141895051231)
time.date.year: 2020
time.date.month: September
time.date.day: 26
time.time.hour: 10
time.time.minute: 27
time.time.second: 47
time.time.millisecond: 954
EvalTime: 0.384295248791
result: true

See also