顯示具有 Geogebra 標籤的文章。 顯示所有文章
顯示具有 Geogebra 標籤的文章。 顯示所有文章

2021年6月15日 星期二

Combination

 Geogebra 組合指令 

BinomialCoefficient( <Number>, <Number> )

nCr( <Number>, <Number> )

Calculates the binomial coefficient 

The first Number represents all elements n and the second Number represents the selected elements r.

BinomialCoefficient(10,1) yields 10

nCr(10,1)

BinomialCoefficient(10,2) yields 10*9 /(2*1)

nCr(10,2)

BinomialCoefficient(10,3) yields 10*9 *8/(3*2*1)

nCr(10,3)

BinomialCoefficient(10,8) yields 45

nCr(10,8)

BinomialCoefficient(10,9) yields 10

nCr(10,9)

數學上 C(n,r)=C(n,n-r)

由上面數值實驗可知

BinomialCoefficient(10,1) =  BinomialCoefficient(10,9)


利用Sequence()產生BinomialCoefficient(10,1),.....,BinomialCoefficient(10,10)

Sequence(BinomialCoefficient(10,i),i,1,10)

Sequence(nCr(10,i),i,1,10)

Permutation

 Geogebra 排列指令 

nPr(number,number)

nPr(10,1) yields 10

nPr(10,2) yields 10*9 

nPr(10,3) yields 10*9 *8

利用Sequence()產生nPr(10,1),.....,nPr(10,10)

Sequence(nPr(10,i),i,1,10)

2021年6月11日 星期五

因式分解/乘法展開

Geogebra 因式分解指令

  1. Factors  over polynomial, number
  2. Factor   over polynomial
  3. IFactor  over irrational
  4. CIFactor  over complex irrational

  • Factors Command

Factors( <Polynomial> ) yields {factor, exponent}

Factors(x^3-1) yields {{x-1,1},{x^2+x+1,1}}


Factors( <Number> ) 

Gives matrix of the type  

(prime_1,exponent_1) 

(prime_2,exponent_2) 

......


Factors(1024) yields (2   10)


  • Factor Command

Factor( <Polynomial> )   Factors the polynomial.

Factors(x^3-1) yields (x-1)(x^2+x+1)


  • IFactor Command

Factors over irrationals


  • CIFactor Command

Factors over complex irrationals.

https://wiki.geogebra.org/en/Algebra_Commands

Factors(1024)
Factors(59049)
Factors(1048576)

Factor(x^2-1)
Factor(x^3-1)
Factor(x^4-1)
Factor(x^2+2xy+y^2)
Factor(a^2+2ab+b^2) 會發生錯誤,因為Geogebra 將a,b 視為常數

Factor(x^3+3x^2 y+3x y^2+y^3)
Factor(x^4+4x^3 y+6x^2 y^2+4x y^3+y^4)


Pascal's Triangle
   
         1
       1  1
    1  2  1
  1 3   3  1
1 4   6  4 1

Geogebra 乘法展開指令

Expand((x^2-1)^2) yields x^2-2x+1




2021年6月9日 星期三

等比數列

 用Geogebra 動態繪出等比數列(G.P.)

1.  繪出數列  2,4,8,16,...

Geogebra code

a1=2

r=2

n=Slider(1,10,1)                             #Slider(min,max,step)

Sequence(a1*r^(i-1), i,1,n)

Sequence((i,a1*r^(i-1)),i,1,n)        #將數列畫在座標上

Text(a1*r^(n-1),(n,0))                    #在座標(n,0)顯示數列的值

StartAnimation(n)                        #將n變為動畫

Line((1,a1),(2,a1*r))


Lab1. 繪出數列 3,9,27,....

等差數列

 用Geogebra 動態繪出等差數列(A.P.)

1.  繪出數列  2,4,6,8,...

Geogebra code

a1=2

d=2

n=Slider(1,10,1)                             #Slider(min,max,step)

Sequence(a1+(i-1)*d, i,1,n)

Sequence((i,a1+(i-1)*d),i,1,n)        #將數列畫在座標上

Text(a1+(n-1)*d,(n,0))                    #在座標(n,0)顯示數列的值

StartAnimation(n)                        #將n變為動畫

Line((1,a1),(2,a1+d))


Lab1. 繪出數列 3,6,9,12,....



2021年5月23日 星期日

Geogebra 求切線方程式

 

C:x^2+y^2=25, 求過P(4,3)的切線方程式


  1. 在電腦安裝Geogebra 5.

  2. 或在手機安裝 Geogebra App

https://wiki.geogebra.org/en/Reference:GeoGebra_Installation#GeoGebra_Classic_5_for_Desktop


Geogebra command code

(在命令列輸入)


