x*y*z、x×y×z 或 x y z
表示项的乘积.
Times 
x*y*z、x×y×z 或 x y z
表示项的乘积.
背景
- Times 是对表达式做乘法(求积)的函数. 表达式 Times[a,b,c,…] 通常用简记语法表示成 a*b*c*…、a×b×c×… 或简单的 a b c … 的形式. 特例有 Times[],它的取值为 1,还有 Times[x],它的取值为 x.
- Times 会对参数排序并合并同类项. Times 也逐项作用于列表. Expand 可被用于展开不能被 Times 自动乘出的表达式的乘积.
- TimesBy 可被用于乘以给定变量的值. Divide 给出了两个表达式的商.
- 可以用 Product 求函数在给定的范围或列表上分别取值后的乘积. 其它类型的乘法包括 Dot(用于矩阵或向量乘积)或 NonCommutativeMultiply(用于非交换的乘积).
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (3)
Times 按元素线性作用:
{{a, b}, {c, d}}{x, y}使用 Times 可进行模式匹配:
a b c d /. a d -> xa b c d /. a c x_ -> f[x]{a, a b, a b c} /. a x_. -> f[x]Times 可与 Interval 和 CenteredInterval 对象一起使用:
Interval[{-1, 2}] Interval[{2, 3}]CenteredInterval[-2, 1 / 10] CenteredInterval[2 + 3I, (1 + I) / 10]Interval[{2, 3}]CenteredInterval[4, 1 / 10]属性和关系 (4)
用 Expand 展开外积:
(1 + x)(2 + x)Expand[%]对矩阵或向量乘法用 Dot:
{{a, b}, {c, d}}.{x, y}对有索引元素的乘积使用 Product:
Product[a[i], {i, 5}]Product[(i + 1/i + 2), {i, 1, n}]对非交换乘积使用 NonCommutativeMultiply:
a**b - b**a相关指南
-
▪
- 算术函数 ▪
- GPU 计算 ▪
- 矩阵运算 ▪
- Wolfram 语言语法 ▪
- 矩阵和线性代数 ▪
- 向量运算 ▪
- NVIDIA GPU 计算 ▪
- Apple GPU 计算 ▪
- 图像处理和分析 ▪
- 数学函数 ▪
- 音频编辑
历史
1988年引入 (1.0) | 在以下年份被更新:1996 (3.0) ▪ 2021 (13.0)
文本
Wolfram Research (1988),Times,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Times.html (更新于 2021 年).
CMS
Wolfram 语言. 1988. "Times." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/ref/Times.html.
APA
Wolfram 语言. (1988). Times. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Times.html 年
BibTeX
@misc{reference.wolfram_2026_times, author="Wolfram Research", title="{Times}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Times.html}", note=[Accessed: 14-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_times, organization={Wolfram Research}, title={Times}, year={2021}, url={https://reference.wolfram.com/language/ref/Times.html}, note=[Accessed: 14-November-2026]}