-
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.
Matrix geometry: unit square
- Loading branch information
Showing
5 changed files
with
78 additions
and
1 deletion.
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 @@ | ||
<!DOCTYPE html><html lang="ru"><head><meta charset="UTF-8"><title>Tutor</title><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="css/prism.css"><link rel="stylesheet" type="text/css" href="css/bootstrap.min_4.6.0.css"><link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css"><script type="text/javascript" src="scripts/prism.js"></script><script type="text/javascript" src="scripts/jquery.js"></script><script type="text/javascript" src="scripts/jquery.ui.js"></script><script type="text/javascript" src="scripts/popper.min.js"></script><script type="text/javascript" src="scripts/bootstrap.min.js"></script><script src="scripts/mathjax/es5/tex-chtml.js" id="MathJax-script" async></script><script src="https://tikzjax.com/v1/tikzjax.js"></script><!--link(rel="stylesheet", type="text/css", href="scripts/katex/katex.min.css", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/katex.min.js", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/contrib/auto-render.min.js", crossorigin="anonymous", onload="renderMathInElement(document.body);")--><!--script(type="text/javascript", src="scripts/katex/contrib/copy-tex.min.js", crossorigin="anonymous")--><script type="text/javascript" src="scripts/general.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"></head><body><nav class="navbar navbar-expand-md fixed-top bg-dark navbar-dark"><div class="container-xl"><a class="navbar-brand" href="#"><img class="d-inline-block align-text-top" src="./img/logo.png" alt="" width="30" height="30"><text>Tutor</text></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample07XL" aria-controls="navbarsExample07XL" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarsExample07XL"><ul class="navbar-nav mr-auto"><li class="nav-item"> <a class="nav-link" href="./index.html">Меню</a></li><li class="nav-item"> <a class="nav-link" href="./contacts.html">Контакты</a></li></ul></div></div></nav><main class="container" role="main"><div class="row"><div class="col-md-12"> <div class="card mb-4 shadow-sm"><div class="card-body"><h4 class="card-title">Добро пожаловать в Tutor!</h4><p class="card-text overflow-auto"><h5>Тригонометрия</h5><ul><li><a href="./tabularTrigonometry.html">Табличные значения тригонометрических углов</a></li><li><a href="./сastFormulas.html">Формулы приведения</a></li></ul><h5>Линейная алгебра и аналитическая геометрия</h5><ul><li><a>Геометрия векторов </a><ul><li><a href="./additionVectorsTriangleRule2DSpace.html">Сложение векторов с помощью правила треугольника в двумерном пространстве</a></li><li><a href="./additionVectorsParallelogramRule2DSpace.html">Сложение векторов с помощью правила параллелограмма в двумерном пространстве</a></li><li><a href="./scalingVector2DSpace.html">Скалирование векторов в двумерном пространстве</a></li></ul></li><li><a>Геометрия матриц </a><ul><li><a href="./transforming2DSpaceUsing2x2Matrix.html">Преобразования двумерного пространства с помощью матрицы 2x2</a></li><li><a href="./transforming2DSpaceUsing2x2Matrix.html">Преобразования двумерного вектора с помощью матрицы 2x2</a></li></ul></li></ul><h5>Комплексные числа</h5><ul><li><a href="./additionСomplexNumbers.html">Сложение комплексных чисел в алгебраической форме</a></li><li><a href="./subtractionСomplexNumbers.html">Разность комплексных чисел в алгебраической форме</a></li></ul><h5>Дифференциальное исчисление</h5><ul><li><a href="./tabularIntegrals.html">Табличные интегралы</a></li><li><a>Простейшие приёмы интегрирования</a><ul><li><a href="./tabularIntegrals.html">Работа со степенями</a></li></ul></li><li><a>Основные методы интегрирования</a><ul><li><a href="./integralsTrigonometrySumProduct.html">Интегрирование триг. выражений: произведение в сумму</a></li><li><a href="./integrationTrigonometryExpressionsInPowers.html">Интегрирование триг. выражений в степени</a></li></ul></li></ul></p></div></div></div></div></main></body><footer><div class="container"> <p class="float-right"> <a href="#">Наверх </a></p><p>© 2022 <a href="https://github.com/Yaro2709">github</a></p></div></footer></html> | ||
<!DOCTYPE html><html lang="ru"><head><meta charset="UTF-8"><title>Tutor</title><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="css/prism.css"><link rel="stylesheet" type="text/css" href="css/bootstrap.min_4.6.0.css"><link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css"><script type="text/javascript" src="scripts/prism.js"></script><script type="text/javascript" src="scripts/jquery.js"></script><script type="text/javascript" src="scripts/jquery.ui.js"></script><script type="text/javascript" src="scripts/popper.min.js"></script><script type="text/javascript" src="scripts/bootstrap.min.js"></script><script src="scripts/mathjax/es5/tex-chtml.js" id="MathJax-script" async></script><script src="https://tikzjax.com/v1/tikzjax.js"></script><!--link(rel="stylesheet", type="text/css", href="scripts/katex/katex.min.css", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/katex.min.js", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/contrib/auto-render.min.js", crossorigin="anonymous", onload="renderMathInElement(document.body);")--><!--script(type="text/javascript", src="scripts/katex/contrib/copy-tex.min.js", crossorigin="anonymous")--><script type="text/javascript" src="scripts/general.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"></head><body><nav class="navbar navbar-expand-md fixed-top bg-dark navbar-dark"><div class="container-xl"><a class="navbar-brand" href="#"><img class="d-inline-block align-text-top" src="./img/logo.png" alt="" width="30" height="30"><text>Tutor</text></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample07XL" aria-controls="navbarsExample07XL" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarsExample07XL"><ul class="navbar-nav mr-auto"><li class="nav-item"> <a class="nav-link" href="./index.html">Меню</a></li><li class="nav-item"> <a class="nav-link" href="./contacts.html">Контакты</a></li></ul></div></div></nav><main class="container" role="main"><div class="row"><div class="col-md-12"> <div class="card mb-4 shadow-sm"><div class="card-body"><h4 class="card-title">Добро пожаловать в Tutor!</h4><p class="card-text overflow-auto"><h5>Тригонометрия</h5><ul><li><a href="./tabularTrigonometry.html">Табличные значения тригонометрических углов</a></li><li><a href="./сastFormulas.html">Формулы приведения</a></li></ul><h5>Линейная алгебра и аналитическая геометрия</h5><ul><li><a>Геометрия векторов </a><ul><li><a href="./additionVectorsTriangleRule2DSpace.html">Сложение векторов с помощью правила треугольника в двумерном пространстве</a></li><li><a href="./additionVectorsParallelogramRule2DSpace.html">Сложение векторов с помощью правила параллелограмма в двумерном пространстве</a></li><li><a href="./scalingVector2DSpace.html">Скалирование векторов в двумерном пространстве</a></li></ul></li><li><a>Геометрия матриц </a><ul><li><a href="./transforming2DSpaceUsing2x2Matrix.html">Преобразования двумерного пространства с помощью матрицы 2x2</a></li><li><a href="./transforming2DSpaceUsing2x2Matrix.html">Преобразования двумерного вектора с помощью матрицы 2x2</a></li><li><a href="./transforming2DSpaceUsing2x2MatrixСhangingUnitSquare.html">Преобразования двумерного пространства с помощью матрицы 2x2 и изменение единичного квадрата</a></li></ul></li></ul><h5>Комплексные числа</h5><ul><li><a href="./additionСomplexNumbers.html">Сложение комплексных чисел в алгебраической форме</a></li><li><a href="./subtractionСomplexNumbers.html">Разность комплексных чисел в алгебраической форме</a></li></ul><h5>Дифференциальное исчисление</h5><ul><li><a href="./tabularIntegrals.html">Табличные интегралы</a></li><li><a>Простейшие приёмы интегрирования</a><ul><li><a href="./tabularIntegrals.html">Работа со степенями</a></li></ul></li><li><a>Основные методы интегрирования</a><ul><li><a href="./integralsTrigonometrySumProduct.html">Интегрирование триг. выражений: произведение в сумму</a></li><li><a href="./integrationTrigonometryExpressionsInPowers.html">Интегрирование триг. выражений в степени</a></li></ul></li></ul></p></div></div></div></div></main></body><footer><div class="container"> <p class="float-right"> <a href="#">Наверх </a></p><p>© 2022 <a href="https://github.com/Yaro2709">github</a></p></div></footer></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
45 changes: 45 additions & 0 deletions
45
scripts/BD/transforming2DSpaceUsing2x2MatrixСhangingUnitSquare.js
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,45 @@ | ||
//Флаг шаблона | ||
flag = module(1,1); | ||
//Шаблоны | ||
switch (flag) { | ||
//Основные формулы | ||
case 1: | ||
VarA11 = module(-3,3); | ||
VarA12 = module(-3,3); | ||
VarA21 = module(-3,3); | ||
VarA22 = module(-3,3); | ||
task = String.raw`\begin{gather*} | ||
\left[ | ||
\begin{array}{cccc} | ||
${VarA11} && ${VarA12}\\ | ||
${VarA21} && ${VarA22} | ||
\end{array} | ||
\right] | ||
\end{gather*}`; | ||
answer = String.raw`\begin{gather*} \end{gather*}`; | ||
img = String.raw`\begin{tikzpicture} | ||
\clip (-7,-7) rectangle (7cm,7cm); % Clips the picture... | ||
\draw [very thin,gray!40,dashed] (-7,-7) grid (7,7); | ||
\pgftransformcm{${VarA11}}{${VarA21}}{${VarA12}}{${VarA22}}{\pgfpoint{0}{0}} | ||
\draw [black!60] (-14,-7) grid (14,7); | ||
%Specify the transformation matrix and the center point | ||
\draw[->, gray!90, line width=1pt] (-7, 0) -- (7, 0) node[right] {$x$}; | ||
\draw[->, gray!90, line width=1pt] (0, -7) -- (0, 7) node[above] {$y$}; | ||
\draw[->, green!70, line width=1pt] (0, 0) -- (1, 0) node[right] {$i$}; | ||
\draw[->, red!70, line width=1pt] (0, 0) -- (0, 1) node[above] {$j$}; | ||
\draw[yellow!70, line width=1pt] (0, 1) -- (0.5, 1) node[above, green!70]{$1$} -- (1, 1); | ||
\draw[yellow!70, line width=1pt] (1, 1) -- (1, 0.5) node[right, green!70]{$1$} -- (1, 0); | ||
\fill[yellow,draw=yellow, fill opacity=0.2] plot coordinates { (0,0) (1,0) (1,1) (0,1) } ; | ||
\end{tikzpicture}`; | ||
break; | ||
//Дополнительные формулы | ||
default: | ||
alert( "400 Bad Request: value is undefined!" ); | ||
} | ||
//Вывод | ||
document.getElementById("task").innerHTML = task; | ||
document.getElementById("answer").innerHTML = answer; | ||
document.getElementById("img").innerHTML = img; |
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 @@ | ||
<!DOCTYPE html><html lang="ru"><head><meta charset="UTF-8"><title>Tutor</title><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="css/prism.css"><link rel="stylesheet" type="text/css" href="css/bootstrap.min_4.6.0.css"><link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css"><script type="text/javascript" src="scripts/prism.js"></script><script type="text/javascript" src="scripts/jquery.js"></script><script type="text/javascript" src="scripts/jquery.ui.js"></script><script type="text/javascript" src="scripts/popper.min.js"></script><script type="text/javascript" src="scripts/bootstrap.min.js"></script><script src="scripts/mathjax/es5/tex-chtml.js" id="MathJax-script" async></script><script src="https://tikzjax.com/v1/tikzjax.js"></script><!--link(rel="stylesheet", type="text/css", href="scripts/katex/katex.min.css", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/katex.min.js", crossorigin="anonymous")--><!--script(type="text/javascript", src="scripts/katex/contrib/auto-render.min.js", crossorigin="anonymous", onload="renderMathInElement(document.body);")--><!--script(type="text/javascript", src="scripts/katex/contrib/copy-tex.min.js", crossorigin="anonymous")--><script type="text/javascript" src="scripts/general.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"></head><body><nav class="navbar navbar-expand-md fixed-top bg-dark navbar-dark"><div class="container-xl"><a class="navbar-brand" href="#"><img class="d-inline-block align-text-top" src="./img/logo.png" alt="" width="30" height="30"><text>Tutor</text></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample07XL" aria-controls="navbarsExample07XL" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarsExample07XL"><ul class="navbar-nav mr-auto"><li class="nav-item"> <a class="nav-link" href="./index.html">Меню</a></li><li class="nav-item"> <a class="nav-link" href="./contacts.html">Контакты</a></li></ul></div></div></nav><main class="container" role="main"><div class="row"><div class="col-md-12"> <div class="card mb-4 shadow-sm"><div class="card-body"><h5 class="card-title">Преобразования двумерного пространства с помощью матрицы 2x2 и изменение единичного квадрата</h5><p class="card-text overflow-auto"><module id="task"></module></p><p><button class="btn btn-success" type="button" data-toggle="collapse" data-target="#transforming2DSpaceUsing2x2MatrixСhangingUnitSquare" aria-expanded="false" aria-controls="#transforming2DSpaceUsing2x2MatrixСhangingUnitSquare">Ответ</button></p><div class="collapse" id="transforming2DSpaceUsing2x2MatrixСhangingUnitSquare"><div class="card card-body"><div class="boxTikZ"><script type="text/tikz" id="img"></script></div><result id="answer"></result></div></div></div></div></div></div></main><script type="text/javascript" src="scripts/BD/transforming2DSpaceUsing2x2MatrixСhangingUnitSquare.js"></script></body><footer><div class="container"> <p class="float-right"> <a href="#">Наверх </a></p><p>© 2022 <a href="https://github.com/Yaro2709">github</a></p></div></footer></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,29 @@ | ||
doctype html | ||
html(lang="ru") | ||
include ./templates/layout/head.pug | ||
body | ||
include ./templates/layout/nav.pug | ||
|
||
|
||
|
||
main.container(role="main") | ||
div.row | ||
div.col-md-12 | ||
div.card.mb-4.shadow-sm | ||
div.card-body | ||
h5.card-title Преобразования двумерного пространства с помощью матрицы 2x2 и изменение единичного квадрата | ||
p.card-text.overflow-auto | ||
module(id="task") | ||
p | ||
button.btn.btn-success(type="button", data-toggle="collapse", data-target="#transforming2DSpaceUsing2x2MatrixСhangingUnitSquare", aria-expanded="false", aria-controls="#transforming2DSpaceUsing2x2MatrixСhangingUnitSquare") Ответ | ||
div.collapse(id="transforming2DSpaceUsing2x2MatrixСhangingUnitSquare") | ||
div.card.card-body | ||
div.boxTikZ | ||
script(type="text/tikz", id="img") | ||
result(id="answer") | ||
|
||
script(type="text/javascript", src="scripts/BD/transforming2DSpaceUsing2x2MatrixСhangingUnitSquare.js") | ||
|
||
|
||
|
||
include ./templates/layout/footer.pug |