+
+ init( { range: [ [ - 7, 7 ], [ - 6, 6 ] ], scale: 30 } );
+
+ graph.pathFill = path( _PATHS, { stroke : COLORS, fill : COLORS, opacity : 0.5 } );
+ graph.pathUnFill = path( _PATHS, { stroke : COLORS } );
+ graph.line1 = line( _PATHS[ 0 ], _PATHS[ 2 ], { stroke : COLORS } );
+ graph.line2 = line( _PATHS[ 1 ], _PATHS[ 3 ], { stroke : COLORS } );
+
+ graph.lab1 = label( polar( 2, 135 ), "\\Large{" + '甲' + "}" );
+ graph.lab2 = label( polar( 2, 135 + 90 ), "\\Large{" + '丙' + "}" );
+ graph.lab3 = label( polar( 2, 135 + 180 ), "\\Large{" + '丁' + "}" );
+ graph.lab4 = label( polar( 2, 135 + 270 ), "\\Large{" + '乙' + "}" );
+
+
+
\quad
相同
+
\quad
不相同
+
+
+
菱形面積 =
兩對角線相乘 \times \dfrac{1}{2}
+
假設兩條對角線各為 _SIDES[ 0 ] * 2
公分、 _SIDES[ 1 ] * 2
公分
+
則菱形面積 = _SIDES[ 0 ] * 2 \times _SIDES[ 1 ] * 2 \times \dfrac{1}{2} = _SIDES[ 0 ] * 2 * _SIDES[ 1 ]
+
+ graph.lab1.hide();
+ graph.lab2.hide();
+ graph.lab3.hide();
+ graph.lab4.hide();
+ graph.line1.hide();
+ graph.line2.hide();
+
+ graph.line3 = line( _PATHS[ 2 ], _PATHS[ 0 ], { stroke : RED } );
+ graph.line4 = line( _PATHS[ 1 ], _PATHS[ 3 ], { stroke : PURPLE } );
+ graph.lab5 = label( [ L1[ 0 ], L1[1] + 1 ], _SIDES[ 0 ] * 2, { color : RED } );
+ graph.lab6 = label( [ L2[ 0 ] - 1, L2[1] ], _SIDES[ 1 ] * 2, { color : PURPLE } );
+
+
+
+
因_STR為一個三角形,
底邊和高是大菱形對角線的 \dfrac{1}{2}
,
+
因此_STR的底邊是 _SIDES[ 0 ]
公分,高是 _SIDES[ 1 ]
公分
+
則_STR的面積 = _SIDES[ 0 ] \times _SIDES[ 1 ] \times \dfrac{1}{2} = roundTo( 0, _SIDES[ 1 ] * _SIDES[ 0 ] / 2 )
+
+ graph.lab1.show();
+ graph.lab2.show();
+ graph.lab3.show();
+ graph.lab4.show();
+ graph.pathFill.hide();
+ graph.lab5.hide();
+ graph.lab6.hide();
+ graph.line3.hide();
+ graph.line4.hide();
+ line( [ 0, 0 ], _PATHS[ 0 ], { } );
+ line( [ 0, 0 ], _PATHS[ 1 ], { } );
+ line( [ 0, 0 ], _PATHS[ 2 ], { } );
+ line( [ 0, 0 ], _PATHS[ 3 ], { } );
+
+ if( J == 0 ) {
+ path( [ _PATHS[ 2 ], [ 0, 0 ], _PATHS[ 1 ] ], { fill : COLORS, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 1 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 2 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 1 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 2 ] ] );
+ label( [ L3[ 0 ] + 0.5, L3[ 1 ] ], _SIDES[ 1 ], { color : RED } );
+ label( [ L4[ 0 ], L4[ 1 ] - 0.5 ], _SIDES[ 0 ], { color : PURPLE } );
+ } else if( J == 1 ) {
+ path( [ _PATHS[ 2 ], [ 0, 0 ], _PATHS[ 3 ] ], { fill : COLORS, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 2 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 3 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 2 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 3 ] ] );
+ label( [ L3[ 0 ], L3[ 1 ] + 0.5 ], _SIDES[ 0 ], { color : RED } );
+ label( [ L4[ 0 ] + 0.5, L4[ 1 ] ], _SIDES[ 1 ], { color : PURPLE } );
+ } else if( J == 2 ) {
+ path( [ _PATHS[ 4 ], [ 0, 0 ], _PATHS[ 3 ] ], { fill : COLORS, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 3 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 4 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 3 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 4 ] ] );
+ label( [ L3[ 0 ] - 0.5, L3[ 1 ] ], _SIDES[ 1 ], { color : RED } );
+ label( [ L4[ 0 ], L4[ 1 ] + 0.5 ], _SIDES[ 0 ], { color : PURPLE } );
+ } else {
+ path( [ _PATHS[ 4 ], [ 0, 0 ], _PATHS[ 1 ] ], { fill : COLORS, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 4 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 1 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 4 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 1 ] ] );
+ label( [ L3[ 0 ], L3[ 1 ] - 0.5 ], _SIDES[ 0 ], { color : RED } );
+ label( [ L4[ 0 ] - 0.5, L4[ 1 ] ], _SIDES[ 1 ], { color : PURPLE } );
+ }
+
+
+
+
_STR2也是一個三角形,
底邊和高是大菱形對角線的 \dfrac{1}{2}
,
+
因此_STR2的底邊是 _SIDES[ 0 ]
公分,高是 _SIDES[ 1 ]
公分
+
則_STR2的面積 = _SIDES[ 0 ] \times _SIDES[ 1 ] \times \dfrac{1}{2} = roundTo( 0, _SIDES[ 1 ] * _SIDES[ 0 ] / 2 )
+
+
+ if( K == 0 ) {
+ path( [ _PATHS[ 2 ], [ 0, 0 ], _PATHS[ 1 ] ], { fill : COLORS2, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 1 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 2 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 1 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 2 ] ] );
+ label( [ L3[ 0 ] + 0.5, L3[ 1 ] ], _SIDES[ 1 ], { color : RED } );
+ label( [ L4[ 0 ], L4[ 1 ] - 0.5 ], _SIDES[ 0 ], { color : PURPLE } );
+ } else if( K == 1 ) {
+ path( [ _PATHS[ 2 ], [ 0, 0 ], _PATHS[ 3 ] ], { fill : COLORS2, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 2 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 3 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 2 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 3 ] ] );
+ label( [ L3[ 0 ], L3[ 1 ] + 0.5 ], _SIDES[ 0 ], { color : RED } );
+ label( [ L4[ 0 ] + 0.5, L4[ 1 ] ], _SIDES[ 1 ], { color : PURPLE } );
+ } else if( K == 2 ) {
+ path( [ _PATHS[ 4 ], [ 0, 0 ], _PATHS[ 3 ] ], { fill : COLORS2, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 3 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 4 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 3 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 4 ] ] );
+ label( [ L3[ 0 ] - 0.5, L3[ 1 ] ], _SIDES[ 1 ], { color : RED } );
+ label( [ L4[ 0 ], L4[ 1 ] + 0.5 ], _SIDES[ 0 ], { color : PURPLE } );
+ } else {
+ path( [ _PATHS[ 4 ], [ 0, 0 ], _PATHS[ 1 ] ], { fill : COLORS2, opacity : 0.5 } );
+ line( [ 0, 0 ], _PATHS[ 4 ], { stroke : RED } );
+ line( [ 0, 0 ], _PATHS[ 1 ], { stroke : PURPLE } );
+ var L3 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 4 ] ] );
+ var L4 = lineMidpoint( [ [ 0, 0 ], _PATHS[ 1 ] ] );
+ label( [ L3[ 0 ], L3[ 1 ] - 0.5 ], _SIDES[ 0 ], { color : RED } );
+ label( [ L4[ 0 ] - 0.5, L4[ 1 ] ], _SIDES[ 1 ], { color : PURPLE } );
+ }
+
+
+
+
可推證:甲、乙的面積皆相同。
+
可推證:甲、乙、丙、丁的面積皆相同。
+
+