Added source code.

This commit is contained in:
2018-02-06 01:24:46 +02:00
parent 1d9f2990c8
commit 8b28da5b80
367 changed files with 22964 additions and 0 deletions

View File

@ -0,0 +1,60 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator: Basic guide</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Matrix Calculator: Basic guide</h1>
<div class="section">
<h2>Content</h2>
<ul>
<li><a href="#add">Adding matrices</a></li>
<li><a href="#calc">Performing a calculation</a></li>
</ul>
</div>
<div class="section">
<a name="add"></a>
<h2>Adding matrices</h2>
<p>In <em>Matrix Calculator</em>, matrices are listed in the left panel. Two default matrices already exist (zero and identity matrices). These don't behave like normal matrices, the size is not fixed, so they are compatible for any type of operation with any other matrix.</p>
<p>Adding a matrix can be done by either <em>creating</em> a matrix, or <em>importing</em> a matrix.</p>
<br />
<h3>Creating a matrix</h3>
<p><strong>Step 1:</strong> First open the <em>Matrix</em> menu, and click <em>New matrix...</em> Alternatively, you can also right click in the matrix list.</p>
<img src="img/matrix-basic0.png"/>
<p><strong>Step 2:</strong> Select a width and height for the matrix, and click <em>Apply</em> to update the matrix size. Now you can add the values in the table.</p>
<img src="img/matrix-basic1.png"/>
<p><strong>Step 3:</strong> Give the new matrix a name, and optionally a description, and press <em>Accept</em>.</p>
<br />
<h3>Importing a matrix</h3>
<p>This feature is not yet available.</p>
</div>
<div class="section">
<a name="calc"></a>
<h2>Performing a calculation</h2>
<p>In the main window there are two boxes (called slots), labeled <em>Matrix A</em> and <em>Matrix B</em>. These are the two terms that are used in calculation.</p>
<img src="img/matrix-basic2.png"/>
<p>To insert a matrix into a slot, you can either <em>drag and drop</em> the matrix from the list, or select the <em>Insert in slot _</em> option in the <em>Matrix</em> menu (or right click).</p>
<p>After inserting the matrix/matrices, click the button corresponding to the operation. If there was an error, it will be displayed in the <em>Output</em> box. The result will appear in the <em>Result</em> box.
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

View File

@ -0,0 +1,133 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator: Buttons</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td.but {
border: 1px solid black;
border-radius: 5px;
padding: 2px;
margin: -2px;
font-size: 10pt;
text-align: center;
}
td.but2 {
margin-top: 5px;
font-size: 9pt;
text-align: center;
color:gray;
padding: 0;
}
th {
text-align: left;
font-size: 9pt;
}
th#main {
width: 100%;
padding-left: 10px;
}
td {
font-size: 11pt;
padding-left: 10px;
}
td.r {
text-align: right;
}
</style>
</head>
<body>
<h1>Matrix Calculator: Buttons</h1>
<div class="section">
<h2>Buttons</h2>
<table>
<tr>
<th>Button </th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">A + B</td>
<td>Adds two matrices.</td>
</tr>
<tr>
<td class="but">A - B</td>
<td>Subtracts matrix B from matrix A.</td>
</tr>
<tr>
<td class="but">A * B</td>
<td>Multiplies 2 matrices.</td>
</tr>
<tr>
<td class="but">A + x</td>
<td>Adds a number to every element in matrix A.</td>
</tr>
<tr>
<td class="but">A - x</td>
<td>Subtracts a number from every element in matrix A</td>
</tr>
<tr>
<td class="but">A * x</td>
<td>Multiplies a number to every element in matrix A</td>
</tr>
<tr>
<td class="but">A ^ -1</td>
<td>Calculates inverse of matrix A.</td>
</tr>
<tr>
<td class="but">A ^ x</td>
<td>Raises matrix A to integer power x</td>
</tr>
<tr>
<td class="but">Transp(A)</td>
<td>Calculates A transposed.</td>
</tr>
<tr>
<td class="but">Trace(A)</td>
<td>Calculates the trace of matrix A (sum of elements on the diagonal).</td>
</tr>
<tr>
<td class="but">Rank(A)</td>
<td>Calculates the rank of matrix A.</td>
</tr>
<tr>
<td class="but">Det(A)</td>
<td>Calculates the determinant of matrix A.</td>
</tr>
<tr>
<td class="but">Min(A)</td>
<td>Finds the minimum element of matrix A.</td>
</tr>
<tr>
<td class="but">Max(A)</td>
<td>Finds the maximum element of matrix A.</td>
</tr>
</table>
<br />
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