C:x^2+y^2=25

P=(4,3)

O=(0,0)

Segment(P,O)

Perpendicular(P,g)

Tangent(P,C)


Segment 線段


Perpendicular垂直線

  

Tangent 切線


可以使用Geogebra的繪圖工具

 

 


2020年6月17日 星期三

Geogebra 點/線與圓的關係

1.觀察點與圓的位置關係
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

A=(1,2)
B=(1,4)
C=(1,6)

2. 將圓心,半徑改為滑桿
h=slider(-5,5,.01)
k=slider(-5,5,.01)
r=slider(-5,5,.01)

(x-h)^2+(y-k)^2=r^2

A=(1,2)
B=(1,4)
C=(1,6)

個別點h, k, r 開始動畫,觀察圓的變化


3.圓上一點切線只有一條
m=slider(-5,5,.01)
y-4=m(x-1)
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

4.圓外一點切線只有一條
B=(2,4)
y-y(B)=m(x-x(B))
 m=slider(-5,5,.01)
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

5.用Excel 




2020年6月16日 星期二

歷屆試題

109 c
7.
(x-4)^2/25+(y+2)^2/144=1 求頂點,正焦弦長

中心點O=(4,-2)
長軸a=12 on y axis
短軸b=5
頂點
O+(0,12)
O-(0,12)
O+(5,0)
O-(5,0)
焦距c=sqrt(a^2-b^2)
焦點O+(0,c)
焦點O+(0,-c)
正焦弦長 d=2b^2/a
 
10.
x+2y-6>=0
x+y-10<=0

2<=x<=9
求解的面積

x+2y-6=0
x|2 |9
-------------
y|2 |-3/2

x+y-10=0
x|2 |9
-------------
y|8 |1


11. 
f(x)=2cos(3x)-1 
a=f(x)與x軸的交點數
b=f(x) max
solve ab=?

-1<=cos3x<=1

-2-1<=cos3x-1<=2-1
-3<=cos3x-1<=1
b=f(x) max=1

cosx period= 2pi
cos3x period=2pi/3

13. 
f(x)=x^3-3x^2-24x+32 on [-3,3]
m=f(x) max, n=f(x) min, solve m-n=?




2020年4月20日 星期一

分式

分式 4/21

使用geogebra 繪圖,觀察其變化
x
1/x (x的倒數, 反曲線)

x-1 (left shift 1) 左移1單位
1/(x-1)

x+1(right shift 1)右移1單位
1/(x+1)

x^2(拋物線)
1/x^2

(x-1)^2
1/(x-1)^2

(x+1)^2
1/(x+1)^2

x^2-2x+2 (常數項2 是y截距)
x^2+2x+2 (常數項2 是y截距)

ax^2+bx+c
ab<0 (右異)
ab>0 (左同)

頂點(-b/2a,(4ac-b^2)/4a)

1/(x^2+2x+2)

f(x)=x+1
g(x)=2x+1

f(x)+g(x)
f(x)-g(x)
f(x)g(x)
f(x)/g(x)
1/f(x)+1/g(x)

5x/(x^2-x-6)

geogebra differential


http://www.malinc.se/math/geogebra/coordinatesen.php

2020年4月8日 星期三

geogebra 分段函數


https://www.geogebra.org/m/H5QnUxY5

分段函數 求limit x->x(A)+,x(A)-

f(x)=if[x>=x(A),sin(x),(3x)/(x^2+x+1)]
B=(x(A),(3 x(A))/(x(A)^2+x(A)+1))
C=(x(A),sin(x(A)))
Limit(f(x),x,x(A))
Limit(f(x),x,x(A)+0.1)  #x->x(A)+
Limit(f(x),x,x(A)-0.1)  #x->x(A)-
Limit(f(x),x,x(A)+0.01)
Limit(f(x),x,x(A)-0.01)

2020年3月4日 星期三

圓方程式

screen task 
http://192.168.20.197:7070

gegebra code

O=(1,2)
r=2
Circle(O,r)
rem="由標準式看出圓心(1,2)"
(1,2)

h=slider(-5,5,0.1,1,180,false)
k=slider(-5,5,0.1,1,180,false)
O=(h,k)
rem="h動畫"
rem="k動畫"

2019年12月28日 星期六

Geogebra tutorial

  •  
 http://aprendeconalf.es/calculus/geogebra/calculus-geogebra/calculus-geogebra.pdf
 
  • Geogebra LAB
 http://gsite.asta.tw/blog/weilechutiyanxisuozuodetimujijieda

  • Geogebra 下載
