-
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.
Showing
23 changed files
with
1,072 additions
and
1,361 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", "example1"], "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"], "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"]} |
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,83 @@ | ||
<!DOCTYPE html> | ||
<!--********************************************--> | ||
<!--* Generated from PreTeXt source *--> | ||
<!--* *--> | ||
<!--* https://pretextbook.org *--> | ||
<!--* *--> | ||
<!--********************************************--> | ||
<html lang="en-US" dir="ltr"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<script> | ||
var runestoneMathReady = new Promise((resolve) => window.rsMathReady = resolve); | ||
window.MathJax = { | ||
"tex": { | ||
"inlineMath": [ | ||
[ | ||
"\\(", | ||
"\\)" | ||
] | ||
], | ||
"tags": "none", | ||
"tagSide": "right", | ||
"tagIndent": ".8em", | ||
"packages": { | ||
"[+]": [ | ||
"base", | ||
"extpfeil", | ||
"ams", | ||
"amscd", | ||
"color", | ||
"newcommand", | ||
"knowl" | ||
] | ||
} | ||
}, | ||
"options": { | ||
"ignoreHtmlClass": "tex2jax_ignore|ignore-math", | ||
"processHtmlClass": "process-math" | ||
}, | ||
"chtml": { | ||
"scale": 0.98, | ||
"mtextInheritFont": true | ||
}, | ||
"loader": { | ||
"load": [ | ||
"input/asciimath", | ||
"[tex]/extpfeil", | ||
"[tex]/amscd", | ||
"[tex]/color", | ||
"[tex]/newcommand", | ||
"[pretext]/mathjaxknowl3.js" | ||
], | ||
"paths": { | ||
"pretext": "https://pretextbook.org/js/lib" | ||
} | ||
}, | ||
"startup": { | ||
pageReady() { | ||
return MathJax.startup.defaultPageReady().then(function () { | ||
console.log("in ready function"); | ||
rsMathReady(); | ||
} | ||
)} | ||
} | ||
}; | ||
</script><script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script><link href="https://pretextbook.org/css/0.83/pretext.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/pretext_add_on.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/shell_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/banner_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/navbar_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/toc_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/knowls_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/style_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/colors_blue_red.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/setcolors.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraph.css"> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraphcore.js"></script> | ||
</head> | ||
<body class="ptx-content ignore-math" id="changeme"><div style="width:600px; height:700px; display: block; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;"> | ||
<div class="sidebyside"><div class="sbsrow" style="margin-left:15%;margin-right:15%;"><div class="sbspanel top" style="width:100%;"><div id="jxgbox" class="jxgbox" style="width:420px; height:210px; display: block; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;"></div></div></div></div> | ||
<script src="external/code/jsxmatrix1.js"></script> | ||
</div></body> | ||
</html> |
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 @@ | ||
<!DOCTYPE html> | ||
<!--********************************************--> | ||
<!--* Generated from PreTeXt source *--> | ||
<!--* *--> | ||
<!--* https://pretextbook.org *--> | ||
<!--* *--> | ||
<!--********************************************--> | ||
<html lang="en-US" dir="ltr"> | ||
<head xmlns:og="http://ogp.me/ns#" xmlns:book="https://ogp.me/ns/book#"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title></title> | ||
<meta name="Keywords" content="Authored in PreTeXt"> | ||
<meta property="og:type" content="book"> | ||
<meta property="book:title" content="Linear Algebra for Dummies"> | ||
<meta property="book:author" content="You"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<script>js_version = 0.33</script><script src="https://pretextbook.org/js/lib/jquery.min.js"></script><script src="https://pretextbook.org/js/lib/jquery.sticky.js"></script><script src="https://pretextbook.org/js/lib/jquery.espy.min.js"></script><script src="https://pretextbook.org/js/0.33/pretext.js"></script><script>miniversion=0.1</script><script src="https://pretextbook.org/js/0.33/pretext_add_on.js?x=1"></script><script src="https://pretextbook.org/js/0.33/user_preferences.js"></script><script src="https://pretextbook.org/js/lib/knowl.js"></script><!--knowl.js code controls Sage Cells within knowls--><script>sagecellEvalName='Evaluate (Sage)'; | ||
</script><link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""> | ||
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.cdnfonts.com/css/dejavu-serif" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Serif:opsz,wdth,[email protected],50..150,100..900&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wdth,[email protected],300..800&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"> | ||
<link href="https://pretextbook.org/css/0.83/pretext.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/pretext_add_on.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/shell_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/banner_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/navbar_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/toc_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/knowls_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/style_default.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/colors_blue_red.css" rel="stylesheet" type="text/css"> | ||
<link href="https://pretextbook.org/css/0.83/setcolors.css" rel="stylesheet" type="text/css"> | ||
<!--** eBookCongig is necessary to configure interactive **--> | ||
<!--** Runestone components to run locally in reader's browser **--> | ||
<!--** No external communication: **--> | ||
<!--** log level is 0, Runestone Services are disabled **--> | ||
<script type="text/javascript"> | ||
eBookConfig = {}; | ||
eBookConfig.useRunestoneServices = false; | ||
eBookConfig.host = 'http://127.0.0.1:8000'; | ||
eBookConfig.course = 'PTX_Course_Title_Here'; | ||
eBookConfig.basecourse = 'PTX_Base_Course'; | ||
eBookConfig.isLoggedIn = false; | ||
eBookConfig.email = ''; | ||
eBookConfig.isInstructor = false; | ||
eBookConfig.logLevel = 0; | ||
eBookConfig.username = ''; | ||
eBookConfig.readings = null; | ||
eBookConfig.activities = null; | ||
eBookConfig.downloadsEnabled = false; | ||
eBookConfig.allow_pairs = false; | ||
eBookConfig.enableScratchAC = false; | ||
eBookConfig.build_info = ""; | ||
eBookConfig.python3 = null; | ||
eBookConfig.runestone_version = '7.2.8'; | ||
eBookConfig.jobehost = ''; | ||
eBookConfig.proxyuri_runs = ''; | ||
eBookConfig.proxyuri_files = ''; | ||
eBookConfig.enable_chatcodes = false; | ||
</script> | ||
<!--*** Runestone Services ***--> | ||
<script type="text/javascript" src="https://runestone.academy/cdn/runestone/7.2.8/prefix-runtime.ec55fa20f167401c.bundle.js"></script><script type="text/javascript" src="https://runestone.academy/cdn/runestone/7.2.8/prefix-347.8328b60515045466.bundle.js"></script><script type="text/javascript" src="https://runestone.academy/cdn/runestone/7.2.8/prefix-runestone.aeac7cf9ad5c07ef.bundle.js"></script><link rel="stylesheet" type="text/css" href="https://runestone.academy/cdn/runestone/7.2.8/prefix-347.f9add1ca35d5ad93.css"> | ||
<link rel="stylesheet" type="text/css" href="https://runestone.academy/cdn/runestone/7.2.8/prefix-runestone.f64dcc3632d7a0c3.css"> | ||
</head> | ||
<body id="changeme" class="pretext book ignore-math"> | ||
<a class="assistive" href="#ptx-content">Skip to main content</a><div id="latex-macros" class="hidden-content process-math" style="display:none"><span class="process-math">\(\require{cancel}\require{mathtools}\require{boldsymbol}\newcommand{\N}{\mathbb{N}} | ||
\newcommand{\pN}{\mathbb{N}^{*}} | ||
\newcommand{\Z}{\mathbb{Z}} | ||
\newcommand{\pZ}{\mathbb{Z}^{+}} | ||
\newcommand{\mZ}{\mathbb{Z}^{-}} | ||
\newcommand{\Q}{\mathbb{Q}} | ||
\newcommand{\nQ}{\bar{\mathbb{Q}}} | ||
\newcommand{\R}{\mathbb{R}} | ||
|
||
\newcommand{\bs}[1]{\boldsymbol{#1}} | ||
|
||
\newcommand{\mat}[1]{\begin{matrix}#1\end{matrix}} | ||
\newcommand{\bmat}[1]{\begin{bmatrix}#1\end{bmatrix}} | ||
\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}} | ||
\newcommand{\amat}[1]{\left\langle\begin{matrix}#1\end{matrix}\right\rangle} | ||
\newcommand{\hvec}[1]{\bs{[}\begin{matrix}#1\end{matrix}\bs{]}} | ||
|
||
\newcommand{\smat}[1]{\begin{smallmatrix}#1\end{smallmatrix}} | ||
\newcommand{\sbmat}[1]{\begin{bsmallmatrix}#1\end{bsmallmatrix}} | ||
\newcommand{\spmat}[1]{\begin{psmallmatrix}#1\end{psmallmatrix}} | ||
\newcommand{\samat}[1]{\left\langle\begin{smallmatrix}#1\end{smallmatrix}\right\rangle} | ||
\newcommand{\lt}{<} | ||
\newcommand{\gt}{>} | ||
\newcommand{\amp}{&} | ||
\definecolor{fillinmathshade}{gray}{0.9} | ||
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}} | ||
\)</span></div> | ||
<header id="ptx-masthead" class="ptx-masthead"><div class="ptx-banner"> | ||
<a id="logo-link" class="logo-link" target="_blank" href=""></a><div class="title-container"> | ||
<h1 class="heading"><a href="linear-algebra-for-dummies.html"><span class="title">Linear Algebra for Dummies</span></a></h1> | ||
<p class="byline">You</p> | ||
</div> | ||
</div></header><div class="ptx-page"><main class="ptx-main"><div id="ptx-content" class="ptx-content" style="max-width: 1600px"> | ||
<iframe id="example1" width="600" height="700" src="example1-if.html"></iframe><div class="instructions"><details id="example1-2" class="solution-like born-hidden-knowl"><summary><h3 class="heading"><span class="type">Instructions<span class="period">.</span></span></h3></summary><div class="solution-like"><div class="para" id="example1-2-1">Test online example</div></div></details></div> | ||
</div></main></div> | ||
</body> | ||
</html> |
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,73 @@ | ||
/* Mike Bostock, GPL license, 2018-04-25 */ | ||
/* https://bl.ocks.org/mbostock/3231298 */ | ||
|
||
var width = 480, | ||
height = 480; | ||
|
||
var nodes = d3.range(200).map(function() { return {radius: Math.random() * 12 + 4}; }), | ||
root = nodes[0], | ||
color = d3.scale.category10(); | ||
|
||
root.radius = 0; | ||
root.fixed = true; | ||
|
||
var force = d3.layout.force() | ||
.gravity(0.05) | ||
.charge(function(d, i) { return i ? 0 : -2000; }) | ||
.nodes(nodes) | ||
.size([width, height]); | ||
|
||
force.start(); | ||
|
||
var svg = d3.select("#d3-collision").append("svg") | ||
.attr("width", width) | ||
.attr("height", height); | ||
|
||
svg.selectAll("circle") | ||
.data(nodes.slice(1)) | ||
.enter().append("circle") | ||
.attr("r", function(d) { return d.radius; }) | ||
.style("fill", function(d, i) { return color(i % 3); }); | ||
|
||
force.on("tick", function(e) { | ||
var q = d3.geom.quadtree(nodes), | ||
i = 0, | ||
n = nodes.length; | ||
|
||
while (++i < n) q.visit(collide(nodes[i])); | ||
|
||
svg.selectAll("circle") | ||
.attr("cx", function(d) { return d.x; }) | ||
.attr("cy", function(d) { return d.y; }); | ||
}); | ||
|
||
svg.on("mousemove", function() { | ||
var p1 = d3.mouse(this); | ||
root.px = p1[0]; | ||
root.py = p1[1]; | ||
force.resume(); | ||
}); | ||
|
||
function collide(node) { | ||
var r = node.radius + 16, | ||
nx1 = node.x - r, | ||
nx2 = node.x + r, | ||
ny1 = node.y - r, | ||
ny2 = node.y + r; | ||
return function(quad, x1, y1, x2, y2) { | ||
if (quad.point && (quad.point !== node)) { | ||
var x = node.x - quad.point.x, | ||
y = node.y - quad.point.y, | ||
l = Math.sqrt(x * x + y * y), | ||
r = node.radius + quad.point.radius; | ||
if (l < r) { | ||
l = (l - r) / l * .5; | ||
node.x -= x *= l; | ||
node.y -= y *= l; | ||
quad.point.x += x; | ||
quad.point.y += y; | ||
} | ||
} | ||
return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1; | ||
}; | ||
} |
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,46 @@ | ||
JXG.Options.text.useMathJax = true; | ||
var b1 = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-10,10,10,-10], axis:true}); | ||
b1.suspendUpdate(); | ||
var a = b1.create('slider',[[-5,-2],[5,-2],[-5,1,5]],{name:'a', snapWidth:0.1}); | ||
var b = b1.create('slider',[[-5,-3],[5,-3],[-5,0,5]],{name:'b', snapWidth:0.1}); | ||
var c = b1.create('slider',[[-5,-4],[5,-4],[-5,0,5]],{name:'c', snapWidth:0.1}); | ||
var d = b1.create('slider',[[-5,-5],[5,-5],[-5,1,5]],{name:'d', snapWidth:0.1}); | ||
|
||
var v = b1.create('point',[2,2],{face:'o', size:2, name:'v'}); | ||
var va = b1.create('arrow',[[0,0],v]); | ||
|
||
var v2 = b1.create('point',[ | ||
function() {return a.Value()*v.X()+b.Value()*v.Y();}, | ||
function() {return c.Value()*v.X()+d.Value()*v.Y();}],{face:'o', size:2, name:"v'", fillColor: 'black', strokeColor: 'black'}); | ||
var va2 = b1.create('arrow',[[0,0],v2],{strokeColor:'black', strokeWidth:1}); | ||
|
||
var t = b1.create('text',[-8, 5, | ||
function(){ return '\\[ M = \\left(\\begin{matrix}' | ||
+ (a.Value()).toFixed(2) + '&' | ||
+ (b.Value()).toFixed(2) + '\\\\' | ||
+ (c.Value()).toFixed(2) +'&' | ||
+ (d.Value()).toFixed(2)+'\\end{matrix}\\right)\\]';}]); | ||
|
||
var t2 = b1.create('text',[-8,2, | ||
function(){ return "\\[\\lambda = \\frac{|v'|}{|v|} = " | ||
+ ( | ||
JXG.Math.Geometry.distance([0,0],[v2.X(),v2.Y()])/ | ||
JXG.Math.Geometry.distance([0,0],[v.X(),v.Y()]) | ||
).toFixed(3) | ||
+ "\\]";}]); | ||
b1.unsuspendUpdate(); | ||
|
||
showTrace = false; | ||
var toggleTrace = function() { | ||
showTrace = !showTrace; | ||
v.setProperty({trace: showTrace}); | ||
v2.setProperty({trace: showTrace}); | ||
var b = document.getElementById("toggleButton"); | ||
if (showTrace) { | ||
b.value = "Hide trace"; | ||
} else { | ||
b.value = "Show trace"; | ||
v.clearTrace(); | ||
v2.clearTrace(); | ||
} | ||
}; |
Oops, something went wrong.