
好词典
源自拉丁语 'ternarius'(由三个组成),由 'terni'(每三个)和 '-arius'(形容词后缀)构成,14世纪进入英语。
❶ 指由三个部分组成的,或基于数字三的系统。常用于数学、化学等领域描述三元关系或结构。
“The ternary system uses three digits: 0, 1, and 2.”
(三进制系统使用三个数字:0、1和2。)
“A ternary compound contains three different elements.”
(三元化合物包含三种不同的元素。)
❶ 指由三个元素组成的集合或组合,特别用于数学中的三元组或三合一结构。
“The programmer used a ternary to store RGB values.”
(程序员用三元组存储RGB颜色值。)
“Each record in the database is represented as a ternary.”
(数据库中的每条记录都表示为三元组。)
ternary operator — 编程中的条件运算符,用问号和冒号表示,根据条件选择两个值之一。
“The ternary operator 'x ? y : z' returns y if x is true, otherwise z.”
(三元运算符'x ? y : z'在x为真时返回y,否则返回z。)
ternary form — 音乐结构术语,指由ABA三部分组成的曲式,首尾段落相同。
“The minuet is typically in ternary form with a contrasting middle section.”
(小步舞曲通常采用三段式,中间段落形成对比。)