<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by MadCow</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 05 Jun 2026 12:58:20 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Approximate the value of PI</title>
            <link>http://forum.lowyat.net/topic/783177</link>
            <description>Hi guys. I&amp;#39;m pretty new to C program. I&amp;#39;ve been given this assignment to write a program that asks the user thow many terms of the serires equation to use in approximating PI. The formula given is pi=4X(1- 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 - ....)&lt;br /&gt;&lt;br /&gt;Here is the script that I&amp;#39;ve written but I&amp;#39;m stuck. Please advice. My alogarithm might be wrong&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('9af2e5c4c9094f0c230356eff29f6f00')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;9af2e5c4c9094f0c230356eff29f6f00&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt; &lt;br /&gt;int main (void)&lt;br /&gt;{&lt;br /&gt;	int x,&lt;br /&gt;		i;&lt;br /&gt;	//int sum=0;&lt;br /&gt;	double PI;&lt;br /&gt;	float sum=0, y;&lt;br /&gt;&lt;br /&gt;	printf(&amp;quot;Please enter the terms of series that should be included&amp;gt; &amp;quot;);&lt;br /&gt;	scanf(&amp;quot;%d&amp;quot;, &amp;amp;x);&lt;br /&gt;&lt;br /&gt;	for (i=1; i&amp;lt;=x; i++){&lt;br /&gt;		i=y;&lt;br /&gt;&lt;br /&gt;		if (i%2==1) //odd&lt;br /&gt;&lt;br /&gt;			if (sum%2==0)&lt;br /&gt;				sum=sum+1/y;&lt;br /&gt;			else&lt;br /&gt;				sum=sum-1/y;&lt;br /&gt;				}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;			PI= 4*sum;&lt;br /&gt;			printf(&amp;quot;The sum is %f&amp;#092;n&amp;quot;, sum);&lt;br /&gt;			printf(&amp;quot;Approximate value of PI is %f&amp;#092;n&amp;quot;, PI);&lt;br /&gt;&lt;br /&gt;			return 0;&lt;br /&gt;}&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;</description>
            <author>MadCow</author>
            <category>Codemasters</category>
            <pubDate>Thu, 04 Sep 2008 16:56:46 +0800</pubDate>
        </item>
        <item>
            <title>SPL meter</title>
            <link>http://forum.lowyat.net/topic/704089</link>
            <description>Hey, anyone know where to get a good SPL meter in KL, (preferably not Jalan Pasar)? My budget is around RM100. thanks.</description>
            <author>MadCow</author>
            <category>Musicians</category>
            <pubDate>Sun, 25 May 2008 14:37:23 +0800</pubDate>
        </item>
        <item>
            <title>Dev-C++</title>
            <link>http://forum.lowyat.net/topic/669677</link>
            <description>Hey there. I&amp;#39;ve this problem while using Dev C++, that the command prompt window keep closing after displaying the results, thus making it impossible for me to read the results. Is there any way to halt or freeze the command prompt? I&amp;#39;m using windows vista.&lt;br /&gt;&lt;br /&gt;Best regards. =)</description>
            <author>MadCow</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Wed, 09 Apr 2008 02:25:05 +0800</pubDate>
        </item>
        <item>
            <title>EMU 0404 USB</title>
            <link>http://forum.lowyat.net/topic/623691</link>
            <description>Is there anyone out there using emu 0404 USB? i was wondering is it worth it if I were to use this SC solely as a standalone DAC? Or is there any other better option (DAC)?</description>
            <author>MadCow</author>
            <category>Audiophiles</category>
            <pubDate>Thu, 31 Jan 2008 18:50:53 +0800</pubDate>
        </item>
        <item>
            <title>Critical listening</title>
            <link>http://forum.lowyat.net/topic/349221</link>
            <description>How do you guys train your ears to recognize what sounds good? Some people are gifted. I m happy to say i am a lil gifted in listening but i want more than what i have now. Is there anyway to train my ears to a next level?</description>
            <author>MadCow</author>
            <category>Audiophiles</category>
            <pubDate>Wed, 04 Oct 2006 18:29:31 +0800</pubDate>
        </item>
        <item>
            <title>Preamp and amp...</title>
            <link>http://forum.lowyat.net/topic/337497</link>
            <description>Hi all. I do know preamp is for eq purposes. To get the best out of headphone. Is it a must to connect a preamp to a headphone amplifier n to a headphone? Or just connect headphone to headphone amp? Kinda confuse between preamp and amp.</description>
            <author>MadCow</author>
            <category>Audiophiles</category>
            <pubDate>Thu, 07 Sep 2006 19:03:10 +0800</pubDate>
        </item>
        <item>
            <title>cardbus soundcard</title>
            <link>http://forum.lowyat.net/topic/329709</link>
            <description>I m getting a lappy soon. Please recommend me a good cardbus soundcard (mainly for headphone use), buget around RM200. Does cardbus soundcard comes with headphone amp?</description>
            <author>MadCow</author>
            <category>Audiophiles</category>
            <pubDate>Mon, 21 Aug 2006 01:42:39 +0800</pubDate>
        </item>
    </channel>
</rss>
