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 allclose all

Basic Examples  (3)

Return the total mass of three tennis balls:

Output the luminosity of two suns:

Output the material out of which three (separate) footballs are made:

Scope  (4)

EntityCopies expressions can be used alongside regular entities in lists:

Extensive property values of EntityCopies yield the total value of all copies:

Since volume is extensive, the value for two basketballs is twice the volume of a single basketball:

Non-extensive property values of EntityCopies repeat their value for each copy:

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):

Generalizations & Extensions  (1)

EntityValue treats an EntityGroup of n copies of an entity in the same way as EntityCopies[entity,n]:

Properties & Relations  (3)

Extensive property values for no copies return 0:

Intensive property values for no copies return an empty list:

EntityCopies remains unevaluated for a single copy:

Operations on an EntityCopies expression containing a single copy are equivalent to those on a normal Entity:

Verify equality:

Possible Issues  (2)

Attempting to give an invalid entity count returns an appropriate form of Missing:

EntityCopies expressions can be returned in differing units than analogous quantities:

Verify equality:

Wolfram Research (2015), EntityCopies, Wolfram Language function, https://reference.wolfram.com/language/ref/EntityCopies.html.

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_2023_entitycopies, author="Wolfram Research", title="{EntityCopies}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EntityCopies.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_entitycopies, organization={Wolfram Research}, title={EntityCopies}, year={2015}, url={https://reference.wolfram.com/language/ref/EntityCopies.html}, note=[Accessed: 19-March-2024 ]}