View File

@ -0,0 +1,275 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator: Calculator window</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td.but {
font-size: 10pt;
font-weight: bold;
text-align: right;
color: gray;
}
td.sm {
font-size: 10pt;
}
th {
text-align: left;
font-size: 9pt;
background: #FAFAFA;
}
th#main {
width: 90%;
}
th#name {
width: 20%;
}
td {
font-size: 11pt;
padding-right: 10px;
}
td.r {
text-align: right;
}
</style>
</head>
<body>
<h1>Matrix Calculator: Calculator window</h1>
<div class="section">
<h2>Content</h2>
<ul>
<li><a href="#calc">Calculator window</a></li>
<li><a href="#file">The file menu</a></li>
<li><a href="#matrix">The matrix menu</a></li>
<li><a href="#help">The help menu</a></li>
</ul>
</div>
<div class="section">
<a name="calc"></a>
<h2>Calculator window</h2>
<img src="img/matrix-calc0.png" /> <br /> <br />
<table>
<tr>
<th></th> <th id="name">Name</th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">1</td>
<td class="sm">Matrix list</td>
<td>This is where all the created matrices are.</td>
</tr>
<tr>
<td class="but">2</td>
<td class="sm">Preview pane</td>
<td>The matrix selected in the list is displayed here.</td>
</tr>
<tr>
<td class="but">3</td>
<td class="sm">Slot A</td>
<td>The first term of operations.</td>
</tr>
<tr>
<td class="but">4</td>
<td class="sm">Slot B</td>
<td>The second term of operations.</td>
</tr>
<tr>
<td class="but">5</td>
<td class="sm">Result</td>
<td>This is where the result of the calculation appears.</td>
</tr>
<tr>
<td class="but">6</td>
<td class="sm">Functions</td>
<td>All the functions are defined here. For a more detailed explanation, check the <a href="buttons.htm"><em>What all the buttons do</em></a> article.</td>
</tr>
<tr>
<td class="but">7</td>
<td class="sm">Output</td>
<td>If there are any errors (like incompatible matrices), they are displayed here.</td>
</tr>
</table>
</div>
<div class="section">
<a name="file"></a>
<h2>The file menu</h2>
<img src="img/matrix-calc1.png" /> <br /> <br />
<table>
<tr>
<th></th> <th id="name">Name</th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">1</td>
<td class="sm">New worksheet</td>
<td>Creates a new worksheet*.</td>
</tr>
<tr>
<td class="but">2</td>
<td class="sm">Open...</td>
<td>Opens an existing worksheet.</td>
</tr>
<tr>
<td class="but">3</td>
<td class="sm">Save</td>
<td>Saves current worksheet.</td>
</tr>
<tr>
<td class="but">4</td>
<td class="sm">Save as...</td>
<td>Saves as a new worksheet.</td>
</tr>
<tr>
<td class="but">5</td>
<td class="sm">Import from csv file...</td>
<td>Imports matrices from a Comma Separated Value file. This feature is not (yet) available.</td>
</tr>
<tr>
<td class="but">6</td>
<td class="sm">Import from worksheet...</td>
<td>Imports matrices from an existing worksheet. This feature is not (yet) available.</td>
</tr>
<tr>
<td class="but">7</td>
<td class="sm">Preferences</td>
<td>Opens the preferences window.</td>
</tr>
<tr>
<td class="but">8</td>
<td class="sm">Exit</td>
<td>Closes the application.</td>
</tr>
</table>
<br />
<p style="font-size:8pt;">* A worksheet is defined as a collection of matrices.</p>
</div>
<div class="section">
<a name="matrix"></a>
<h2>The matrix menu</h2>
<p>This menu can also be opened by right clicking inside the matrix list.</p>
<img src="img/matrix-calc2.png" /> <br /> <br />
<table>
<tr>
<th></th> <th id="name">Name</th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">1</td>
<td class="sm">New matrix...</td>
<td>Creates a new matrix.</td>
</tr>
<tr>
<td class="but">2</td>
<td class="sm">Edit selected...</td>
<td>Edits the selected matrix.</td>
</tr>
<tr>
<td class="but">3</td>
<td class="sm">Delete selected</td>
<td>Deletes the selected matrices.</td>
</tr>
<tr>
<td class="but">4</td>
<td class="sm">Duplicate selected...</td>
<td>Creates a new matrix based on the selected one.</td>
</tr>
<tr>
<td class="but">5</td>
<td class="sm">Insert in slot A.</td>
<td>Inserts the matrix in slot A (the first term).</td>
</tr>
<tr>
<td class="but">6</td>
<td class="sm">Insert in slot B.</td>
<td>Inserts the matrix in slot B (second term).</td>
</tr>
<tr>
<td class="but">7</td>
<td class="sm">Copy</td>
<td>Copies the selected matrices into memory. This feature is not (yet) available.</td>
</tr>
<tr>
<td class="but">8</td>
<td class="sm">Paste</td>
<td>Pastes matrices from memory. This feature is not (yet) available.</td>
</tr>
<tr>
<td class="but">9</td>
<td class="sm">Copy</td>
<td>Paste matrix from another application. This feature is not (yet) available.</td>
</tr>
</table>
</div>
<div class="section">
<a name="help"></a>
<h2>The help menu</h2>
<img src="img/matrix-calc3.png" /> <br /> <br />
<table>
<tr>
<th></th> <th id="name">Name</th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">1</td>
<td class="sm">About</td>
<td>Opens a window with information about <em>Tibi's Mathematics Suite</em>.</td>
</tr>
<tr>
<td class="but">2</td>
<td class="sm">Help</td>
<td>Displays help using the application.</td>
</tr>
</table>
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

