Qurak
Documentation
Pricing
Sign in
Qurak
Documentation
Functions
ConstantArray
ConstantArray
Available
Creates an array of repeated elements.
Forms
ConstantArray[c, n]
ConstantArray[c, {n1, n2, …}]
Verified examples
ConstantArray[x, 3] → {x, x, x}
ConstantArray[0, 5] → {0, 0, 0, 0, 0}
ConstantArray[1, 0] → {}
ConstantArray[a, {2, 3}] → {{a, a, a}, {a, a, a}}
Run this on Qurak
Search the reference
Used in
Enhanced cycle and tour functionality
- 8 steps
Topics
Constructing Lists
- Lists from Iteration
Constructing Matrices
- Geometric Matrices»
Creating And Importing Signals
- Signals from Functions »
New In60 Alphabetical Listing
- C
New In60 List Manipulation
- New Functions for List & Array Creation
New In60 Matrix And Linear Algebra Functions
- New Vector Space Functions
Related
Array
Table
Range
SparseArray
IdentityMatrix
UnitVector
ConstantImage
ArrayFlatten
StringRepeat
SymbolicZerosArray
SymbolicOnesArray
CenterArray
← Constant
ConstantImage →
All 6300 functions
·
Use this from an MCP client