Remove hint.html and index.html
As per discussions on GitHub the index.html and hint.html files should be deleted in favour of README.md files (from any .text/.txt/.markdown/.md files which will be turned into README.md in an upcoming commit).
This commit is contained in:
1 parent
ee8a36310f
commit
77fb0f11a2
143 files changed
-28606
No files matched your search
@@ -1,129 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta name="GENERATOR" content="mkd2html 2.1.5a DL=DISCOUNT">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
href="../hint.css">
|
||||
<title>Smallest large system simulator</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Smallest large system simulator</h1>
|
||||
|
||||
<p>Yves-Marie Morgan<br>
|
||||
<a href="mailto:yves-marie.morgan@parrot.com">yves-marie.morgan@parrot.com</a></p>
|
||||
|
||||
<h2>Judges' comments:</h2>
|
||||
|
||||
<h3>To build:</h3>
|
||||
|
||||
<pre><code>make morgan1
|
||||
</code></pre>
|
||||
|
||||
<h3>To run:</h3>
|
||||
|
||||
<pre><code>echo "2013/10/03" | ./morgan1
|
||||
</code></pre>
|
||||
|
||||
<h3>Try:</h3>
|
||||
|
||||
<pre><code>echo "1985/10/28" | ./morgan1
|
||||
|
||||
echo "1996/12/31" | ./morgan1
|
||||
</code></pre>
|
||||
|
||||
<p>Try pressing the arrow keys when your focus is in the window.</p>
|
||||
|
||||
<h3>Selected Judges Remarks:</h3>
|
||||
|
||||
<p>To verify the output, try echoing the date of an evening with a clear sky.
|
||||
Use binoculars and/or telescope as needed. In some cases you may need
|
||||
to wait for a better time of the evening. In a few cases, such as
|
||||
the South Pole in the summer, you may need to move to a different
|
||||
observing site.</p>
|
||||
|
||||
<h2>Author’s comments:</h2>
|
||||
|
||||
<h1>Instructions</h1>
|
||||
|
||||
<p>It displays the position of the 8 planets of the solar system around the sun.
|
||||
The date given in the command line is in the format YYYY/MM/DD (year, month and
|
||||
day). The direction keys can be used to move in time :
|
||||
Left : go back 1 day.
|
||||
Right : go forward 1 day.
|
||||
Down : go back 20 days.
|
||||
Up : go forward 20 days.</p>
|
||||
|
||||
<p>It handles correctly all leap years and the switch between julian calendar and
|
||||
gregorian calendar (10 days missing between 1582/10/04 and 1582/10/15).</p>
|
||||
|
||||
<p>The scale is logarithmic to be able to display the 8 planets without having
|
||||
Mercury, Venus, Earth and Mars squizzed around the sun.</p>
|
||||
|
||||
<p>The size is not proportinal either.</p>
|
||||
|
||||
<h1>Bonus</h1>
|
||||
|
||||
<p>It also displays the position of 2 famous comets during their last approach :
|
||||
- The first one arround the third IOCCC.
|
||||
- The second one between the thirteenth and fourteenth IOCCC.</p>
|
||||
|
||||
<h1>Limitations</h1>
|
||||
|
||||
<ul>
|
||||
<li>ASCII character set is assumed.</li>
|
||||
<li>a c99 compiler is required (for some math.h functions).</li>
|
||||
<li>The position should be correct for years between (-1000; +3000)</li>
|
||||
<li>The approximations done in the formula are OK for displaying the
|
||||
position around the sun but not for other applications like ephemeride or
|
||||
sky view from Earth (angles may be off by 1 or 2 degrees sometimes).</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>Obfuscation</h1>
|
||||
|
||||
<ul>
|
||||
<li>Reuse of 1 letter variables.</li>
|
||||
<li>Only the main function with some for loops.</li>
|
||||
<li>Constants for orbital elements encoded in a string.</li>
|
||||
<li>Hexadecimal and decimal values used inconsitentely.</li>
|
||||
<li>Comparisons order are not consitent.</li>
|
||||
<li>A lot of stuff is done in the different parts of the for loop.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>Compilation warnings</h1>
|
||||
|
||||
<p>with gcc 4.7.2 on Linux Ubuntu 12.10 :
|
||||
* prog.c:38:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|
||||
* prog.c:40:34: warning: value computed is not used [-Wunused-value]
|
||||
* prog.c:56:6: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|
||||
* prog.c:58:50: warning: value computed is not used [-Wunused-value]
|
||||
* prog.c:61:5: warning: suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]</p>
|
||||
|
||||
<p>with clang 3.1 on Linux Ubuntu 12.10 :
|
||||
* prog.c:38:49: warning: ‘&&’ within ‘||’ [-Wlogical-op-parentheses]
|
||||
* prog.c:38:27: warning: ‘&&’ within ‘||’ [-Wlogical-op-parentheses]
|
||||
* prog.c:55:13: warning: ‘&&’ within ‘||’ [-Wlogical-op-parentheses]
|
||||
* prog.c:56:14: warning: ‘&&’ within ‘||’ [-Wlogical-op-parentheses]</p>
|
||||
|
||||
<p>Due to most parentheses and braces removed when unecessary.</p>
|
||||
|
||||
<p>To verify the display, you can look at one of this programs :
|
||||
* xephem : http://www.clearskyinstitute.com/xephem/
|
||||
* homeplanet : http://www.fourmilab.ch/homeplanet/
|
||||
* http://www.theplanetstoday.com/</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<TABLE><TR>
|
||||
<TD><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a></TD>
|
||||
<TD><P>© Copyright 1984-2015,
|
||||
<A HREF="/judges.html">Leo Broukhis, Simon Cooper, Landon Curt Noll</A>
|
||||
- All rights reserved<BR>
|
||||
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</P></TD>
|
||||
<TD> <!--<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>--></TD>
|
||||
</TR></TABLE>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user