View File

@ -0,0 +1,169 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator: Editor window</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td.but {
font-size: 10pt;
font-weight: bold;
text-align: right;
color: gray;
}
td.sm {
font-size: 10pt;
}
th {
text-align: left;
font-size: 9pt;
background: #FAFAFA;
}
th#main {
width: 90%;
}
th#name {
width: 20%;
}
td {
font-size: 11pt;
padding-right: 10px;
}
td.r {
text-align: right;
}
</style>
</head>
<body>
<h1>Matrix Calculator: Editor window</h1>
<div class="section">
<h2>Editor window</h2>
<img src="img/matrix-editor0.png" /> <br />
<table>
<tr>
<th></th> <th id="name">Name</th> <th id="main">Description </th>
</tr>
<tr>
<td class="but">1</td>
<td class="sm">Name</td>
<td>The name of the matrix. This field is required.</td>
</tr>
<tr>
<td class="but">2</td>
<td class="sm">Description</td>
<td>A description of the matrix. This field is optional.</td>
</tr>
<tr>
<td class="but">3</td>
<td class="sm">Matrix size</td>
<td>Change the number of rows and columns of the matrix.</td>
</tr>
<tr>
<td class="but">4</td>
<td class="sm">Apply button</td>
<td>Updates the matrix with the new size inserted.</td>
</tr>
<tr>
<td class="but">5</td>
<td class="sm">Reset button</td>
<td>Resets the row and column count if change was not applied.</td>
</tr>
<tr>
<td class="but">6</td>
<td class="sm">Accept button</td>
<td>Saves the modified matrix, and closes the window. If there are empty cells, they are filled with 0.</td>
</tr>
<tr>
<td class="but">7</td>
<td class="sm">Cancel button</td>
<td>Discards the modified matrix, and closes the window.</td>
</tr>
<tr>
<td class="but">8</td>
<td class="sm">Grid</td>
<td>This is where you can edit the matrix elements.</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><th></th><th>Grid context menu</th><th></th></tr>
<tr>
<td class="but">9</td>
<td class="sm">Cut</td>
<td>Cuts the selected cells.</td>
</tr>
<tr>
<td class="but">A</td>
<td class="sm">Copy</td>
<td>Copies the selected cells into memory.</td>
</tr>
<tr>
<td class="but">B</td>
<td class="sm">Paste</td>
<td>Inserts cells from memory.</td>
</tr>
<tr>
<td class="but">C</td>
<td class="sm">Clear selected</td>
<td>Sets the values in the selected cells to 0.</td>
</tr>
<tr>
<td class="but">D</td>
<td class="sm">Clear all</td>
<td>Sets all the values in the matrix to 0.</td>
</tr>
<tr>
<td class="but">E</td>
<td class="sm">Insert row</td>
<td>Inserts a row before the selected cell.</td>
</tr>
<tr>
<td class="but">F</td>
<td class="sm">Insert column</td>
<td>Inserts a column before the selected cell.</td>
</tr>
<tr>
<td class="but">G</td>
<td class="sm">Delete row</td>
<td>Deletes the row that contains the selected cell(s).</td>
</tr>
<tr>
<td class="but">H</td>
<td class="sm">Delete column</td>
<td>Deletes the column that contains the selected cell(s).</td>
</tr>
</table>
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,62 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Matrix Calculator</h1>
<div class="section">
<h2>Content</h2>
<ul>
<li><a href="#info">General information</a></li>
<li><a href="#limits">Limitations</a></li>
<li><a href="#articles">Matrix calculator articles</a></li>
</ul>
</div>
<div class="section">
<a name="info"></a>
<h2>General information</h2>
<p>The <em>Matrix Calculator</em> is calculator for mathematical matrices. In mathematics, a matrix is a rectangular array of numbers, symbols, or expressions. The individual items in a matrix are called its elements or entries.
</div>
<div class="section">
<a name="limits"></a>
<h2>Limitations</h2>
<p>The calculator is limited to 64bit floating point numbers (approximate range: <20>5.0 <20> 10<sup>-324</sup> to <20>1.7 <20> 10<sup>308</sup>, or 15-16 digits).</p>
<p>The size of a matrix is only limited by the system memory, but it is not a very good idea to use large matrices (e.g. bigger than 100x100), since they make the application slow, and unresponsive.</p>
</div>
<div class="section">
<a name="articles"></a>
<h2>Matrix calculator articles</h2>
<h3>Getting started</h3>
<ul>
<li><a href="basic.htm">
Basic guide</a></li>
<li><a href="buttons.htm">
What all the buttons do</a></li>
</ul>
<h3>Additional articles</h3>
<ul>
<li><a href="calc.htm">
The calculator window</a></li>
<li><a href="editor.htm">
The matrix editor</a></li>
<li><a href="keyshortcuts.htm">
Keyboard shortcuts</a></li>
</ul>
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

