NumberCompose

NumberCompose[{c1,,cn},{u1,,un}]

返回数量 c1 u1++cn un.

更多信息

  • {u1,,un} 通常是一列非递增正数.
  • NumberCompose[clist,ulist]clist 的长度可以小于 ulist 的长度,这种情况下 clist 实际上由左侧的0填充.

范例

打开所有单元关闭所有单元

基本范例  (2)

将不同面额的钱相加:

将天数、小时数、分钟数和秒数相加并返回秒数:

范围  (1)

构建精确数:

构建非精确数:

属性和关系  (4)

NumberDecompose 的基本运算是 Dot

如果系数列表短于单位列表,前者将被0填充:

FromDMSNumberCompose 的特例:

带有 MixedRadix 规范的 FromDigits 命令执行的是 NumberCompose 操作:

Wolfram Research (2015),NumberCompose,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NumberCompose.html.

文本

Wolfram Research (2015),NumberCompose,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NumberCompose.html.

CMS

Wolfram 语言. 2015. "NumberCompose." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/NumberCompose.html.

APA

Wolfram 语言. (2015). NumberCompose. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/NumberCompose.html 年

BibTeX

@misc{reference.wolfram_2024_numbercompose, author="Wolfram Research", title="{NumberCompose}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/NumberCompose.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_numbercompose, organization={Wolfram Research}, title={NumberCompose}, year={2015}, url={https://reference.wolfram.com/language/ref/NumberCompose.html}, note=[Accessed: 22-November-2024 ]}