-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2 interactive examples for "Vector cot"
Deploy
- Loading branch information
1 parent
f58557c
commit b8812ce
Showing
58 changed files
with
1,278 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"source/main.ptx": ["linear-algebra-for-dummies"], "source/frontmatter.ptx": ["frontmatter"], "source/chapter01/ch-so-thuc-va-vector-cot.ptx": ["ch-so-thuc-va-vector-cot"], "source/chapter01/sec-so-thuc-va-cac-tinh-chat.ptx": ["sec-so-thuc-va-cac-tinh-chat"], "source/chapter01/sec-vector-cot.ptx": ["sec-vector-cot"], "source/chapter01/sec-khong-gian-vector.ptx": ["sec-khong-gian-vector", "kinematics"], "source/chapter02/ch-ma-tran.ptx": ["ch-ma-tran"], "source/chapter02/sec-ma-tran.ptx": ["sec-ma-tran"], "source/chapter02/sec-cac-ma-tran-co-so.ptx": ["sec-cac-ma-tran-co-so"], "source/chapter02/sec-cac-phep-bien-doi-hang.ptx": ["sec-cac-phep-bien-doi-hang"], "source/chapter02/sec-ma-tran-hoan-vi.ptx": ["sec-ma-tran-hoan-vi"], "source/chapter02/sec-ma-tran-bac-thang.ptx": ["sec-ma-tran-bac-thang"], "source/chapter02/sec-tru-cua-hang-va-hang-cua-ma-tran.ptx": ["sec-tru-cua-hang-va-hang-cua-ma-tran"], "source/chapter03/ch-cac-phep-toan-doi-voi-ma-tran.ptx": ["ch-cac-phep-toan-doi-voi-ma-tran"], "source/chapter03/sec-tong-cua-hai-ma-tran.ptx": ["sec-tong-cua-hai-ma-tran"], "source/chapter03/sec-nhan-ma-tran-voi-mot-so.ptx": ["sec-nhan-ma-tran-voi-mot-so"], "source/chapter03/sec-nhan-hai-ma-tran.ptx": ["sec-nhan-hai-ma-tran"], "source/chapter03/sec-ma-tran-khoi.ptx": ["sec-ma-tran-khoi"], "source/chapter03/sec-nhan-ma-tran-theo-khoi.ptx": ["sec-nhan-ma-tran-theo-khoi"], "source/chapter04/ch-dinh-thuc.ptx": ["ch-dinh-thuc"], "source/chapter04/sec-dinh-thuc.ptx": ["sec-dinh-thuc"], "source/chapter04/sec-ma-tran-con-va-phan-phu-dai-so.ptx": ["sec-ma-tran-con-va-phan-phu-dai-so"], "source/chapter04/sec-tinh-dinh-thuc.ptx": ["sec-tinh-dinh-thuc"], "source/chapter05/ch-giai-he-phuong-trinh-tuyen-tinh.ptx": ["ch-giai-he-phuong-trinh-tuyen-tinh"], "source/chapter05/sec-phuong-phap-khu-gauss.ptx": ["sec-phuong-phap-khu-gauss"], "source/chapter05/sec-phuong-phap-cramer-doi-voi-he-phuong-trinh-co-so-phuong-trinh-bang-so-an.ptx": ["sec-phuong-phap-cramer-doi-voi-he-phuong-trinh-co-so-phuong-trinh-bang-so-an"], "source/chapter05/sec-mot-so-ung-dung.ptx": ["sec-mot-so-ung-dung"], "source/chapter06/ch-phan-tich-ma-tran.ptx": ["ch-phan-tich-ma-tran"], "source/chapter06/sec-phan-tich-a-lu.ptx": ["sec-phan-tich-a-lu"], "source/chapter06/sec-phan-tich-a-cr.ptx": ["sec-phan-tich-a-cr"], "source/chapter06/sec-ma-tran-nghich-dao.ptx": ["sec-ma-tran-nghich-dao"], "source/chapter06/sec-ung-dung-de-giai-he-phuong-trinh-tuyen-tinh.ptx": ["sec-ung-dung-de-giai-he-phuong-trinh-tuyen-tinh"], "source/backmatter.ptx": ["backmatter"]} | ||
{"source/main.ptx": ["linear-algebra-for-dummies"], "source/frontmatter.ptx": ["frontmatter"], "source/chapter01/ch-so-thuc-va-vector-cot.ptx": ["ch-so-thuc-va-vector-cot"], "source/chapter01/sec-so-thuc-va-cac-tinh-chat.ptx": ["sec-so-thuc-va-cac-tinh-chat"], "source/chapter01/sec-vector-cot.ptx": ["sec-vector-cot", "interactive-vector2d", "interactive-vector3d"], "source/chapter01/sec-khong-gian-vector.ptx": ["sec-khong-gian-vector", "kinematics", "learn-jsxgraph", "test-online-geogebra", "test-geogebra", "interactive-vector3d-geogebra", "interactive-my-vector3d-geogebra"], "source/chapter02/ch-ma-tran.ptx": ["ch-ma-tran"], "source/chapter02/sec-ma-tran.ptx": ["sec-ma-tran"], "source/chapter02/sec-cac-ma-tran-co-so.ptx": ["sec-cac-ma-tran-co-so"], "source/chapter02/sec-cac-phep-bien-doi-hang.ptx": ["sec-cac-phep-bien-doi-hang"], "source/chapter02/sec-ma-tran-hoan-vi.ptx": ["sec-ma-tran-hoan-vi"], "source/chapter02/sec-ma-tran-bac-thang.ptx": ["sec-ma-tran-bac-thang"], "source/chapter02/sec-tru-cua-hang-va-hang-cua-ma-tran.ptx": ["sec-tru-cua-hang-va-hang-cua-ma-tran"], "source/chapter03/ch-cac-phep-toan-doi-voi-ma-tran.ptx": ["ch-cac-phep-toan-doi-voi-ma-tran"], "source/chapter03/sec-tong-cua-hai-ma-tran.ptx": ["sec-tong-cua-hai-ma-tran"], "source/chapter03/sec-nhan-ma-tran-voi-mot-so.ptx": ["sec-nhan-ma-tran-voi-mot-so"], "source/chapter03/sec-nhan-hai-ma-tran.ptx": ["sec-nhan-hai-ma-tran"], "source/chapter03/sec-ma-tran-khoi.ptx": ["sec-ma-tran-khoi"], "source/chapter03/sec-nhan-ma-tran-theo-khoi.ptx": ["sec-nhan-ma-tran-theo-khoi"], "source/chapter04/ch-dinh-thuc.ptx": ["ch-dinh-thuc"], "source/chapter04/sec-dinh-thuc.ptx": ["sec-dinh-thuc"], "source/chapter04/sec-ma-tran-con-va-phan-phu-dai-so.ptx": ["sec-ma-tran-con-va-phan-phu-dai-so"], "source/chapter04/sec-tinh-dinh-thuc.ptx": ["sec-tinh-dinh-thuc"], "source/chapter05/ch-giai-he-phuong-trinh-tuyen-tinh.ptx": ["ch-giai-he-phuong-trinh-tuyen-tinh"], "source/chapter05/sec-phuong-phap-khu-gauss.ptx": ["sec-phuong-phap-khu-gauss"], "source/chapter05/sec-phuong-phap-cramer-doi-voi-he-phuong-trinh-co-so-phuong-trinh-bang-so-an.ptx": ["sec-phuong-phap-cramer-doi-voi-he-phuong-trinh-co-so-phuong-trinh-bang-so-an"], "source/chapter05/sec-mot-so-ung-dung.ptx": ["sec-mot-so-ung-dung"], "source/chapter06/ch-phan-tich-ma-tran.ptx": ["ch-phan-tich-ma-tran"], "source/chapter06/sec-phan-tich-a-lu.ptx": ["sec-phan-tich-a-lu"], "source/chapter06/sec-phan-tich-a-cr.ptx": ["sec-phan-tich-a-cr"], "source/chapter06/sec-ma-tran-nghich-dao.ptx": ["sec-ma-tran-nghich-dao"], "source/chapter06/sec-ung-dung-de-giai-he-phuong-trinh-tuyen-tinh.ptx": ["sec-ung-dung-de-giai-he-phuong-trinh-tuyen-tinh"], "source/backmatter.ptx": ["backmatter"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
var boxDimensions = [-8, 6, 6, -6]; | ||
|
||
const board = JXG.JSXGraph.initBoard( | ||
'vector2d', | ||
{ | ||
boundingbox: boxDimensions, | ||
axis: true, | ||
showNavigation: false, | ||
showCopyright: true, | ||
}, | ||
); | ||
|
||
|
||
var sliderX = board.create( | ||
'slider', | ||
[ | ||
[-6.5, -3.5], | ||
[-4.5, -3.5], | ||
[-4, 1, 4], | ||
], | ||
{ | ||
name: 'x', | ||
}, | ||
); | ||
|
||
var sliderY = board.create( | ||
'slider', | ||
[ | ||
[-6.5, -4.5], | ||
[-4.5, -4.5], | ||
[-4, 1, 4], | ||
], | ||
{ | ||
name: 'y', | ||
}, | ||
); | ||
|
||
var checkboxShowArrow = board.create( | ||
'checkbox', | ||
[-7, 5, 'Arrow / Point'], | ||
); | ||
|
||
|
||
var pointOrigin = board.create( | ||
'point', | ||
[0.0, 0.0], | ||
{ | ||
name: 'O', | ||
fixed: true, | ||
size: 1, | ||
}, | ||
); | ||
|
||
var pointVector = board.create( | ||
'point', | ||
[ | ||
function() {return sliderX.Value();}, | ||
function() {return sliderY.Value();}, | ||
], | ||
{ | ||
name: '', | ||
visible: true, | ||
}, | ||
); | ||
|
||
var arrowVector = board.create( | ||
'arrow', | ||
[pointOrigin, pointVector], | ||
{ | ||
visible: false, | ||
}, | ||
); | ||
|
||
|
||
JXG.addEvent( | ||
checkboxShowArrow.rendNodeCheckbox, | ||
'change', | ||
function() { | ||
if (this.Value()) { | ||
arrowVector.setAttribute({ | ||
visible: true, | ||
}); | ||
pointVector.setAttribute({ | ||
visible: false, | ||
}); | ||
// checkboxShowArrow.setLabelText("Display: Arrow"); | ||
} else { | ||
arrowVector.setAttribute({ | ||
visible: false, | ||
}); | ||
pointVector.setAttribute({ | ||
visible: true, | ||
}); | ||
// checkboxShowArrow.setLabelText("Display: Point"); | ||
} | ||
}, | ||
checkboxShowArrow, | ||
); | ||
|
||
|
||
// Doesn't work - I don't know why lol | ||
/* checkboxShowArrow.setAttribute({ | ||
checked: true, | ||
}); */ |
Oops, something went wrong.