<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Amcar147</id>
	<title>SE250:lab-5:mcar147 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Amcar147"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:mcar147&amp;action=history"/>
	<updated>2026-08-28T04:49:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-5:mcar147&amp;diff=6668&amp;oldid=prev</id>
		<title>Mark: 5 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:mcar147&amp;diff=6668&amp;oldid=prev"/>
		<updated>2008-11-03T05:19:51Z</updated>

		<summary type="html">&lt;p&gt;5 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
{| style=&amp;quot;float:right;&lt;br /&gt;
| __TOC__ &lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
[[SE250:lab-5|Back to Lab Reports]]&lt;br /&gt;
==Prologue==&lt;br /&gt;
This lab was rather tough, firstly because I didn&amp;#039;t have the gcc compiler on my laptop, thus aking it rather tough to actaully compile all files at once.&lt;br /&gt;
&lt;br /&gt;
Next I had to download putty so I could run a shell and access the Uni linux server to actaully be able to compile.&lt;br /&gt;
 gcc -lm *.c -o lab-5 &amp;amp;&amp;amp; ./lab-5&lt;br /&gt;
&lt;br /&gt;
Finally after all that when I was actaully able to start we encountered an interesting error:&lt;br /&gt;
 randtest.c:154: warning: incompatible implicit declaration of built-in function &amp;#039;log2&amp;#039;&lt;br /&gt;
Fortunately this didn&amp;#039;t prevent me from running the code, so alls good.&lt;br /&gt;
&lt;br /&gt;
==Task 1==&lt;br /&gt;
After an hour of stuffing around I finally was able to start on the lab...  Yay...&lt;br /&gt;
With all three values set to 100, the results were interesting, with 50% exceeding and Monte Carlo pi value being 2.5&lt;br /&gt;
&lt;br /&gt;
Increasing all values to 10000, the Chi square increased to 99% and Monte Carlo pi rose to 3.188, much closer to what we want&lt;br /&gt;
&lt;br /&gt;
Interestingly, if the values were dropped down to 10, the Chi square returned to 50%, while the Monte Carlo pi dropped to 0...&lt;br /&gt;
&lt;br /&gt;
==Task 2==&lt;br /&gt;
With the first test the llps was 3 while the expected was 4.22, and on the second it was 7 instead of 6.67.&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>