View File

@ -0,0 +1,131 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Matrix Calculator: Keyboard shortcuts</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td.key {
font-family: Consolas, monospace;
}
th {
text-align: left;
font-size: 9pt;
}
th#main {
width: 40%;
}
td {
font-size: 10pt;
}
td.r {
text-align: right;
}
</style>
</head>
<body>
<h1>Matrix Calculator: Keyboard shortcuts</h1>
<div class="section">
<h2>Keyboard shortcuts</h2>
<table>
<tr>
<th>Key combination</th> <th>Equivalent</th> <th id="main">Action </th>
</tr>
<tr>
<td class="key">Ctrl + N</td>
<td>File - New worksheet</td>
<td>Create new worksheet.</td>
</tr>
<tr>
<td class="key">Ctrl + O</td>
<td>File - Open...</td>
<td>Open worksheet.</td>
</tr>
<tr>
<td class="key">Ctrl + S</td>
<td>File - Save</td>
<td>Saves worksheet.</td>
</tr>
<tr>
<td class="key">Ctrl + Shift + S</td>
<td>File - Save As...</td>
<td>Saves worksheet as a new file.</td>
</tr>
<tr>
<td class="key">Ctrl + Q</td>
<td>File - Exit</td>
<td>Closes the application.</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td class="key">Ctrl + Shift + N</td>
<td>Matrix - New matrix...</td>
<td>Create new matrix.</td>
</tr>
<tr>
<td class="key">Ctrl + Shift + E</td>
<td>Matrix - Edit selected...</td>
<td>Edit selected matrix.</td>
</tr>
<tr>
<td class="key">Del</td>
<td>Matrix - Delete selected</td>
<td>Delete selected matrix.</td>
</tr>
<tr>
<td class="key">Ctrl + D</td>
<td>Matrix - Duplicate selected...</td>
<td>Duplicate selected matrix.</td>
</tr>
<tr>
<td class="key">Ctrl + Alt + A</td>
<td>Matrix - Insert in slot A</td>
<td>Inserts matrix for operand A.</td>
</tr>
<tr>
<td class="key">Ctrl + Alt + B</td>
<td>Matrix - Insert in slot B</td>
<td>Inserts matrix for operand B.</td>
</tr>
<tr>
<td class="key">Ctrl + C</td>
<td>Matrix - Copy</td>
<td>Copy selected matrix.</td>
</tr>
<tr>
<td class="key">Ctrl + V</td>
<td>Matrix - Paste</td>
<td>Paste a new matrix.</td>
</tr>
<tr>
<td class="key">Ctrl + Shift + V</td>
<td>Matrix - Paste special...</td>
<td>Paste from another application.</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td class="key">F1</td>
<td>Help - Help</td>
<td>Open help window.</td>
</tr>
</table>
<br />
</div>
<div class="footer">
Software created by Chibici Tiberiu.
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
</div>
</body>
</html>