https://www.geogebra.org/download

  • (右下角 GeoGebra Classic 5)

  • 配合<記事本>輸入 或 <notepad++>
  • notepad++  64bit installer
  • notepad++ 設定字型
         設定/設定程式語言格式
         字型大小 20
         開起共用字型
         開起共用字型大小
         開起共用粗體
  • 格式/字型 calbri 28
  • 小寫字母 : a,b,c,... 代表向量
  • 大寫字母 : A,B,C,... 代表點
  • 一次只能輸入一個指令
  • 多行指令需用Execute({"  ","    ","    ",.....,"   "}),將所有指令打入"    ",
          並用Execute({      })括起來
  • α °,   π  輸入法 : alt-a , alt-o , alt-p
  • slider(min,max,increment,speed,width,is angle,animating,random)
  • slider(0,10,1,1,180,false)
  • slider(0,180,1,1,180,true# is angle: true
  • matrix
https://wiki.geogebra.org/en/Matrices

  • ShowAxes(false)
  • ShowGrid(false)
  • ShowLabel(object,false)
  • ShowLayer( )  #layers 0..9
  • HideLayer( )
  • Polygon(A,B,3)
  • q=Polygon(A,B,3)
  • list1={Vertex(q)}
  • len=Length(list1)
  • Sequence(Element({list1(i)},1),i,1,len)
  • for loop
https://help.geogebra.org/topic/scripting-need-for-while-or-loop

http://www.malinc.se/math/geogebra/dynamictextandlatexen.php


  • 綜合除法
http://120.101.70.8/longlife/geogebra/GGB_Teach/Polynomial/Polynomial-19.html

碎形


https://www.geogebra.org/m/xhbvyf9r

2019年12月22日 星期日

向量2

1. a=(1,2),b=(3,4) 求
  1. a+b
  2. a-b
  3. 3a+2b
  4. a • b                      Dot(a,b)
  5. 3a•2b=6a•b
  6. a × b                      Cross(a,b)
  7. 3a × 2b=6a × b 
  8. |3a|=3|a|                 abs(3a)
  9. |b|
  10. a•b/( |a| |b|)             Dot(a,b)/(abs(a) abs(b))
2.A=(1,2),B=(3,4)
  1. 向量AB=B-A         vector(A,B)
  2. 向量BA=A-B         vector(B,A)
  3. 向量OA                  vector(O,A)
  4. 向量OB                  vector(O,B)
  5. OA • OB
3. 成績(國文,英文,數學,物理)
有 a,b,c 三位同學成績如下:
a=(90,80,70,55)
b=(80,65, 65, 60)
c=(70, 70,60,60)
求 a與b 或 a與c 成績較接近

hint: cos(θ),  cos(θ)值越大越接近
geogebra 無法用 4 維資料
可以改用 R,octave, python, ...

R code
a=c(90,80,70,55)
b=c(80,65, 65, 60)

# Euclidean distance(歐式距離) of a,b
Ea=sqrt(sum(a^2))
Eb=sqrt(sum(b^2))

#a.b
a%*%b

#cos(theta)=a.b/(|a||b|)
a%*%b/(Ea*Eb)


內積(點積;dot):
  • 向量a在向量b上的投影,再乘以b的長度=向量b在向量a上的投影,再乘以a的長度
  • 有交換性 a•b=b•a
  • a•b=|a||b|cos(θ)
  • a || b ⇔ a=tb, t∈ℜ(成倍數關係) (i.e. (x1,y1)=t(x2,y2) );⇔ x1/x2=y1/y2
  • a ⊥ b ⇔ a•b=0(無投影量)⇔ x1x2+y1y2=0
  • 純量
  • https://zh.wikipedia.org/wiki/%E7%82%B9%E7%A7%AF


外積(叉積 ; cross):
  • a,b 兩向量所展開的平行四邊形面積
  • 無交換性 a × b ≠ b × a (a × b = -(b × a)
  • a×b=|a||b|sin(θ)
  • a || b ⇔ a×b=0(無展開的平行四邊形面積) ⇔ x1y2-x2y1=0
  • 向量(有±)
  • https://zh.wikipedia.org/wiki/%E5%8F%89%E7%A7%AF


(1) 已知向量a, b之座標
 a=(x1,y1),b=(x2,y2)
  • 內積 a•b=x1*x2+y1*y2
  • 外積 a × b=x1*y2-x2*y1 (行列式的值)

(1) 已知向量a, b之長度及夾角
  • 內積 a•b=|a||b|cos(θ)
  • 外積 a × b=|a||b|sin(θ)

geogebra code

長度|a|=abs(a)

內積 a•b = Dot(a,b)

外積 a × b = Cross(a,b)

向量三重積(行列式值)
a•(b × c)=Dot(a,Cross(b,c))

根號 a = sqrt(a)

cos(θ)=Dot(a,b)/(abs(a) abs(b))