EntityCopies[entity,n]
represents n copies of entity.
EntityCopies
EntityCopies[entity,n]
represents n copies of entity.
Details
- An entity is generally specified as Entity[type,canonicalname]. A list of currently available entity types is given by EntityValue[].
- Entity expressions can be created by using the
interface. - The number of copies n may be any positive integer.
Examples
open all close allBasic Examples (3)
Return the total mass of three tennis balls:
EntityCopies[Entity["SportObject", "TennisBallType1"], 3][EntityProperty["SportObject", "Mass"]]Output the luminosity of two suns:
EntityCopies[Entity["Star", "Sun"], 2]["Luminosity"]Output the material out of which three (separate) footballs are made:
EntityCopies[Entity["SportObject", "AmericanFootballNFL"], 3][EntityProperty["SportObject", "Material"]]Scope (4)
EntityCopies expressions can be used alongside regular entities in lists:
EntityValue[{Entity["SportObject", "TennisBallType1"], EntityCopies[Entity["SportObject", "TennisBallType1"], 3], Entity["SportObject", "GolfBall"], Entity["SportObject", "VolleyballBeach"]}, "Mass"]Extensive property values of EntityCopies yield the total value of all copies:
EntityCopies[Entity["SportObject", "BasketballNBA"], 2][EntityProperty["SportObject", "Volume"]]Since volume is extensive, the value for two basketballs is twice the volume of a single basketball:
Entity["SportObject", "BasketballNBA"][EntityProperty["SportObject", "Volume"]]%% / %Non-extensive property values of EntityCopies repeat their value for each copy:
EntityCopies[Entity["SportObject", "GolfBall"], 2][EntityProperty["SportObject", "Shape"]]EntityCopies[Entity["SportObject", "BasketballNBA"], 3]["InflationPressure"]Computed values of multiple copies of an entity may return a combination of total value plus a list of values for properties of differing type (i.e. some extensive and some not):
EntityCopies[Entity["Star", "Sun"], 10][{EntityProperty["Star", "Mass"], EntityProperty["Star", "Density"]}]Generalizations & Extensions (1)
EntityValue treats an EntityGroup of n copies of an entity in the same way as EntityCopies[entity,n]:
EntityValue[EntityGroup[Table[Entity["Building", "EiffelTower::5h9w8"], {2}]], "Height"]EntityValue[EntityCopies[Entity["Building", "EiffelTower::5h9w8"], 2], "Height"]Properties & Relations (3)
Extensive property values for no copies return 0:
EntityCopies[Entity["SportObject", "GolfBall"], 0][EntityProperty["SportObject", "Mass"]]Intensive property values for no copies return an empty list:
EntityCopies[Entity["SportObject", "GolfBall"], 0][EntityProperty["SportObject", "Material"]]EntityCopies remains unevaluated for a single copy:
EntityCopies[Entity["SportObject", "GolfBall"], 1]Operations on an EntityCopies expression containing a single copy are equivalent to those on a normal Entity:
EntityCopies[Entity["SportObject", "GolfBall"], 1][EntityProperty["SportObject", "Mass"]]Entity["SportObject", "GolfBall"][EntityProperty["SportObject", "Mass"]]% === %%Possible Issues (2)
Attempting to give an invalid entity count returns an appropriate form of Missing:
EntityCopies[Entity["Star", "Sun"], -1]["Mass"]EntityCopies expressions can be returned in differing units than analogous quantities:
EntityCopies[Entity["Particle", "Electron"], 10]["Mass"]UnitConvert[Quantity[10, "ElectronMass"], "SI"]% == %%Related Guides
History
Text
Wolfram Research (2015), EntityCopies, Wolfram Language function, https://reference.wolfram.com/language/ref/EntityCopies.html.
CMS
Wolfram Language. 2015. "EntityCopies." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EntityCopies.html.
APA
Wolfram Language. (2015). EntityCopies. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EntityCopies.html
BibTeX
@misc{reference.wolfram_2026_entitycopies, author="Wolfram Research", title="{EntityCopies}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EntityCopies.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_entitycopies, organization={Wolfram Research}, title={EntityCopies}, year={2015}, url={https://reference.wolfram.com/language/ref/EntityCopies.html}, note=[Accessed: 13-June-2026]}