1. 钖戦噺涔樻硶镐庢牱绠楋纻
钖戦噺涔樻硶鍙浠ユ湁涓ょ嶅舰寮忥细镣圭Н锛埚唴绉锛夊拰鍙夌Н锛埚栫Н锛夈
1. 镣圭Н锛氱粰瀹氢袱涓猲缁村悜閲廰鍜宐锛岀偣绉镄勮$畻鏂瑰纺涓哄皢涓や釜钖戦噺瀵瑰簲鍏幂礌鐩镐箻锛岀劧钖庡皢镓链変箻绉鐩稿姞銆傜偣绉鍙浠ヨ〃绀轰负锛歛 路 b = a1*b1 + a2*b2 + ... + an*bn銆傚叾涓锛宎1銆乤2銆...銆乤n涓哄悜閲廰镄勫悇涓鍒嗛噺锛宐1銆乥2銆...銆乥n涓哄悜閲廱镄勫悇涓鍒嗛噺銆
2. 鍙夌Н锛氱粰瀹氢袱涓涓夌淮钖戦噺a鍜宐锛屽弶绉镄勮$畻鏂瑰纺涓哄彇涓や釜钖戦噺镄勫弶绉寰楀埌镄勬柊钖戦噺锛屾柊钖戦噺涓庡师涓や釜钖戦噺鍨傜洿銆傝$畻鍏寮忎负锛歛 脳 b = (a2*b3 - a3*b2, a3*b1 - a1*b3, a1*b2 - a2*b1)銆傚叾涓锛宎1銆乤2銆乤3涓哄悜閲廰镄勫垎閲忥纴b1銆乥2銆乥3涓哄悜閲廱镄勫垎閲忋傚弶绉鍙阃傜敤浜庝笁缁村悜閲忋
闇瑕佹敞镒忕殑鏄锛屽悜閲忎箻娉旷殑缁撴灉鏄涓涓鏂扮殑钖戦噺锛屽叾缁村害鍜岃緭鍏ュ悜閲忓彲鑳戒笉钖屻