Program 1 :
• 一元二次方程(Quadratic equations program)
?→A: ?→B: ?→C: B2 - 4AC→D◢
(√( Ans ) ) - B)┘(2A→X◢-B┘A - Ans→Y◢-B÷2A◢C-B2÷4A
(57 bytes)
例
: x2+4x+1=0
按
Prog 1 再按 1 EXE 4
EXE 1 EXE
(顯示 12) <- (∆=12)
( ∆>0 two distinct real roots, ∆=0 one real root, ∆<0 no real root or two complex roots)
EXE (顯示第一個根為 -0.267949192)
EXE (顯示第二個根為 -3.732050808)
(顯示 12) <- (∆=12)
( ∆>0 two distinct real roots, ∆=0 one real root, ∆<0 no real root or two complex roots)
EXE (顯示第一個根為 -0.267949192)
EXE (顯示第二個根為 -3.732050808)
EXE (顯示vertex
x coordinate為 -2)
EXE (顯示vertex y coordinate為 -3)
∴ Root of x2+4x+1= 0 is x= -0.267949192 and -3.732050808
∴ Root of x2+4x+1= 0 is x= -0.267949192 and -3.732050808
∴ Root of x2+4x+1=
0 is x=( -4±√( 12 ))/2(1)
∴ Vertex of x2+4x+1=
0 is (-2, -3)
Program 2 :
vxc
沒有留言:
張貼留言