坐標轉換-反射
程式 (52字):
2 ( A2 + B2 )-1 ( ( CA + B2X - ABY ) cos( sin-1( X1 ) ) + X1CB - X1ABX + X1A2Y )
- X cos( sin-1( X1 ) ) - YX1
SAVE PROG1 或 PROG2 (SRP-285II計數機)
STO EQN (HP 30S計數機)
註: 反射軸的直線方程為: AX + BY = C
例題1: 求點 (5 , 6) 沿 x = 3 反射的坐標。
SRP-285II 按法:
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
1 = = 3 = 5 = 6 = = (顯示x坐標為1) ↑1= (顯示y坐標為6)
HP 30S 按法:
按 2nd CL-VAR VRCL,再按 ← = = 1 = = 3 = 5 = 6 = = (顯示x坐標為1)
↑1= (顯示y坐標為6)
例題2: 求點 (1, 2) 沿 直線 3x + 4y = 5 反射的坐標。
SRP-285II 按法:
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
3 = 4 = 5 = 1 = 2 = = (0表示計x坐標的值,顯示x坐標為 -0.44)
↑1 = (1表示計y坐標的值,顯示y坐標為0.08)
HP 30S 按法:
按 2nd CL-VAR VRCL,再按 ← = =
3 = 4 = 5 = 1 = 2 = = (0表示計x坐標的值,顯示x坐標為 -0.44)
↑1 = (1表示計y坐標的值,顯示y坐標為0.08)