You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/specs/stdlib_math.md
+5-9
Original file line number
Diff line number
Diff line change
@@ -287,11 +287,7 @@ Pure function.
287
287
288
288
### Description
289
289
290
-
Create a one-dimensional `array` of the `integer/real` type with fixed-spaced values of given spacing, within a given interval.
291
-
292
-
#### Note
293
-
294
-
Because of the `i` (`huge(integer :: i) = 2147483647`) index inside the `arange` function , the dimensional maximum length of array created by the `arange` function is `2147483647`.
290
+
Creates a one-dimensional `array` of the `integer/real` type with fixed-spaced values of given spacing, within a given interval.
295
291
296
292
### Syntax
297
293
@@ -315,11 +311,11 @@ The default `step` value is `1`.
315
311
316
312
#### Warning
317
313
If `step = 0`, the `step` argument will be corrected to `1/1.0` by the internal process of the `arange` function.
318
-
If `step < 0`, the `step` argument will be corrected to `abs(by)` by the internal process of the `arange` function.
314
+
If `step < 0`, the `step` argument will be corrected to `abs(step)` by the internal process of the `arange` function.
319
315
320
316
### Return value
321
317
322
-
Return a one-dimensional `array` of fixed-spaced values.
318
+
Returns a one-dimensional `array` of fixed-spaced values.
323
319
324
320
For `integer` type arguments, the length of the result vector is `(end - start)/step + 1`.
325
321
For `real` type arguments, the length of the result vector is `floor((end - start)/step) + 1`.
0 commit comments