diff --git a/mathics/builtin/list/constructing.py b/mathics/builtin/list/constructing.py index 4b43557f4..f84ac6232 100644 --- a/mathics/builtin/list/constructing.py +++ b/mathics/builtin/list/constructing.py @@ -212,7 +212,13 @@ class Range(Builtin):
returns a list of integers from 1 to $n$.
'Range[$a$, $b$]' -
returns a list of integers from $a$ to $b$. +
returns a list of (Integer, Rational, Real) numbers from $a$ to $b$. + +
'Range[$a$, $b$, $di$]' +
returns a list of numbers from $a$ to $b$ using step $di$. + More specifically, 'Range' starts from $a$ and successively adds \ + increments of $di$ until the result is greater (if $di$ > 0) or \ + less (if $di$ < 0) than $b$. >> Range[5]