idempotent
意味: Describing an operation or function that produces the same result when applied multiple times as it does when applied once, so that f(f(x)) = f(x).
Idempotence is a vital concept in computing, mathematics, and API design. In web services, an idempotent HTTP method (such as GET, PUT, or DELETE) yields the same outcome whether executed once or many times, making systems more robust against network retries. In mathematics, the absolute value function is idempotent: ||-3|| = |-3| = 3. In database operations, idempotent queries prevent accidental duplication of records. The term has become increasingly common in software engineering discussions.
例文
- The API endpoint was designed to be idempotent, so submitting the same payment request twice would not result in a double charge. 该API端点被设计为幂等的,因此提交相同的支付请求两次不会导致双重扣款。El punto de acceso de la API se diseñó como idempotente, de modo que enviar dos veces la misma solicitud de pago no generase un doble cargo.そのAPIエンドポイントはべき等に設計されており、同じ決済リクエストを二度送信しても二重請求は発生しない。해당 API 엔드포인트는 멱등하게 설계되어 있어, 동일한 결제 요청을 두 번 제출해도 이중 청구가 발생하지 않는다.
- Setting a thermostat to twenty degrees is an idempotent operation: repeating the command produces the same outcome as performing it once. 将恒温器设置为二十度是一个幂等操作:重复该命令产生的结果与执行一次相同。Fijar un termostato a veinte grados es una operación idempotente: repetir la orden produce el mismo resultado que ejecutarla una sola vez.サーモスタットを20度に設定することはべき等な操作である。コマンドを繰り返しても一度実行した場合と同じ結果になる。온도 조절기를 20도로 설정하는 것은 멱등한 연산이다. 명령을 반복해도 한 번 수행한 것과 같은 결과가 나온다.
- The mathematician proved that the projection operator was idempotent, meaning applying it twice to any vector gave the same result as applying it once. 数学家证明了该投影算子是幂等的,即将其应用两次于任意向量与应用一次的结果相同。El matemático demostró que el operador de proyección era idempotente, es decir, que aplicarlo dos veces a cualquier vector daba el mismo resultado que aplicarlo una vez.数学者はその射影演算子がべき等であること、すなわち任意のベクトルに二度適用しても一度適用した場合と同じ結果になることを証明した。수학자는 해당 사영 연산자가 멱등임을, 즉 임의의 벡터에 두 번 적용해도 한 번 적용한 것과 같은 결과가 됨을 증명했다.
発音
使い方ガイド
場面: scientific, academic, professional
トーン: neutral
起源と歴史
From Latin idem (the same) and potens (having power), literally 'having the same power.' The term was coined by the American mathematician Benjamin Peirce in the 1870s.
文化的背景
Era: Modern
Generation: All ages
Social background: Universal
このトピックの他の表現
More from General Advanced