<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Quantity System</title>
	<atom:link href="http://quantitysystem.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://quantitysystem.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 16 Sep 2011 16:04:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='quantitysystem.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Quantity System</title>
		<link>http://quantitysystem.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://quantitysystem.wordpress.com/osd.xml" title="Quantity System" />
	<atom:link rel='hub' href='http://quantitysystem.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Quantity System Types Architecture</title>
		<link>http://quantitysystem.wordpress.com/2011/09/16/quantity-system-types-architecture/</link>
		<comments>http://quantitysystem.wordpress.com/2011/09/16/quantity-system-types-architecture/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 16:03:57 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/2011/09/16/quantity-system-types-architecture/</guid>
		<description><![CDATA[Today I am going to talk about the types that the Quantity System contains in its runtime I should make a distinction between two labels now: Quantity System Framework: is the library responsible about Quantities and their units. It forms the required functionality that holds the necessary classes for embedding units and quantities in your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=55&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I am going to talk about the types that the Quantity System contains in its runtime
</p>
<p>I should make a distinction between two labels now:
</p>
<ul>
<li>Quantity System Framework: is the library responsible about Quantities and their units. It forms the required functionality that holds the necessary classes for embedding units and quantities in your application.
</li>
<li>Quantity System: is the runtime that is built over the framework, that is evolving with time and its main concern is a new vision to apply the mathematics as a unit aware expressions.
</li>
</ul>
<p>
 </p>
<p>I admit that I am learning mathematics again while programming this marvelous library, I learnt the compiler theory, parsing techniques, object oriented, and how can I apply it to physical applications.
</p>
<p>I will try also to shorten my posts and increasing them to indicate the features that I&#8217;ve implemented so far. Also you (Dear reader) may encounter a lot of my thinking during the writings in this blog.
</p>
<p>However let&#8217;s avoid my philosophy view of what I am doing and dive directly into the architecture.
</p>
<h1>Qs Types<br />
</h1>
<p>There is a complex type that called QsScalar which serve the basic calculation type in Qs.
</p>
<p>The architecture of types that is calculated is illustrated on the next diagram
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys1.png?w=497" alt="" />
	</p>
<p><span style="color:#4f81bd;font-size:9pt;"><strong>Figure 1: Logical Relation between Qs Scalar and Tensor<br />
</strong></span></p>
<p>
 </p>
<p>
 </p>
<h2>QsScalar<br />
</h2>
<p>The scalar in quantity is a single quantity that holds a defined set of fields beside the unit of that field.
</p>
<p>
 </p>
<h3>Field<br />
</h3>
<p>The field is simply a Ring (Mathematical Point of View) or (Entity if I am talking from a programmer point of view)
</p>
<p>Integer Numbers are a field, Real Numbers are a field, Rational Numbers are a field, Irrational Numbers are fields also.
</p>
<p>But the concept of field goes beyond these samples also, because you can find Functions as Field.
</p>
<p>The following diagram will illustrate the Scalar Object supported fields in Quantity System
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys2.png?w=497" alt="" />
	</p>
<p><span style="color:#4f81bd;font-size:9pt;"><strong>Figure 2: Supported Mathematical Fields in QsScalar Type<br />
</strong></span></p>
<p>
 </p>
<h4>Real Number<br />
</h4>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys3.png?w=497" alt="" />
	</p>
<p>
 </p>
<h4>Rational Number<br />
</h4>
<p>Which contains {Numerator, Denominator}
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys4.png?w=497" alt="" />
	</p>
<p>
 </p>
<h4>Complex Number<br />
</h4>
<p>Which contains 2 components {Real Value, Imaginary Value}
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys5.png?w=497" alt="" />
	</p>
<p>
 </p>
<h4>Quaternions<br />
</h4>
<p>Which contains 4 compnents {Real, i, j, k}
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys6.png?w=497" alt="" />
	</p>
<h4>Symbolic<br />
</h4>
<p>Symbolic variables that help in symbolic calculations
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys7.png?w=497" alt="" />
	</p>
<p>
 </p>
<h4>Functions<br />
</h4>
<p>Referring to the function as a single quantity that can be added or subtracted
</p>
<p><img src="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys8.png?w=497" alt="" />
	</p>
<p>
 </p>
<p>As I promised that&#8217;s all for now <span style="font-family:Wingdings;">J</span>
	</p>
<p>In the next posts, I will talk about the rest functionalities of Quantity System. So be tuned <span style="font-family:Wingdings;">J</span>
	</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=55&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2011/09/16/quantity-system-types-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys1.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys2.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys3.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys4.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys5.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys6.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys7.png" medium="image" />

		<media:content url="http://quantitysystem.files.wordpress.com/2011/09/091611_1603_quantitysys8.png" medium="image" />
	</item>
		<item>
		<title>The 1.1.9.964 New Release</title>
		<link>http://quantitysystem.wordpress.com/2010/07/02/the-1-1-9-964-new-release/</link>
		<comments>http://quantitysystem.wordpress.com/2010/07/02/the-1-1-9-964-new-release/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 15:31:50 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=43</guid>
		<description><![CDATA[you may wondering why is this long long version number actually I don&#8217;t want to reach 1.2 soon, thats why I slow down in my releases counting especially that I am still in ALPHA release the new release is featuring  the new symbolic quantity concept which makes you do calculations with symbolics like mathematica and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=43&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>you may wondering why is this long long version number</p>
<p>actually I don&#8217;t want to reach 1.2 soon, thats why I slow down in my releases counting</p>
<p>especially that I am still in ALPHA release</p>
<p>the new release is featuring  the new symbolic quantity concept which makes you do calculations with symbolics like mathematica and maxima BUT with my point of view of units</p>
<p>to declare a symbolic quantity you precede it with dollar sign &#8216;$&#8217; and any number of charachters</p>
<p><span style="color:#000080;">$x+$y</span>   is a valid expression for x plus y</p>
<p>lets have some fun</p>
<p>make a rank two matrix</p>
<p><span style="color:#000080;">h = [$x&lt;in&gt; $y&lt;ft&gt;; 4&lt;fm&gt; 3&lt;mm&gt;]</span></p>
<p>ofcourse &lt;fm&gt; is Femto Meter  <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>get the determinant</p>
<p><span style="color:#000080;">Qs&gt; |h| </span></p>
<p><span style="color:#000080;">Area: 3*x-4.8E-11*y &lt;in.mm&gt;</span></p>
<p>What about 3 ranked matrix</p>
<p><span style="color:#000080;">Qs&gt; m = [$x&lt;in&gt; $y&lt;ft&gt; $z&lt;pm&gt;; 4&lt;fm&gt; 3&lt;mm&gt; 2&lt;yd&gt;; $u&lt;m&gt; $v&lt;ft&gt; $w&lt;rod&gt;]</span></p>
<p><span style="color:#000080;">Qs&gt; |m| </span></p>
<p><span style="color:#000080;">Volume: 3*x*w-110.836363636364*x*v+4363.63636363636*y*u-4.8E-11*y*w+9.54426151276544E-24*z*v-2.34848954546393E-11*z*u &lt;in.mm.rod&gt;</span></p>
<p>This release also feature a tensor support</p>
<p>the tensor syntax will use &#8216;&lt;|&#8217;  &#8216;|&gt;&#8217;  which I don&#8217;t have a names for them now</p>
<p>as I understand (because I am not sure) I was reading the global relativity theory of Einstien (and I repeat I am not sure if  I got it right)  that Tensor is the ability to transfer your point of view from local co-ordinates into another reference co-ordinates</p>
<p>so that when you look into a matrix for example you see it as a square or rectangle</p>
<p>and to go into z-direction you have to use a tensor view like a cube (this is the 3rd order tensor)</p>
<p>however to go into more reference like 4th order tensor you need some sort of recursive representation for this problem</p>
<p>I found that I can use some sort of recursive magic in syntax</p>
<p>for tensor of matrix resemblance you can use the same matrix syntax</p>
<p><span style="color:#000080;">T2 = &lt;| 3 4; 8 9 |&gt;  </span></p>
<p>go into 3rd order tensor</p>
<p><span style="color:#000080;">T3 = &lt;| 3 4; 8 9 | 8 7; 3 2|&gt;</span></p>
<p>go into 4th order</p>
<p><span style="color:#000080;">T4 = &lt;| &lt;| 3 4; 8 9 | 8 7; 3 2|&gt; | &lt;| 3 4; 8 9 | 8 7; 3 2|&gt; |&gt;</span></p>
<p>or</p>
<p><span style="color:#000080;">T4 = &lt;| T3 | T3 |&gt;</span></p>
<p>and yes in storing this in memory I use a lot of inner objects (remember that I didn&#8217;t think about performance yet )</p>
<p>etc the 5th and 6th orders to the degree you want</p>
<p>BUT <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>all sources I read is only dealing with tensor of 2nd order</p>
<p><span style="color:#ff0000;">Needless to say how I get frustrated to understand what the heck is the tensor it really is (but it exists).</span></p>
<p><span style="color:#ff0000;">covariant, and contra variant vectors and tensors (some help needed here)</span><br />
Another confusing thing (made my head spin)</p>
<p>If you make a vector, don&#8217;t safely consider it a first order tensor, also tensor of first order is NOT a vector</p>
<p>(I don&#8217;t know the validity of previous statement)</p>
<p>how is this differ in quantity system</p>
<p>make two vectors</p>
<p><span style="color:#000080;">v1 = {3 4 6}</span></p>
<p><span style="color:#000080;">v2 = {9 8 3}</span></p>
<p>multipy them tensorial &#8216;(*)</p>
<p><span style="color:#000080;">Qs&gt; v1 (*) v2<br />
    QsMatrix:<br />
       27 &lt;1&gt;        24 &lt;1&gt;         9 &lt;1&gt;<br />
       36 &lt;1&gt;        32 &lt;1&gt;        12 &lt;1&gt;<br />
       54 &lt;1&gt;        48 &lt;1&gt;        18 &lt;1&gt;</span></p>
<p>Great isn&#8217;t it</p>
<p>However what about tensor from the first order</p>
<p><span style="color:#000080;">Qs&gt; tv1 = &lt;|3 4 6|&gt;<br />
    QsTensor: 1st Order<br />
        3 &lt;1&gt;         4 &lt;1&gt;         6 &lt;1&gt;</span><br />
<span style="color:#000080;">Qs&gt; tv2 = &lt;|9 8 3|&gt;<br />
    QsTensor: 1st Order<br />
        9 &lt;1&gt;         8 &lt;1&gt;         3 &lt;1&gt;</span><br />
<span style="color:#000080;">Qs&gt; tv1*tv2<br />
    QsTensor: 2nd Order<br />
       27 &lt;1&gt;        24 &lt;1&gt;         9 &lt;1&gt;<br />
       36 &lt;1&gt;        32 &lt;1&gt;        12 &lt;1&gt;<br />
       54 &lt;1&gt;        48 &lt;1&gt;        18 &lt;1&gt;</span></p>
<p>The difference is that ordinary tensor multiplication is different than the tensorial product of mathematical types other then the tensor.</p>
<p>The first one you have to use &#8216;(*)&#8217; explicitly and the result was matrix</p>
<p>The second one you only used &#8216;*&#8217; for multiplication and the result was a tensor from the 2nd order (and it called dyadic product)</p>
<p>another headache product called (kronecker product) for matrices</p>
<p>Try this</p>
<p><span style="color:#000080;">Qs&gt; fm = [1 2; 3 4]<br />
    QsMatrix:<br />
        1 &lt;1&gt;         2 &lt;1&gt;<br />
        3 &lt;1&gt;         4 &lt;1&gt;</span></p>
<p><span style="color:#000080;">Qs&gt; sm = [0 5; 6 7]<br />
    QsMatrix:<br />
        0 &lt;1&gt;         5 &lt;1&gt;<br />
        6 &lt;1&gt;         7 &lt;1&gt;</span></p>
<p><span style="color:#000080;">Qs&gt; fm (*) sm<br />
    QsMatrix:<br />
        0 &lt;1&gt;         5 &lt;1&gt;         0 &lt;1&gt;        10 &lt;1&gt;<br />
        6 &lt;1&gt;         7 &lt;1&gt;        12 &lt;1&gt;        14 &lt;1&gt;<br />
        0 &lt;1&gt;        15 &lt;1&gt;         0 &lt;1&gt;        20 &lt;1&gt;<br />
       18 &lt;1&gt;        21 &lt;1&gt;        24 &lt;1&gt;        28 &lt;1&gt;</span></p>
<p>the result haven&#8217;t changed</p>
<p>Note: you may try two regular multiplication between 2nd order tensors but you will get an exception (because I didn&#8217;t implement it yet unless I understand)</p>
<p>About understanding all of these I didn&#8217;t imagine that I will go into all of this details (so I really walk into it as it appears to me)</p>
<p>I realized that (vectors, marices, and tensors) are another types of quantities</p>
<p>thats why their becomes a must if I would say.</p>
<p>what else ??</p>
<p>yep I tried to speed up things so I tweaked my parser and made a lot of improvements (but as an inner feeling something is not right, the speed is not satisfactory)</p>
<p>that was a long post as usual <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>good to write again <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   and see you safe and sound later <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=43&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2010/07/02/the-1-1-9-964-new-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>Symbolic Algebra Project</title>
		<link>http://quantitysystem.wordpress.com/2010/04/15/symbolic-algebra-project/</link>
		<comments>http://quantitysystem.wordpress.com/2010/04/15/symbolic-algebra-project/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 18:43:47 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=39</guid>
		<description><![CDATA[I have started Symbolic Algebra Project in CodePlex http://symbolicalgebra.codeplex.com/ WHY ?? Because I am a Silly Guy WHO really like to reinvent the WHEEL I think this project will be the same concept of GiNaC however being .NET natively should make my hear rest in peace this way I am going to add derivatives also [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=39&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have started Symbolic Algebra Project in CodePlex</p>
<p><a href="http://symbolicalgebra.codeplex.com/">http://symbolicalgebra.codeplex.com/</a></p>
<p>WHY ??</p>
<p>Because I am a Silly Guy WHO really like to reinvent the WHEEL <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I think this project will be the same concept of <a href="http://www.ginac.de">GiNaC</a></p>
<p>however being .NET natively should make my hear rest in peace this way</p>
<p>I am going to add derivatives also so wait for it to be released</p>
<p>(MAY be AfTeR long Time <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=39&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2010/04/15/symbolic-algebra-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>Work and Torque (Solution)</title>
		<link>http://quantitysystem.wordpress.com/2010/04/15/work-and-torque-solution/</link>
		<comments>http://quantitysystem.wordpress.com/2010/04/15/work-and-torque-solution/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 18:33:34 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=36</guid>
		<description><![CDATA[I am really sorry I didn&#8217;t notice that I haven&#8217;t posted how did I solve the dilemma of Torque and Work Problem however the solution was there in my discussion of quantity System http://quantitysystem.codeplex.com/Thread/View.aspx?ThreadId=23672 and also on this post of my personal blog  http://blog.lostparticles.net/?p=28 Problem Core: Length Simply I defined TWO Length Types Normal Length (NL) This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=36&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am really sorry</p>
<p>I didn&#8217;t notice that I haven&#8217;t posted how did I solve the dilemma of Torque and Work Problem</p>
<p>however the solution was there in my discussion of quantity System <a href="http://quantitysystem.codeplex.com/Thread/View.aspx?ThreadId=23672">http://quantitysystem.codeplex.com/Thread/View.aspx?ThreadId=23672</a></p>
<p>and also on this post of my personal blog  <a href="http://blog.lostparticles.net/?p=28">http://blog.lostparticles.net/?p=28</a></p>
<h1>Problem Core: Length</h1>
<p>Simply I defined TWO Length Types</p>
<h2>Normal Length (NL)</h2>
<p>This is the normal length that we refer to it in our daily life</p>
<h2>Radial Length (RL)</h2>
<p>This is the radius length that have an origin point in center of circle</p>
<h2>Quantities</h2>
<p>Work:       Force * Normal Length</p>
<p>Torque:   Force * Radial Length</p>
<p>Angle:      Normal Length / Radial Length</p>
<p>In quantity system I made the L dimension as NL+RL</p>
<p>CAN YOU SEE ANGLE</p>
<p>I made it explicitly a quantity that is NOT dimensionless</p>
<p>and THIS SOLVED ALL my problems of this Problem</p>
<p>I won&#8217;t argue much let us test <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Torque * Angle = Work</p>
<p>F*RL * (NL/RL) =  F * NL    &lt;== see what I mean</p>
<p>Torque * Angular Speed = Power</p>
<p>F*RL * (NL/RL*T) = F*NL/T   &lt;== where T is the time.</p>
<p>so you may wonder about Angle and Solid Angle</p>
<p>in SI they are all dimensionless  but in Quantity System YOU CAN&#8217;T consider them like this</p>
<p>(By the way I&#8217;ve break the checking for these two quantities to be summable with dimensionless numbers &#8211; just to keep the fundamentals as it is although I am not convinced and I may remove it in future but damn it I need support from any physics guy)</p>
<p>ANGLE :  NL/RL</p>
<p>Solid Angle:  NL^2/RL^2   because its area over area</p>
<p>Frequency =  1/T</p>
<p>Angular Velocity = (NL/RL)/T</p>
<p>do you remember the conversion between RPM to frequency</p>
<p>RPM (Revolution Per Minute) is a Angle / Time</p>
<p>lets test the law</p>
<p>Omega  = 2*pi*frequency</p>
<p>pi: radian value which is  NL/RL</p>
<p>Omega = (NL/RL) * 1/T = (NL/RL)/T   which  angular velocity</p>
<h1>Discoveries</h1>
<h2>PI value</h2>
<p><a href="http://en.wikipedia.org/wiki/Pi">PI</a> is ratio of any <a title="Circle" href="http://en.wikipedia.org/wiki/Circle">circle</a>&#8216;s circumference to its diameter    WHICH MEANS  (NL/RL)</p>
<p>this is the same value as the ratio of a circle&#8217;s area to the square of its radius     WHICH MEANS  (NL^2/RL^2)</p>
<p>which corresponds to radian unit and stradian unit for angle and solid angle quantities.</p>
<h2>Reynolds Number</h2>
<p>I am not holding back ( <a href="http://en.wikipedia.org/wiki/Reynolds_number">Reynolds number</a> is a dimensionless number that measure inertial forces to viscous forces)</p>
<p>WHY we always differentiating between Flow in Pipes and Flow on Flat plate</p>
<p>let&#8217;s see with normal length in quantity system</p>
<div id="_mcePaste">Qs&gt; rho = 3[Density]</div>
<div id="_mcePaste">Density: 3 &lt;kg/m^3&gt;</div>
<div id="_mcePaste">Qs&gt; v=0.5&lt;m/s&gt;</div>
<div id="_mcePaste">Speed: 0.5 &lt;m/s&gt;</div>
<div id="_mcePaste">Qs&gt; l=4&lt;m&gt;</div>
<div id="_mcePaste">Length: 4 m</div>
<div id="_mcePaste">Qs&gt; mue = 2&lt;Pa.s&gt;</div>
<div id="_mcePaste">Viscosity: 2 &lt;Pa.s&gt;</div>
<div id="_mcePaste">Qs&gt; rho*v*l/mue</div>
<div id="_mcePaste">DimensionlessQuantity: 3 &lt;kg/m.s^2.Pa&gt;</div>
<p>it shows it is a dimensionless quantity</p>
<p>ok let us force my theory about flow in pipes</p>
<p>the pipe have a diameter  and Reynolds number is calculated by rho*v*DIAMETER/viscosity</p>
<p>so let me add d as a diameter and solve again</p>
<p>Qs&gt; <span style="color:#ff00ff;">d=0.5&lt;m!&gt;</span></p>
<p><span style="color:#ff00ff;">RadiusLength: 0.5 m</span></p>
<p>Qs&gt; rho*v*d/mue</p>
<p><span style="color:#ff0000;">DerivedQuantity</span>: 0.375 &lt;kg/m.s^2.Pa&gt;</p>
<p>NOTE: Adding &#8216;!&#8217; after the length unit will mark the quantity as Radial Length quantity.</p>
<p>ERROR  it shouldn&#8217;t be DerivedQuantity at all it should be Dimensionlesss</p>
<p>so there is another term that should be fixed. Do you know which term ???</p>
<p>lets try the velocity  with <span style="color:#ff00ff;">vr=0.5&lt;m!/s&gt;</span></p>
<p>Qs&gt; vr=0.5&lt;m!/s&gt;</p>
<p>DerivedQuantity: 0.5 &lt;m/s&gt;</p>
<p>Qs&gt; rho*vr*d/mue</p>
<p><span style="color:#ff0000;">DerivedQuantity</span>: 0.375 &lt;kg/m.s^2.Pa&gt;</p>
<p>ALSO ERROR</p>
<p>ok let us try the density</p>
<p>Qs&gt; <span style="color:#ff00ff;">rhor = 3&lt;kg/m!^3&gt;</span></p>
<p>DerivedQuantity: 3 &lt;kg/m^3&gt;</p>
<p>Qs&gt; rhor*v*d/mue</p>
<p><span style="color:#000080;">SolidAngle</span>: 0.375 &lt;kg/m.s^2.Pa&gt;</p>
<p>CAN YOU SEE THE SOLID ANGLE Quantity</p>
<p>do you remember the above argue about Solid Angle is dimensionless number</p>
<p>can I pretend now that reynolds number for pipes is CORRECT ???</p>
<p>the new density which is kg/m!^3</p>
<p>This is driving me nuts</p>
<h2>Pump Affinity Laws</h2>
<p>Also  pump equations led to the same <span style="color:#000080;">SolidAngle </span>Quantity not <span style="color:#ff0000;">DimensionLess </span>one</p>
<p><span style="font-family:Georgia, 'Times New Roman', Times, serif;line-height:20px;"></p>
<h1 style="margin:0;padding:0;">Epilogue</h1>
<p>I&#8217;ve said what I&#8217;ve discovered till now about this problem I hope that may be someday someone explain to me or convince me that Angle is really a Dimensionless number   after all of this and that my assumption about Torque and Work is Wrong.</p>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=36&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2010/04/15/work-and-torque-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>Catching Up</title>
		<link>http://quantitysystem.wordpress.com/2010/04/15/catchingup/</link>
		<comments>http://quantitysystem.wordpress.com/2010/04/15/catchingup/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 17:36:37 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=33</guid>
		<description><![CDATA[Prologue I want to catch up with what I&#8217;ve implemented so far. This is not what&#8217;s new, but rather a glimpse on what I&#8217;ve done and still remembering it I really need to organize my thoughts about what is happening in this project the scattering thoughts are frightening me :S Tensor Parsing: I want to add Tensor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=33&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Prologue</h1>
<p>I want to catch up with what I&#8217;ve implemented so far.</p>
<p>This is not what&#8217;s new, but rather a glimpse on what I&#8217;ve done and still remembering it</p>
<p>I really need to organize my thoughts about what is happening in this project</p>
<p>the scattering thoughts are frightening me :S</p>
<h1>Tensor Parsing:</h1>
<p>I want to add Tensor badly in Qs because I wasn&#8217;t able to understand it I had to include it</p>
<p>however I&#8217;ve Added Tensor parsing</p>
<p>Qs&gt; &lt;|4 3;3 2| 4 5; 5 3 |&gt;</p>
<p>Yes this is a 3rd rank tensor  or you may see it as a two matrices in the Z-Axis</p>
<p>what about 4th Tensor (You may ask) ??!!   Bear with me I am still thinking of a natural syntax to add it.</p>
<p>also I would like to remind my self that Stress tensor is a 2nd rank tensor (which looks like matrix but with special operations)</p>
<p>using &lt;|&#8230;|&gt;  syntax you can define also zero rank tensor up to 3rd rank tensor (what will I do with this?? I don&#8217;t KNOW)</p>
<h1>Text</h1>
<p>yes I included the text at last (I was struggling against putting text in Qs, but it was necessary :S or let me say I couldn&#8217;t come up with another strategy.</p>
<p>Qs&gt; ml = &#8220;c d e f g a b c&gt;&#8221;;</p>
<p>Qs&gt; Music:Play(ml + &#8221; &#8221; ml);     #Music:Play is an extension function that play midi and the music library is 100% implemented by me (I mean sequencer part and music DSL as it contains eastern tones also &#8211; another story indeed)</p>
<p>and yes you can add text to text, also imagine you can add text to number</p>
<p>Qs&gt; 4 + &#8220;44&#8243;</p>
<p>DimensionlessQuantity: 48 &lt;1&gt;</p>
<p>but the opposite is will not act like this (because I am casting to the left type always &#8211; which is the first one in fact)</p>
<p>What is meant by adding text is to differentiate between sending text to functions and sending other types.</p>
<p>so Windows:MessageBox  function now accept Text</p>
<p>Windows:MessageBox(&#8220;Hello There&#8221;)  will result into messagebox ofcourse (just try it)</p>
<p>to escape quotation mark  use back slash &#8220;\&#8221;hello\&#8221;"</p>
<h1>Functions</h1>
<p>I like it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (do you ?!? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> :))</p>
<h2>Function Extensions</h2>
<p>With C# or any .Net language frankly {put static class with static functions under Qs.Modules namespace}</p>
<p>the class name becomes namespace in Qs.</p>
<p>- I&#8217;ve enhanced the function binding so you can write your C# native function with native numerical type and I will cast it to you without you notice it ( no more QsValue as a parameter type), however this will add other processing lag (but who cares <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  everything is cached after this)</p>
<p>also I can map vector to array of numbers so use ff(int[] ia)  declaration <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  it will work</p>
<p>Why I was enhancing the extension functions {simply because I am planning to include OpenGL } asking me why :O :O :O ??</p>
<p>silly, every numerical system has a 3d device to render to it.</p>
<p>but frankly I am thinking of visualizing Scalars, vectors, and tensors into 3d conceptual drawings</p>
<p>however OpenGL  is  a very far idea</p>
<p>emmm</p>
<p>don&#8217;t forget the Graph:Plot(xvector, y1vector)  it really draws and I consumed a free opensource library to do it.</p>
<p>may be a freakin plot but hey it works and I can visualize some quick samples indeed.</p>
<h2>Function Named Arguments</h2>
<p>Quantity System Engine can consume different declaration to the function with the same name</p>
<p>however you must change the parameter names</p>
<p>that&#8217;s why you can call the function with named arguments (shhsh  argument==parameter so I use it interchangeably)</p>
<p>all the following are correct declarations</p>
<p>f(x) = x</p>
<p>f(y) = y^1.5</p>
<p>f(z) = z^2</p>
<p>f(er) = er/4</p>
<p>f(g) = g+9/g^2</p>
<p><strong>Note</strong>:  the first function name declared is the (default function) the one you call it without specify named arguments</p>
<p>to call any of these functions use the &#8216;=&#8217; equal sign</p>
<p>f(g=5)+f(er=3)</p>
<h2>Function Variables</h2>
<p>Now you can treat the functions as normal variables because they are inherited from QsValue (internal structure of Qs)</p>
<p>so that when declaring</p>
<p>u(x) = x^2</p>
<p>v(x) = x/2</p>
<p>w(x) = x*9</p>
<p>r = @u+@v+@w      #  &lt;==   this sum all functions and generate new function in r</p>
<p>r(x) = x^2+x/2+x*9</p>
<p>and don&#8217;t worry about parameters, as they are merged for you with any number of them</p>
<p>all basic operations supported (simply I merge the function declaration text with the desired operator <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>HOWEVER this is going to change after I put the symbolic algebra library <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (another library I am making) <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>What about named argument functions??!! (clever question)</p>
<p>imagine you have a x-component speed in u function</p>
<p>u(x) = x</p>
<p>u(y) = y/2</p>
<p>u(z) = z^2.1</p>
<p>you can write</p>
<p>u = @u(x) + @u(y) +@u(z)</p>
<p>and yes</p>
<p>Qs&gt; u(3,4,5)   #IT WILL Work</p>
<p>because you may not remember but I encode the functions in the memory based on their arguments number also</p>
<p>so u(x,y,z) now is the default function of u in 3 arguments <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   (impressive for me I admit)</p>
<h1>Sequence</h1>
<p>my beloved feature.</p>
<p>sequence now can return a function series</p>
<p>for example</p>
<p>e[n](x) ..&gt; x^n/n!</p>
<p>e[1](1)  gives 1</p>
<p>however calling the sequence without specify argument (IN argument enables sequence)</p>
<p>e[1]  gives _(x) = x^1/1!</p>
<p>and you can assign it to a function also</p>
<p>let me make it fast</p>
<p>exp = e[0++20]</p>
<p>gives</p>
<p>_(x) = (x^0/0!) + (x^1/1!) + (x^2/2!) + (x^3/3!) + (x^4/4!) + (x^5/5!) + (x^6/6!) + (x^7/7!) + (x^8/8!) + (x^9/9!) + (x^10/10!) + (x^11/11!) + (x^12/12!) + (x^13/13!) + (x^14/14!) + (x^15/15!) + (x^16/16!) + (x^17/17!) + (x^18/18!) + (x^19/19!) + (x^20/20!)</p>
<p>which when you can call your exp normally</p>
<p>exp(1)</p>
<h1>Shifting Operators</h1>
<p>I&#8217;ve added &#8216;<strong>&gt;&gt;</strong>&#8216; right shift as C family  and &#8216;<strong>&lt;&lt;</strong>&#8216; left shift</p>
<p>simply the operators is shifting vectors and matrices</p>
<p>not implemented yet for tensors</p>
<p>and also you will find these operators starting of Qs 1.1.9.94 release  Changeset <a id="ChangeSetLink0" title="Browse change set 39690" href="http://quantitysystem.codeplex.com/SourceControl/changeset/view/39690">39690</a></p>
<p>I hope I listed things that I remembered for now</p>
<p>and chaao <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=33&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2010/04/15/catchingup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8216;When-Otherwise&#8217; Condition Expression</title>
		<link>http://quantitysystem.wordpress.com/2010/02/09/when-otherwise-condition-expression/</link>
		<comments>http://quantitysystem.wordpress.com/2010/02/09/when-otherwise-condition-expression/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 16:02:07 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=31</guid>
		<description><![CDATA[In Quantity System Calculator (DLR)  I&#8217;ve implemented a new way of conditional expression that can be written continuously and fits into one line. I called it  &#8217;when-otherwise&#8217; expression &#8216;[true result] when [test] otherwise [false result] when &#8230;&#8217; let us define a simple function with it f(x)  = x when x&#60; 10 otherwise x^2 when x&#60;20 otherwise x^5 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=31&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Quantity System Calculator (DLR)  I&#8217;ve implemented a new way of conditional expression that can be written continuously and fits into one line.</p>
<p>I called it  &#8217;when-otherwise&#8217; expression</p>
<p>&#8216;[true result] when [test] otherwise [false result] when &#8230;&#8217;</p>
<p>let us define a simple function with it</p>
<p>f(x)  = x when x&lt; 10 otherwise x^2 when x&lt;20 otherwise x^5</p>
<p>I know that I am going against the famous &#8216;if-then&#8217; statement, however &#8216;if-then&#8217; statement is an imperative syntax, and I needed a functional statement that fits in one line.</p>
<p>when I was thinking about this new syntax I also didn&#8217;t ignore the question syntax of C,C++, C#</p>
<p>&#8216;Test?True Part, False Part&#8217; , but also this syntax is somehow complex to use, and give me a headache actually.</p>
<p>thats why I invented it this way. You can see that the result part precede the condition part and the syntax is truly easy to remember (hard to type) but easy to extend.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=31&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2010/02/09/when-otherwise-condition-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>About Scalar and Vector</title>
		<link>http://quantitysystem.wordpress.com/2009/12/05/about-scalar-and-vector/</link>
		<comments>http://quantitysystem.wordpress.com/2009/12/05/about-scalar-and-vector/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 02:07:48 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=18</guid>
		<description><![CDATA[Few Words In my design of this calculator (although I am afraid it is evolving into language) I made a decesion about making its types like the mathmatical numbering types 1- Scalar 2- Vector 3- Matrix 4- Tensor   (LATER LATER I HOPE) The Scalar in Qs is  a normal  number with a unit. (remember [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=18&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Few Words</h2>
<p>In my design of this calculator (although I am afraid it is evolving into language)</p>
<p>I made a decesion about making its types like the mathmatical numbering types</p>
<p>1- Scalar</p>
<p>2- Vector</p>
<p>3- Matrix</p>
<p>4- Tensor   (LATER LATER I HOPE)</p>
<p>The Scalar in Qs is  a normal  number with a unit.</p>
<p>(remember the idea of this calculator is that all numbers are quantities)</p>
<p>so Scalar in my programming model for now is  holding a quantity   which is number+unit</p>
<p>and ofcourse Vector is an array of Scalars</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  the great thing I&#8217;ve discovered is that there are two Vector types</p>
<h2>Vector Types</h2>
<p>a) <a href="http://en.wikipedia.org/wiki/Euclidean_vector" target="_blank">Euclidean Vector</a> : This is only a three component vector</p>
<p>This Vector is always expressing the point in the space</p>
<p>It has the famous Cross Product Multiplication   (implemented in Qs as &#8216;x&#8217; letter)</p>
<p>b) Normal Vector : This is an array holding a lot</p>
<p>This Vector is any number of components and can have Dot Product and</p>
<p>I am dealing with this types as a whole entity, I am not taking the approach of element by element calculation</p>
<p>because I am not convinced again about this approach :S</p>
<h2>Multiplication Operators</h2>
<p>So after great thinking and a lot of fancy shadows in my tiny room I made a three multiplication operators</p>
<p>1- Ordinary multiplication  &#8217;*&#8217;</p>
<p>2- Dot Product                          &#8217;.&#8217;</p>
<p>3- Cross Product                      &#8217;x&#8217;    &lt;== YES it is the X letter <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   [Who cares??!] my language after all <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h3>Power Operators</h3>
<p>and to make it worse I made a distinction between the three Power operators which are attached by meaning by their associated Multiplication operators</p>
<p>1- Ordinary Power              &#8217;^&#8217;</p>
<p>2- Dot Power                        &#8217;^.&#8217;               Which is different completely from the matlab &#8216;.^&#8217; element power operator</p>
<p>3- Cross Power                   &#8216;^x&#8217;</p>
<h2>Matrix Exponential</h2>
<p>So you Remember about the sequence implementation</p>
<p>with sequence implementation I can make functions like sin, cos, and my famous Exponential sequence</p>
<p>Qs&gt; e[n](x) ..&gt; x^n/n!</p>
<p>then wrapping the sequence into a function call</p>
<p>Qs&gt; e(x) = e[0++50](x)</p>
<p>This functions is working great in scalars</p>
<p>have you tried it with matrix ??</p>
<p>I tried it and succeed <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  look into this wikipedia page<a href="http://en.wikipedia.org/wiki/Matrix_exponential" target="_blank"> Matrix Exponential</a> (by the way you should donate to wikipedia)</p>
<p><img src='http://s0.wp.com/latex.php?latex=e%5EX+%3D+%5Csum_%7Bk%3D0%7D%5E%5Cinfty%7B1+%5Cover+k%21%7DX%5Ek.&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='e^X = &#92;sum_{k=0}^&#92;infty{1 &#92;over k!}X^k.' title='e^X = &#92;sum_{k=0}^&#92;infty{1 &#92;over k!}X^k.' class='latex' /></p>
<p>so if you passed a matrix to the function it will be treated as a whole matrix not element by element like matlab for example.</p>
<p>and this was an advantage from my model.</p>
<h2>Power Dot</h2>
<p>another funny thing is the &#8216;^.&#8217; Power Dot when applying it to the vector.</p>
<p>by the way in any Power operation in Qs I get internally the first term to be Identity</p>
<p>for example in scalar it is 1&lt;1&gt;</p>
<p>Vector: {1&lt;1&gt; 1&lt;1&gt; &#8230; }   with the number of the components</p>
<p>Matrix Identity : Which is  diagonal ones  in a matrix with the same dimensions</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccc%7D3+%26+4+%26+2%5C%5C7+%26+4+%26+3%5C%5C5+%26+3+%26+4%5Cend%7Barray%7D%3D%5Cbegin%7Barray%7D%7Bccc%7D1%5C%5C%26+1%5C%5C%26+%26+1%5Cend%7Barray%7D&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='&#92;begin{array}{ccc}3 &amp; 4 &amp; 2&#92;&#92;7 &amp; 4 &amp; 3&#92;&#92;5 &amp; 3 &amp; 4&#92;end{array}=&#92;begin{array}{ccc}1&#92;&#92;&amp; 1&#92;&#92;&amp; &amp; 1&#92;end{array}' title='&#92;begin{array}{ccc}3 &amp; 4 &amp; 2&#92;&#92;7 &amp; 4 &amp; 3&#92;&#92;5 &amp; 3 &amp; 4&#92;end{array}=&#92;begin{array}{ccc}1&#92;&#92;&amp; 1&#92;&#92;&amp; &amp; 1&#92;end{array}' class='latex' /></p>
<p>so when applying the Power dot to vector</p>
<p>first item  or zero repetion is the identity term, then by the power number I multiply the vector in the identity for repeat one and etc.</p>
<p>the funny thing is that dot product in vector gives a scalar value then scalar is multiplied by vector again to give a vector value then a scalar</p>
<p>so when you make a power dot to  an even exponent the result is vector, and when you make an odd exponent it will be scalar.</p>
<p>pretty strange <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Relation Operators</h2>
<p>Relation operators are &lt;, &gt;, &lt;=, &gt;=, ==, !=</p>
<p>ofcourse it is well known for scalars</p>
<p>but what about Vector and Scalar</p>
<p>I solved this issue by comparing the norm of the vector with the norm of the scalar</p>
<p>review <a href="http://en.wikipedia.org/wiki/Vector_norm" target="_blank">Vector Norm</a> so The comparison is based on Norm which is Absolute in Scalar and Magnitude in Vector.</p>
<h2>Finally</h2>
<p>As you can see implementing the Scalar, Vector , and Matrix as a first citizen entities in Qs is overwhelming</p>
<p>and a lot of challenges appeared.</p>
<p>however I hope that next post to be about my new innovative idea of the Comparison statement itself</p>
<p>see you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://en.wikipedia.org/wiki/Vector_norm" target="_blank"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=18&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2009/12/05/about-scalar-and-vector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>Namespaces</title>
		<link>http://quantitysystem.wordpress.com/2009/11/07/namespaces/</link>
		<comments>http://quantitysystem.wordpress.com/2009/11/07/namespaces/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 23:11:29 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=16</guid>
		<description><![CDATA[ok I mentioned before that I&#8217;ve implemented namespaces in my quantity system Why I&#8217;ve made this ?? because simply I wanted to add the possibility of adding multi functions in a form of external libraries. Namespace Operator or Separator in C++ the name space is two colons :: like the famous std::vector in C# the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=16&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ok I mentioned before that I&#8217;ve implemented namespaces in my quantity system</p>
<p>Why I&#8217;ve made this ??</p>
<p>because simply I wanted to add the possibility of adding multi functions in a form of external libraries.</p>
<h2>Namespace Operator or Separator</h2>
<ol>
<li><span style="background-color:#ffffff;">in C++ the name space is two colons <span style="color:#888888;"> :: </span> like the famous std<span style="color:#888888;">::</span>vector</span></li>
<li><span style="background-color:#ffffff;">in C# the namespace is a dot <span style="color:#888888;"> . </span> like  System<span style="color:#888888;">.</span>Console<span style="color:#888888;">.</span>WriteLine</span></li>
<li><span style="background-color:#ffffff;">in xml the namespace is single colon <span style="color:#888888;"> : </span> </span></li>
</ol>
<p>so I&#8217;ve choose the xml namespace operator because I find it shorter than C++ namespace and more understandable than the dot of C#.</p>
<p>because I&#8217;ve always considered the dot .  to separate between the object and its members</p>
<h2>Built in Functions</h2>
<p>like any respectable language you have some built in library for mathmatical functions</p>
<p>you can find the functions and constants to be used <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve defined Math namespace to hold some (but not all) functions</p>
<p>Math:Sin, and Math:Sinh</p>
<p>Math:Cos, and Math:Cosh</p>
<p>Math:Log, and Math:Log10</p>
<p>and Math:PI  as a constant</p>
<p>&nbsp;</p>
<h2>User Defined Functions</h2>
<p>you can define your user defined function in any namespace you desire</p>
<p>just write the namespace:function  and suddenly you have a new namespace if it wasn&#8217;t there before <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Qs&gt; G:V(x,y) = x(y)   # function that take other function as a parameter</p>
<p>Qs&gt; g:v(Math:Sin, 8 )  # passing built in sin function with 8</p>
<p>&nbsp;</p>
<p>and as you can notice the functions and namespaces are all case insensitive.</p>
<p>&nbsp;</p>
<h2>User Defined Functions (External Modules)</h2>
<p>and yes you can define your functions outside the quantity system</p>
<p>but the feature is not completed yet</p>
<p>however please try</p>
<p>Qs&gt; Music:Play(c d e f g a b c&gt;)</p>
<p>if you hear the music from your speaker then you are a windows guy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>and you can save this as a midi file too <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Qs&gt; Music:SaveMidi(c d e f g a b c&gt;, tt.mid)</p>
<p>please find the result file into the program directory.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=16&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2009/11/07/namespaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>About DLR and other funny things.</title>
		<link>http://quantitysystem.wordpress.com/2009/11/07/about-dlr-and-other-funny-things/</link>
		<comments>http://quantitysystem.wordpress.com/2009/11/07/about-dlr-and-other-funny-things/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:48:54 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/?p=14</guid>
		<description><![CDATA[DLR (Dynamic Runtime Library) is microsoft latest technology that will prove itself as long as .NET struggle to survive. however this is an old news, you must heard about IronPython, and IronRuby. &#160; My Quantity System Calculator is build over the DLR expressions. This has permitted me to do a numerous things in my calculator. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=14&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>DLR </strong></h2>
<p><strong> </strong>(Dynamic Runtime Library) is microsoft latest technology that will prove itself as long as .NET struggle to survive.</p>
<p>however this is an old news, you must heard about IronPython, and IronRuby.</p>
<p>&nbsp;</p>
<p>My Quantity System Calculator is build over the DLR expressions. This has permitted me to do a numerous things in my calculator.</p>
<p>I added functions, new sequence concept, and lately implemented NameSpaces.</p>
<p>the latest DLR version is 0.92 and you can get it from <a href="http://dlr.codeplex.com" target="_blank">http://dlr.codeplex.com</a></p>
<p>&nbsp;</p>
<h2><strong>Funny Things</strong></h2>
<p>if you download the last Quantity system sources from the source panel in code plex</p>
<p>and run this code</p>
<p>&nbsp;</p>
<p><span style="background-color:#ffffff;">Qs&gt; </span>Sin[n](x) ..&gt; ((-1)^n*x^(2*n+1))/(2*n+1)!<span style="white-space:pre;"> </span>#Sin sequence</p>
<p><span style="background-color:#ffffff;">Qs&gt; S</span>in(x) = Sin[0++50](x)<span style="white-space:pre;"> </span>#Sin function</p>
<p>&nbsp;</p>
<div id="_mcePaste">Qs&gt; Math:Sin(8)</div>
<div id="_mcePaste">DimensionlessQuantity: 0.989358246623<span style="color:#888888;">382</span> &lt;1&gt;</div>
<div id="_mcePaste">Qs&gt; Sin(8)</div>
<div id="_mcePaste">DimensionlessQuantity: 0.989358246623<span style="color:#888888;">403</span> &lt;1&gt;</div>
<div></div>
<div>can you notice the difference between the last 3 digits from right</div>
<p>the first function from the Math:Sin(8) is a direct calling for the .NET Math.Sin  function</p>
<p>and the second Sin(8) is a call for my sequence-series implementation.</p>
<p>well I have double checked by the windows calculator and the result was the same as the .NET library.</p>
<p>Windows Calculator Sin(8) in radian mode: 0.989358246623<span style="color:#888888;">381</span>77780812359824529</p>
<p>So which one is the right approximation <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>let&#8217;s try to call the SIN series with less items</p>
<p>&nbsp;</p>
<p>Qs&gt; Sin[0++20](8)</p>
<p>DimensionlessQuantity: 0.989358246623<span style="color:#888888;">414</span> &lt;1&gt;</p>
<p>ok also have an error</p>
<p>let&#8217;s try it for many more items.</p>
<p>&nbsp;</p>
<p>Qs&gt; Sin[0++160](8)</p>
<p>DimensionlessQuantity: 0.989358246623<span style="color:#888888;">403</span> &lt;1&gt;</p>
<p>we are back to the same result <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>damn it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  what should i trust more??  my sequence-series implementation or the .NET Sin implementation, and what if this was obtained from the FPU ???</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I really don&#8217;t know.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=14&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2009/11/07/about-dlr-and-other-funny-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
		<item>
		<title>Quantities! are they all dimensional uniques??</title>
		<link>http://quantitysystem.wordpress.com/2009/07/23/quantities-are-they-all-dimensional-uniques/</link>
		<comments>http://quantitysystem.wordpress.com/2009/07/23/quantities-are-they-all-dimensional-uniques/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 12:45:00 +0000</pubDate>
		<dc:creator>ibluesun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quantitysystem.wordpress.com/2009/07/23/quantities-are-they-all-dimensional-uniques</guid>
		<description><![CDATA[Small TalkIs it really important to have a unit associated to value.I really don&#8217;t know the answer I assumed it is important to know the dimension of the quantity.* To be able to sum, and subtract different units but same dimension quantities.* To be able to predict that the outcome of the division and multiplication [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=6&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight:bold;">Small Talk</span><br />Is it really important to have a unit associated to value.<br />I really don&#8217;t know the answer</p>
<p>I assumed it is important to know the dimension of the quantity.<br />* To be able to sum, and subtract different units but same dimension quantities.<br />* To be able to predict that the outcome of the division and multiplication process of quantities.<br />* To deduce how can I reach specific quantity from another quantity.</p>
<p><span style="font-weight:bold;"><span style="font-size:130%;">Article Begins</span></span><br />So let us focus on the important objective of the library and its calculator.<br />The main objective was to replace the Dimensionless Variable Concept into Quantity Concept</p>
<p>Reviewing the SI model there are 7 basic base units that form all of our Quantities experience in Life</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  do I really have to list them ??   I think I should <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
<p>1- kg  (kilogram)         [Mass]<br />2- m  (metre)               [Length]<br />3- s   (second)              [Time]<br />4- A  (Ampere)            [Electric Current]<br />5- K  (Kelvin)               [Temperature]<br />6- mol  (mole)              [Amount of Substance]<br />7- cd     (candela)         [Luminous Intensity]</p>
<p>these are 7 base quantities with 7 base units<br />(I feel they made it 7 so we can tie our self to the 7 number like 7 days and more legendary 7s)</p>
<p>if you encounter a fluid course in your study you will encounter the dimensional analysis course that teach you MLT system</p>
<p>the lecture will teach you about the dimensionality of the quantity<br />so Length  is equal to M=0 L=1 T=0   or for simple writing M0L1T0</p>
<p>Speed or Velocity: M0L1T-1 <br />Acceleration         : M0L1T-2</p>
<p>Based on the dimensional Analysis course any  quantity in universe have a unique dimensions</p>
<p>and we have special quantities that have M0L0T0 which means Dimensionless quantity</p>
<p>Types of Dimensionless quantities are many<br />- <a href="http://en.wikipedia.org/wiki/Mach_number">Mach number</a>.<br />- <a href="http://en.wikipedia.org/wiki/Reynolds_number">Reynolds number</a>.<br />- <a href="http://en.wikipedia.org/wiki/Affinity_laws">Affinity Laws</a>.</p>
<p>also based on professors philosophy Dimensionless numbers are a high class numbers because they always give a lot of information.</p>
<p>for example if I say I am traveling to Alexandria from Cairo<br />and you asked me about the distance I covered from the beginning of the trip!!<br />If I told you I passed 100 km from the distance you will wonder and may feel that information is not enough.<br />But if I told you that I passed half of the distance to Alexandria<br />you can deduce many things.<br />because you know roughly when I begin traveling.<br />you know the maximum speed between towns.<br />you can deduce when I should get there and in what hour.</p>
<p>practically you can sense and understand whats going on and what will happen.<br />or simply REALIZE</p>
<p>so dimensionless numbers are important for our life <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="font-weight:bold;"><span style="font-size:130%;">Different Quantities and The same dimensions</span></span></p>
<p>BACK to quantities again</p>
<p>Force quantity are taken from the classical newton equations and it is Mass multiplied by Acceleration</p>
<p>F = kg * m/s^2</p>
<p>this is awesome so Force as a derived quantity = M1L1T-2</p>
<p>(NOTE: in dimensional analysis there is another approach to define dimensions by FLT system due to the fact that we can&#8217;t get mass without knowing the gravity of the location we are on now <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   however let us stick with MLT)</p>
<p>BUT can we REALLY say in honest words that all quantities have a different unique dimensions ??</p>
<p>{NO}</p>
<p>and let me list them as I can remember for now:</p>
<p><span style="font-weight:bold;color:rgb(255,0,0);">1- (<a href="http://en.wikipedia.org/wiki/Work_%28physics%29">Work</a>) vs (<a href="http://en.wikipedia.org/wiki/Torque">Torque</a>):</span><br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The two concepts are referring to the same units which are Joule, calorie, or BTU</p>
<div style="text-align:center;">Work = Force * Length</div>
<p>The same as Torque
<div style="text-align:center;">Torque = Force * Length</p>
<div style="text-align:left;">yes you can say that they are different quantities but look at them in units they are the same units  N.m <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><span style="font-weight:bold;color:rgb(255,0,0);">2- (Dimensionless) vs (Angle)</span><br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />Angle is measured by Length of circumference to the length of radius.<br />it will be dimensionless</p>
<p><span style="font-weight:bold;color:rgb(255,0,0);">3- (<a href="http://en.wikipedia.org/wiki/Angle">Angle</a>) vs (</span><a href="http://en.wikipedia.org/wiki/Solid_angle">Solid Angle</a><span style="font-weight:bold;color:rgb(255,0,0);">)</span><br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br /> as angle units,<a href="http://en.wikipedia.org/wiki/Steradian"> </a><a href="http://en.wikipedia.org/wiki/Steradian">  steradian </a>for solid angle<br /><a href="http://en.wikipedia.org/wiki/Solid_angle">Solid angle </a>is Area to Area</p>
<p><span style="color:rgb(255,0,0);font-weight:bold;">4-(<a href="http://en.wikipedia.org/wiki/Frequency">Frequency</a>) vs (<a href="http://en.wikipedia.org/wiki/Angular_velocity">Angular Velocity</a>)</span><br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />Frequency is equal to M0L0T-1  or   1/s  i.e. (1/Time) <br />Angular Velocity =                              rad/s </p>
<p>and rad = 1  because it is dimensionless.</p>
<p>so summing frequency with angular velocity should be logically correct (because they resemble the same dimensions)  WHICH is WRONG in literature.</p>
<p>do you remember the equation of Omega = 2 * Pi * f <br />where<br />Omega: <a href="http://en.wikipedia.org/wiki/Angular_frequency">Angular Velocity </a><br />f: Frequency.</p>
<p><span style="font-weight:bold;color:rgb(255,0,0);">5- (</span><a style="font-weight:bold;color:rgb(255,0,0);" href="http://en.wikipedia.org/wiki/Luminous_intensity">Luminous Intensity</a><span style="font-weight:bold;color:rgb(255,0,0);">) vs (</span><a style="font-weight:bold;color:rgb(255,0,0);" href="http://en.wikipedia.org/wiki/Luminous_flux">Luminous Flux</a><span style="font-weight:bold;color:rgb(255,0,0);">)</span><br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />The first quantity is lm/sr  and the second one is (cd.sr)=lm</p>
<p>Units can differentiate between the two quantities</p>
<p>but the  unit is dimensionless and in SI standards you can replace either rad   and sterad  with  which the dimensionless unit.</p>
<p><span style="font-size:130%;"><span style="font-weight:bold;">Conclusion:</span></span>
<ol>
<li>These quantities will prevent any implementation to differentiate between quantities by dimensions and in return will prevent the intelligence of knowing the outcome quantity of an operation</li>
<li>You can&#8217;t take the dimensional analysis approach in differentiating between quantities.</li>
</ol>
</div>
</div>
<p>So in return most of the implementation of dimensionality of variables took the shorter approach of supporting only units side.</p>
<p>but where is the quantity ???</p>
<p>can the unit approach differentiate between Torque as N.m  and Work as N.m</p>
<p>if you implemented the J (Joule)  unit you will have to invent a unit for Torque also, so you can make a distinction between units.</p>
<p>But how about the rest of quantities.</p>
<p>In my next post I&#8217;ll introduce to you the hypothetical solution of this dilemma and how I solved this problem in my <a href="http://quantitysystem.codeplex.com/">Quantity System </a>implementation.</p>
<p>Thank you<br />Ahmed Sadek</p>
<p></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/quantitysystem.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/quantitysystem.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/quantitysystem.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=quantitysystem.wordpress.com&amp;blog=9005609&amp;post=6&amp;subd=quantitysystem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://quantitysystem.wordpress.com/2009/07/23/quantities-are-they-all-dimensional-uniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc44e094e42b3e9a84bd7a29dd8403af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ibluesun</media:title>
		</media:content>
	</item>
	</channel>
</rss>
