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

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

View File

@ -0,0 +1,116 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Factorizator</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: 65%;
padding-left: 10px;
}
td {
font-size: 11pt;
padding-left: 10px;
}
li {
margin-bottom: 4px;
}
</style>
</head>
<body>
<h1>Factorizator</h1>
<div class="section">
<h2>Factorizator topics</h2>
<ul>
<li><a href="#start">
Getting started</a></li>
<li><a href="#ui">
The user interface</a></li>
<li><a href="#keys">
Keyboard shortcuts</a></li>
<li><a href="#limits">
Limitations</a></li>
</ul>
</div>
<div class="section">
<a name="start"> </a>
<h2>Getting started</h2>
<p>The <strong>Factorizator</strong> is an application which displays the <em>factorization</em> of natural numbers. <em>Factorization</em> is defined as the decomposition of the number into prime factors, which multiplied will yeld the original number.</p>
<p>Using the application is very simple, one has to simply type a number in the input text box, and press <em>Calculate</em> (or Enter key). The result is displayed in the <em>Factorization</em> area. The first column shows the original numbers divided by the last divisor, and in the divisor column, the divisors are listed.</p>
</div>
<div class="section">
<a name="ui"> </a>
<h2>The user interface</h2>
<img src="img/interface.png"/>
<ol>
<li><strong>Input number</strong>: this is where a number is written.</li>
<li><strong>Calculate button</strong>: press this button (or the Enter key) to begin calculation.</li>
<li><strong>Remainder column</strong>: the result of the previous number divided by the divisor.</li>
<li><strong>Divisor column</strong>: the smallest divisor (excluding 1) of the coresponding remainder.</li>
<li><strong>Copy remainder menu item</strong>: copies the selected reminder into clipboard.</li>
<li><strong>Copy divisor menu item</strong>: copies the selected divisor into clipboard.</li>
<li><strong>Copy remainder menu item</strong>: empties the <em>Factorization</em> area.</li>
<li><strong>Status message</strong>: displays the current operation taking place.</li>
<li><strong>Cancel button</strong>: this button appears when a long calculation is taking place, so that the user may cancel if the operation is taking too long.</li>
</ol>
</div>
<div class="section">
<a name="keys"> </a>
<h2>Keyboard shortcuts</h2>
<table>
<tr>
<th>Key combination</th> <th id="main">Action </th>
</tr>
<tr>
<td class="key">Enter</td>
<td>Performs calculation.</td>
</tr>
<tr>
<td class="key">F1</td>
<td>Starts help.</td>
</tr>
<tr>
<td class="key">Ctrl + C</td>
<td>Copies selected remainder into clipboard.</td>
</tr>
<tr>
<td class="key">Ctrl + Shift + C</td>
<td>Copies selected divisor into clipboard.</td>
</tr>
</table>
</div>
<div class="section">
<a name="limits"> </a>
<h2>Limitations</h2>
<p>The calculator is limited to 128bit floating point numbers (approximate range: <20>1.0 <20> 10<sup>-28</sup> to <20>7.9 <20> 10<sup>28</sup>, or 28-29 digits). However, since factorization can only be done for integer numbers, the numbers that are not integer will be trimmed.</p>
</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,116 @@
<!-- saved from url=(0014)about:internet -->
<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<head>
<title>Factorizator</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: 65%;
padding-left: 10px;
}
td {
font-size: 11pt;
padding-left: 10px;
}
li {
margin-bottom: 4px;
}
</style>
</head>
<body>
<h1>Factorizator</h1>
<div class="section">
<h2>Factorizator topics</h2>
<ul>
<li><a href="#start">
Getting started</a></li>
<li><a href="#ui">
The user interface</a></li>
<li><a href="#keys">
Keyboard shortcuts</a></li>
<li><a href="#limits">
Limitations</a></li>
</ul>
</div>
<div class="section">
<a name="start"> </a>
<h2>Getting started</h2>
<p>The <strong>Factorizator</strong> is an application which displays the <em>factorization</em> of natural numbers. <em>Factorization</em> is defined as the decomposition of the number into prime factors, which multiplied will yield the original number.</p>
<p>Using the application is very simple, one has to simply type a number in the input text box, and press <em>Calculate</em> (or Enter key). The result is displayed in the <em>Factorization</em> area. The first column shows the original numbers divided by the last divisor, and in the divisor column, the divisors are listed.</p>
</div>
<div class="section">
<a name="ui"> </a>
<h2>The user interface</h2>
<img src="img/interface.png"/>
<ol>
<li><strong>Input number</strong>: this is where a number is written.</li>
<li><strong>Calculate button</strong>: press this button (or the Enter key) to begin calculation.</li>
<li><strong>Remainder column</strong>: the result of the previous number divided by the divisor.</li>
<li><strong>Divisor column</strong>: the smallest divisor (excluding 1) of the corresponding remainder.</li>
<li><strong>Copy remainder menu item</strong>: copies the selected reminder into clipboard.</li>
<li><strong>Copy divisor menu item</strong>: copies the selected divisor into clipboard.</li>
<li><strong>Copy remainder menu item</strong>: empties the <em>Factorization</em> area.</li>
<li><strong>Status message</strong>: displays the current operation taking place.</li>
<li><strong>Cancel button</strong>: this button appears when a long calculation is taking place, so that the user may cancel if the operation is taking too long.</li>
</ol>
</div>
<div class="section">
<a name="keys"> </a>
<h2>Keyboard shortcuts</h2>
<table>
<tr>
<th>Key combination</th> <th id="main">Action </th>
</tr>
<tr>
<td class="key">Enter</td>
<td>Performs calculation.</td>
</tr>
<tr>
<td class="key">F1</td>
<td>Starts help.</td>
</tr>
<tr>
<td class="key">Ctrl + C</td>
<td>Copies selected remainder into clipboard.</td>
</tr>
<tr>
<td class="key">Ctrl + Shift + C</td>
<td>Copies selected divisor into clipboard.</td>
</tr>
</table>
</div>
<div class="section">
<a name="limits"> </a>
<h2>Limitations</h2>
<p>The calculator is limited to 128bit floating point numbers (approximate range: <20>1.0 <20> 10<sup>-28</sup> to <20>7.9 <20> 10<sup>28</sup>, or 28-29 digits). However, since factorization can only be done for integer numbers, the numbers that are not integer will be trimmed.</p>
</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;
}