View File

@ -0,0 +1,119 @@
body {
font-family: Verdana, sans-serif;
font-size: 10.5pt;
background: #F0F0F0;
margin:0px;
padding: 5px;
/*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F0F0F0', endColorstr='#A0A0A0');
background: -webkit-gradient(linear, left top, left bottom, from(#F0F0F0), to(#A0A0A0));
background: -moz-linear-gradient(top, #F0F0F0, #A0A0A0);*/
background-image: url("img/background.png");
background-repeat: repeat-x;
background-position: top center;
background-attachment: fixed;
}
.section {
margin: 5px;
margin-top: 10px;
padding: 5px;
padding-left: 15px;
min-width: 600px;
border: 1px solid silver;
background-color: #F5F5F5;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
box-shadow: 0px 3px 7px rgba(68,68,68,0.6);
-mox-box-shadow: 0px 3px 7px rgba(68,68,68,0.6);
-webkig-box-shadow: 0px 3px 7px rgba(68,68,68,0.6);
}
.footer {
margin-top: 20px;
color: #777;
text-align: center;
font-size: 10pt;
}
a {
text-decoration: none;
color: #248AC9;
}
a:hover {
color: #8DCFF7;
}
a > img {
border: 0px;
}
h1 {
margin:5px;
margin-bottom: 15px;
font-size: 18pt;
font-family: Arial, sans-serif;
font-weight: normal;
color: #606060;
}
h1:hover {
color: #909090;
}
h2 {
margin-top: -2px;
margin-left: -7px;
margin-bottom: 15px;
font-family: Arial, sans-serif;
font-size: 13pt;
font-weight: bold;
color: Silver;
}
h3 {
margin-top: 10px;
margin-bottom: -10px;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: bold;
color: #555;
}
img.shadow {
background: white;
box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
-mox-box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
-webkig-box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
}
img.maths {
margin-left: 2em;
margin-bottom: 5px;
}
.captioned_image_right {
float:right;
margin-left: 10px;
margin-bottom: 10px;
text-align: center;
background: white;
padding:5px;
width:150px;
box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
-mox-box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
-webkig-box-shadow: 2px 2px 7px rgba(68,68,68,0.4);
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}