<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Solomon Xie on Medium]]></title>
        <description><![CDATA[Stories by Solomon Xie on Medium]]></description>
        <link>https://medium.com/@solomon-md?source=rss-d533b7f5c698------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IB0_0mra7-IzhlZHcGX_UQ.jpeg</url>
            <title>Stories by Solomon Xie on Medium</title>
            <link>https://medium.com/@solomon-md?source=rss-d533b7f5c698------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 10:12:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@solomon-md/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Python3: How to inspect a function’s type]]></title>
            <link>https://medium.com/solomons-tech-stack/python3-how-to-inspect-a-functions-type-9999eeb31c0b?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/9999eeb31c0b</guid>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 04:10:11 GMT</pubDate>
            <atom:updated>2019-04-03T04:10:11.807Z</atom:updated>
            <content:encoded><![CDATA[<p>Cases expected:</p><ul><li>Normal function</li><li>ClassMethod</li><li>InstanceMethod</li><li>StaticMethod</li><li>Method in Subclass</li></ul><p>Examples:</p><pre><strong>def</strong> <strong>ff</strong>():<br>    <strong>pass</strong></pre><pre><strong>class</strong> <strong>A</strong>:<br><strong>    @staticmethod</strong><br>    <strong>def</strong> <strong>sm</strong>():<br>        <strong>pass</strong><br><strong>    @classmethod</strong><br>    <strong>def</strong> <strong>cm</strong>(cls):<br>        <strong>pass</strong><br>    <strong>def</strong> <strong>im</strong>(self):<br>        <strong>pass</strong></pre><pre><strong>class</strong> <strong>B</strong>:<br>    <strong>class</strong> <strong>C</strong>:<br>        <strong>def</strong> <strong>im</strong>(self):<br>            <strong>pass</strong><br><strong>        @classmethod</strong><br>        <strong>def</strong> <strong>cm</strong>(cls):<br>            <strong>pass</strong><br><strong>        @staticmethod</strong><br>        <strong>def</strong> <strong>sm</strong>():<br>            <strong>pass</strong><br><strong>    @classmethod</strong><br>    <strong>def</strong> <strong>cm</strong>(cls):<br>        <strong>def</strong> <strong>f_</strong>():<br>            <strong>pass</strong><br>        <strong>return</strong> f_<br>    <strong>def</strong> <strong>im</strong>():<br>        <strong>def</strong> <strong>f_</strong>():<br>            <strong>def</strong> <strong>f__</strong>():<br>                <strong>pass</strong><br>            <strong>return</strong> f__<br>        <strong>return</strong> f_</pre><p>Facts:</p><pre>&gt;&gt;&gt; cm.__qualname__, sm.__qualname__, im.__qualname__, ff.__qualname__<br> (&#39;A.cm&#39;, &#39;A.sm&#39;, &#39;A.im&#39;, &#39;ff&#39;)</pre><pre>&gt;&gt;&gt; str(A.cm), str(A.sm), str(A.im), str(ff)<br>(&quot;&lt;bound method cls.cm of &lt;class &#39;__main__.cls&#39;&gt;&gt;&quot;,  &#39;&lt;function cls.sm at 0x113977378&gt;&#39;,<br> &#39;&lt;function cls.im at 0x114367950&gt;&#39;, &#39;&lt;function ff at 0x113977158&gt;&#39;)</pre><pre>&gt;&gt;&gt; <strong>from</strong> inspect <strong>import</strong> *<br>&gt;&gt;&gt; ismethod(A.cm), ismethod(A.sm), ismethod(A.im), ismethod(ff)<br> (True, False, False, False)<br>&gt;&gt;&gt; is<strong>function</strong>(cm),  <strong>isfunction</strong>(sm), <strong>isfunction</strong>(im),  <strong>isfunction</strong>(ff)<br>(False, True, True, True)</pre><pre>&gt;&gt;&gt; <strong>getmembers</strong>(A, ismethod)<br>[(&#39;cm&#39;, &lt;bound method A.cm of &lt;<strong>class</strong> &#39;__main__.A&#39;&gt;&gt;),<br> (&#39;xm&#39;, &lt;bound method A.xm of &lt;<strong>class</strong> &#39;__main__.A&#39;&gt;&gt;),<br> (&#39;xxm&#39;, &lt;bound method A.xxm of &lt;<strong>class</strong> &#39;__main__.A&#39;&gt;&gt;)]<br>&gt;&gt;&gt; <strong>getmembers</strong>(A, isfunction)<br>[(&#39;im&#39;, &lt;<strong>function</strong> __main__.A.im(self)&gt;), (&#39;sm&#39;, &lt;<strong>function</strong> __main__.A.sm()&gt;)]</pre><pre>&gt;&gt;&gt; <strong>from</strong> <strong>types</strong> <strong>import</strong> *<br>&gt;&gt;&gt; <strong>isinstance</strong>(A.cm, MethodType), <strong>isinstance</strong>(A.sm, MethodType),<strong>isinstance</strong>(A.im, MethodType),<strong>isinstance</strong>(ff, MethodType)<br> (True, False, False, False)<br>&gt;&gt;&gt;  <strong>isinstance</strong>(A.cm, FunctionType), <strong>isinstance</strong>(A.sm, FunctionType),<strong>isinstance</strong>(A.im, FunctionType),<strong>isinstance</strong>(ff, FunctionType)<br>(False, True, True, True)</pre><p>Simple tests to run:</p><pre># Class methods<br><strong>assert</strong> inspect_type(A.sm) == (&#39;staticmethod&#39;, A)<br><strong>assert</strong> inspect_type(A.cm) == (&#39;classmethod&#39;, A)<br><strong>assert</strong> inspect_type(A.im) == (&#39;instancemethod&#39;, A)<br># Function<br><strong>assert</strong> inspect_type(ff) == (&#39;function&#39;, <strong>None</strong>)<br># Sub classes<br># assert B.cm().__qualname__ == &#39;B.cm.&lt;locals&gt;.f_&#39;<br><strong>assert</strong> inspect_type(B.im()) == (&#39;function&#39;, <strong>None</strong>)<br><strong>assert</strong> inspect_type(B.C.im) == (&#39;instancemethod&#39;, B.C)<br><strong>assert</strong> inspect_type(B.C.cm) == (&#39;classmethod&#39;, B.C)<br><strong>assert</strong> inspect_type(B.C.sm) == (&#39;staticmethod&#39;, B.C)</pre><pre>print(&#39;OK.&#39;)</pre><h3>Solution 1:</h3><pre><strong>import</strong> inspect<br><strong>import</strong> sys</pre><pre><strong>def</strong> <strong>inspect_type</strong>(func):<br>    ftype = <strong>None</strong><br>    <strong>if</strong> &#39;.&#39; <strong>not</strong> <strong>in</strong> func.__qualname__:<br>        ftype = &#39;function&#39;<br>        print(&#39;Normal function&#39;)<br>    <strong>else</strong><br>        # __qualname__: &#39;className.functioNname&#39;<br>        cls_name = func.__qualname__.rsplit(&#39;.&#39;, 1)[0]<br>        # Get the class by name<br>        cls = getattr(sys.modules[func.__module__], cls_name)<br>        # cls.__dict__[func.__name__] should return like &lt;class &#39;staticmethod&#39;&gt;<br>        ftype = cls.__dict__[func.__name__].__class__.__name__<br>        <strong>if</strong> ftype == &#39;staticmethod&#39;:<br>            print(&#39;staticmethod&#39;)<br>        <strong>elif</strong> ftype == &#39;classmethod&#39;:<br>            print(&#39;classmethod&#39;)<br>        <strong>elif</strong> ftype == &#39;function&#39;:<br>            print(&#39;instance-method&#39;)<br>        <strong>else</strong>:<br>            <strong>raise</strong> TypeError(&#39;Unknown Type %s, Please check input is method or function&#39; % func)<br>    <strong>return</strong> ftype</pre><pre>inspect_type(A.sm)<br>inspect_type(A.cm)<br>inspect_type(A.im)<br>inspect_type(ff)</pre><p>Drawback:<br>This solution WON’T work for methods in SUBCLASS.</p><h3>Solution 2</h3><pre><strong>import</strong> sys</pre><pre><strong>def</strong> <strong>get_func_class</strong>(func):<br>    classes = []<br>    parent = sys.modules[func.__module__]<br>    names = func.__qualname__.split(&#39;.&#39;)[:-1]<br>    <strong>for</strong> n <strong>in</strong> names:<br>        parent = parent.__dict__[n]<br>        <strong>if</strong> isinstance(parent, type):<br>            classes.append(parent)<br>    <strong>return</strong> classes[-1] <strong>if</strong> classes <strong>else</strong> <strong>None</strong></pre><pre><strong>def</strong> <strong>inspect_type</strong>(func):<br>    ftype = <strong>None</strong><br>    <strong>if</strong> func.__name__ == func.__qualname__:<br>        <strong>return</strong> &#39;function&#39;, <strong>None</strong><br>    <strong>elif</strong> &#39;.&lt;locals&gt;&#39; <strong>in</strong> func.__qualname__:<br>        <strong>return</strong> &#39;function&#39;, <strong>None</strong><br>    cls = get_func_class(func)<br>    ftype = cls.__dict__.get(func.__name__)</pre><pre>    <strong>if</strong> type(ftype) == staticmethod:<br>        <strong>return</strong> &#39;staticmethod&#39;, cls<br>    <strong>elif</strong> type(ftype) == classmethod:<br>        <strong>return</strong> &#39;classmethod&#39;, cls<br>    <strong>elif</strong> ftype.__class__.__name__ == &#39;function&#39;:<br>        <strong>return</strong> &#39;instancemethod&#39;, cls<br>    <strong>else</strong>:<br>        <strong>raise</strong> TypeError(&#39;Unknown Type %s, Please check input is method or function&#39; % func)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9999eeb31c0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/solomons-tech-stack/python3-how-to-inspect-a-functions-type-9999eeb31c0b">Python3: How to inspect a function’s type</a> was originally published in <a href="https://medium.com/solomons-tech-stack">Solomon’s Tech Stack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Absolute value graphs (Transformation)]]></title>
            <link>https://medium.com/all-math-before-college/absolute-value-graphs-transformation-8f4b3079ee28?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f4b3079ee28</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 15:17:40 GMT</pubDate>
            <atom:updated>2019-01-27T15:17:40.188Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.khanacademy.org/math/algebra/absolute-value-equations-functions/graphs-of-absolute-value-functions/a/absolute-value-equations-and-graphs-review">Refer to Khan academy: </a><a href="https://www.khanacademy.org/math/algebra/absolute-value-equations-functions/graphs-of-absolute-value-functions/a/absolute-value-equations-and-graphs-review">Absolute value graphs</a></p><p>To understand this idea, need to review the previous knowledge of Transformation of graphs, including translation, rotation, reflection, dilation. Also need to know the scale factor of dilation.</p><p>For a simplest form of an absolute value equation, it can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/77/0*HoGRyAOMT5Gou6tw.png" /></figure><p>And the most common use for this idea, is in Quadratic:<br>y=x²</p><p>And the general form of an absolute value equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/0*1OraflhwWLg-Isfw.png" /></figure><p>In the equation,</p><ul><li>The sign of a, negative sign of a means the graph is <strong>flipped</strong> by x-axis.</li><li>a is the scale factor of the graph, equals to g&#39;(x)÷g(x).</li><li>h is distance of moving right, should be <strong>subtracted</strong> by x.</li><li>k is distance of moving up, should be added by y.</li></ul><p>Notice that:<br>The h is confusing sometime ---- <br>it&#39;s the distance of <strong>moving right</strong>, <br>and should be <strong>subtracted</strong> from x. <br>Subtracted ,subtracted, subtracted!<br>For understanding why is it subtracted, review this <a href="https://www.khanacademy.org/math/algebra/absolute-value-equations-functions/graphs-of-absolute-value-functions/v/shifting-absolute-value-graphs">Khan lecture</a> in 2 minutes.</p><h3>Simplest equation y = |x|</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/0*zqw7N4se_Jr3vJlS.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/0*1yWk7ze4iCZCRhvq.png" /></figure><h3>Shifted(Translated) equation y = |x + h| + k</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*B0Ue52I51YnKIizx.png" /></figure><h3>Flipped(Reflected) version y = - |x|</h3><p>It’s only flipping by the x axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*xiPbRDblDFgylezm.png" /></figure><h3>Scaled(Dilated) equation y = a |x|</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/0*V5AJAVBnD4KqRVHd.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f4b3079ee28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/absolute-value-graphs-transformation-8f4b3079ee28">Absolute value graphs (Transformation)</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Permutations & Combinations(PROBABILITY)]]></title>
            <link>https://medium.com/all-math-before-college/permutations-combinations-probability-774dc410b503?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/774dc410b503</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 14:11:00 GMT</pubDate>
            <atom:updated>2019-01-27T14:11:00.710Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Aside from probability, </em><em>Permutations and </em><em>Combinations are essential tools for statistics.</em></blockquote><p>They’re to solve the problem: how many groups are there of if we choose some from some.</p><p><a href="https://github.com/solomonxie/solomonxie.github.io/issues/44#issuecomment-372205396">Jump back to previous note: </a><a href="https://github.com/solomonxie/solomonxie.github.io/issues/44#issuecomment-372205396">Intro to probability.</a></p><p><strong>HOW MANY</strong> groups do we get if we choose a number things from the total things?<br>e.g., how many groups would there be if we choose 3 people from 9 people?</p><p>Permutations and combinations are both to count the total number of groups. <br>We got TWO types of ways to count:</p><ul><li>Permutation: If the order in the group matters.</li><li>Combination: If the order doesn’t matter.</li></ul><p>Combinations could be seen as <strong>FILTERED permutations</strong>, which filtered out all the &quot;duplicates&quot;, or &quot;over counted items&quot;.</p><p>e.g., We got different groups(Permutations) as “123, 132, 231, 213, 312, 321”, once we filter out the over counted items, <br>the combination is just one: 123.</p><p><a href="http://www.fairlynerdy.com/permutations_and_combinations_simplified/">Refer to web article.</a></p><h3>Permutations</h3><blockquote><em>It’s literarily saying the </em><em>possibilities.</em></blockquote><p>Notice: possibilities ≠ probabilities</p><p>e.g., the possibilities of how to arrange three numbers 1,2,3?<br>It could be: 123, 132, 231, 213, 312, 321, so answer is 6 possible ways.<br>To count that algebraically, it&#39;d be 3*2*1, answer is 6 possible ways.</p><p>How do we do this?</p><p>Possible ways to fit in the 1st position are 3, and we got 2 <strong>left overs</strong>. Then the 2nd place could have 2 possible ways, and we got 1 <strong>left over</strong>. So the 3rd position could be 1 possible way.</p><p>And just to logically think about it, we should MULTIPLY them together to get ALL POSSIBLE WAYS: 3*2*1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/0*Ftr-4Ab_uoPTLHKp.png" /></figure><h3>Combinations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*EBlWQ_TPIF7pTVP9.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=774dc410b503" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/permutations-combinations-probability-774dc410b503">Permutations &amp; Combinations(PROBABILITY)</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ellipse and its equation]]></title>
            <link>https://medium.com/all-math-before-college/ellipse-and-its-equation-aa53be9efab0?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa53be9efab0</guid>
            <category><![CDATA[geometry]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 14:11:00 GMT</pubDate>
            <atom:updated>2019-01-27T14:11:00.647Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Ellipse is twisted circle, it got major features and equation from circle.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*Gcxj-ZH6Dmxsvbyl.png" /></figure><p>Ellipse got <strong>TWO</strong> radiuses (or radii):</p><ul><li>Major radius: the longer one.</li><li>Minor radius: the shorter one.</li></ul><h3>Standard ellipse equation</h3><p>a, b is the radius on x-axis and y-axis. Ellipse originally centred at (0, 0).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/0*LmtvlUsRhM91iKId.png" /></figure><h3>Foci of ellipse</h3><p>Since ellipse is part of Conic section, so it has the same identity:</p><p>There’re <strong>TWO</strong> points on the Major radius of ellipse, so that any point on this ellipse has the same sum of distance to both points. These two points are called Focuses or Foci.</p><h3>How to find the Foci</h3><ul><li>Major radius on X-axis: f² = a²-b²</li><li>Major radius on Y-axis: f² = b²-a²</li></ul><h3>Foci identity</h3><p>With the distance D₁ and D₂, their sum is equal to Double Major Radius:</p><pre>D₁ + D₂ = 2*r</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa53be9efab0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/ellipse-and-its-equation-aa53be9efab0">Ellipse and its equation</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reference Angle]]></title>
            <link>https://medium.com/all-math-before-college/reference-angle-6a0fec84ba85?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a0fec84ba85</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[geometry]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 14:11:00 GMT</pubDate>
            <atom:updated>2019-01-27T14:11:00.632Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>The notion </em><em>reference angle would be the </em><strong><em>very FIRST thing</em></strong><em> to understand before solving any trig equations.</em></blockquote><p>First thing first, it’s always the angel with X-axis and Terminal Ray.</p><p>What is it for:<br>In trigonometry, if angles have the same reference angle, then they do have the <strong>SAME</strong> trig function values.<br>e.g. sin(x) = sin(π-x), <br>cos(x) = cos(2π-x).</p><p><a href="https://mathbitsnotebook.com/Algebra2/TrigConcepts/TCStandardPosition.html">Math bits notebook.</a><br><a href="https://www.mathopenref.com/reference-angle.html">Math open reference.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*wfCwLofQ2aXCbWCq.png" /></figure><p>Features of a reference angle:</p><ul><li>It’s always <strong>LESS THAN</strong> 90°.</li><li>It’s always <strong>POSITIVE</strong>.</li><li>It’s always the angle between the Side and the <strong>X-axis</strong>.</li></ul><p>How to get the reference angle θ:</p><ul><li>Quadrant I: θ</li><li>Quadrant II: π - θ</li><li>Quadrant III: θ - π</li><li>Quadrant IV: 2π - θ</li></ul><h3>Angles in Standard Position</h3><blockquote><em>Regard to the </em><em>reference angle, the </em><em>angles in standard positionmeans the ORIGINAL angle.</em></blockquote><p>e.g. There’s an angle θ = 330°. So 330° is the angle in standard position, and 30° is its reference angle.</p><p>Tricks:</p><blockquote><em>To imagine a Diving Athlete finished a ROLLING before hits water, she rolled may be 2 rounds, aka. 720°, and she made a 45° angle with her body and the surface of water.</em></blockquote><h3>Reference Triangles</h3><blockquote><em>A </em><em>reference triangle is formed by &quot;dropping&quot; a </em><strong><em>PERPENDICULAR</em></strong><em> line from the </em><em>terminal ray of a </em><em>standard position angle to the X-axis. Remember, it must be drawn to the </em><em>x-axis.</em></blockquote><p><a href="https://mathbitsnotebook.com/Algebra2/TrigConcepts/TCReferenceTriangles.html">Math is fun.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a0fec84ba85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/reference-angle-6a0fec84ba85">Reference Angle</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit circle]]></title>
            <link>https://medium.com/all-math-before-college/unit-circle-6ff0e1f99fea?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff0e1f99fea</guid>
            <category><![CDATA[geometry]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 14:11:00 GMT</pubDate>
            <atom:updated>2019-01-27T14:11:00.631Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>It’s a fairly </em><strong><em>fundamental</em></strong><em> tool for solving </em><em>trigonometric problems.</em></blockquote><p><a href="https://calcworkshop.com/radian-measure/unit-circle/">Refer to CalcWorkshop.</a></p><p>“Unit Circle is nothing more than a circle with a bunch of <strong>Special Right Triangles.</strong>”</p><p>Well, these special right triangles help us in connecting everything we’ve learned so far about Reference Angles, Reference Triangles, and Trigonometric Functions, and puts them all together in one nice happy circle and allow us to find angles and lengths quickly.</p><h3>Special right triangles</h3><p>30-60-90 Triangle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/0*9FpzZWtSvC57Laqk.png" /></figure><p>45-45-90 Triangle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/0*XNAaUMeYH59WsjPE.png" /></figure><p>Unit Circle with Special Right Triangles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*OluHsXlOqp89p0Sl.png" /></figure><h3>The Complete Unit Circle</h3><blockquote><em>X-axis in the image is </em><em>Cosine-Axis, and </em><em>Y-axis is </em><em>Sine-Axis.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*tcq4JAPvgVr60Lg5.png" /></figure><h3>Exact values of the unit circle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/0*fzpF1FB5BIscZ8L6.png" /></figure><h3>How to memorise the Unit Circle</h3><p><a href="https://github.com/solomonxie/solomonxie.github.io/files/1868499/unit-circle-radian-measure.pdf">Refer to this PDF: unit-circle-radian-measure.pdf</a></p><blockquote><em>Actually, we only need to remember the First Quadrant, and just REFLECT it about Y-axis and X-axis and the Origin, then we get all four quadrants of these special values.</em></blockquote><p>Something important to remember:</p><ul><li>Each point on the unit circle, has other THREE images on the unit circle, so in total it&#39;s FOUR of them. Two are POSITIVE, other two are NEGATIVE.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff0e1f99fea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/unit-circle-6ff0e1f99fea">Unit circle</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Signs of trig functions]]></title>
            <link>https://medium.com/all-math-before-college/signs-of-trig-functions-e03126cede27?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/e03126cede27</guid>
            <category><![CDATA[trigonometry]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 13:11:00 GMT</pubDate>
            <atom:updated>2019-01-27T13:11:00.645Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Before solving a trig equation, need look at the </em><em>sign of the equation, AND identify which one or multiple </em><em>quadrants will the solutions land in.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/0*qij8L22j0OBnBizZ.png" /></figure><ul><li>Quadrant I: All trig functions are <strong>POSITIVE</strong>.</li><li>Quadrant II: Only sin(x) is <strong>POSITIVE</strong>, others are all NEGATIVE.</li><li>Quadrant III: Only tan(x) is <strong>POSITIVE</strong>, others are all NEGATIVE.</li><li>Quadrant IV: Only cos(x) is <strong>POSITIVE</strong>, others are all NEGATIVE.</li></ul><p>e.g.<br>sin(x) = 123 have a positive sign, so it will have two solutions: one in Quadrant I, another be Quadrant II.<br>-cos(2x+3)=234have a negative sign, so it&#39;ll have two solutions in Quadrant IIand Quadrant III.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e03126cede27" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/signs-of-trig-functions-e03126cede27">Signs of trig functions</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperbola and its equation]]></title>
            <link>https://medium.com/all-math-before-college/hyperbola-and-its-equation-cd69da37015d?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd69da37015d</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 09:10:01 GMT</pubDate>
            <atom:updated>2019-01-26T09:10:01.894Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://www.mathsisfun.com/geometry/hyperbola.html">Refer to Maths is fun.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*vNJ8J_Y_RbMGUanP.png" /></figure><p>Hyperbola can be defined as a curve where the distances of any point from:</p><ul><li>A point (the focus)</li><li>A (the directrix) are always in the same ratio.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*P94QG3sSBa2z_2hp.png" /></figure><h3>Equation of Hyperbola</h3><blockquote><em>Equation of hyperbola opens on the </em><strong><em>X-axis</em></strong><em>:</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/0*IZVUuCwr5pDTkpxg.png" /></figure><blockquote><em>Equation of hyperbola opens on the </em><strong><em>Y-axis</em></strong><em>:</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/138/0*DOUmT3nM0_QRVS3_.png" /></figure><p>Features:</p><ul><li>Two vertices:</li><li>(±a, 0) when it opens on x-axis.</li><li>(0, ±b) when it opens on y-axis.</li><li>Two asymptotes:</li><li>y = (b/a)x</li><li>y = −(b/a)x</li></ul><h3>Foci of hyperbola</h3><blockquote><em>Any point </em><em>P on the hyperbola to both focuses</em></blockquote><pre>|D₁ + D₂| = CONSTANT</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/0*FlS14b2xCcGOXhCb.png" /></figure><h3>How to find foci of hyperbola</h3><pre>f² = a² + b²</pre><p>f is the focal length, which is the distance from the focus to the centre.<br>a is the distance from the vertex to the centre, when the vertices are on <strong>X-axis</strong>.<br>b is the distance from the vertex to the centre, when the vertices are on <strong>Y-axis</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/0*rq4GKvzYxASGFyuu.png" /></figure><h3>Example</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*cS9Kjk0baiQ2lZZj.png" /></figure><p>Solve:</p><ul><li>Its centre is at origin, so the unknowns are x² &amp; y².</li><li>According to its vertices, the hyperbola opens Up &amp; Down.</li><li>Since it’s up&amp;down, the formula is y²/b² - x²/a² = 1.</li><li>And the b² = √(6)² = 6</li><li>According to the foci equation: then it should be 74 = a² + 6, and a² = 68.</li><li>So the equation would be y²/6 - x²/68 = 1</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd69da37015d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/hyperbola-and-its-equation-cd69da37015d">Hyperbola and its equation</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complex numbers]]></title>
            <link>https://medium.com/all-math-before-college/complex-numbers-4a1aeda2abb6?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a1aeda2abb6</guid>
            <category><![CDATA[algebra]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 09:09:38 GMT</pubDate>
            <atom:updated>2019-01-26T09:09:38.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/193/0*-pvn4uUhk3HmjNk1.png" /></figure><h3>Imaginary number</h3><pre># Assume that<br>i² = −1<br># therefore the imaginary unit is<br>i = √(-1)</pre><p>Powers of Imaginary Unit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/0*W_Md3Q0aQHnae0Sc.png" /></figure><p>The pattern is from i to i⁴, then it repeats.<br>To evaluate iⁿ, just to get the remainder n % 4 and see which term it is in the pattern. e.g., i¹⁰ is equal to -1 because 10 % 4 = 2 which is 2nd term in the pattern.</p><h3>Complex Plane</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/0*PrNBq_dZI6sWHyKo.png" /></figure><h3>Conjugates</h3><blockquote><em>Its mainly usage is for the complex number’s </em><em>division.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/0*1GhalJ1JBZ-znfQv.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*qxP-zyWLzvHErnl-.png" /></figure><h3>Forms of complex number</h3><p><a href="https://www.khanacademy.org/math/precalculus/imaginary-and-complex-numbers/modal/a/complex-number-forms-review">refer to khan academy article.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/0*JwR4Mb3JTDGEb0FK.png" /></figure><ul><li>Rectangle form</li></ul><p>This form is good for plotting in the complex plane.</p><ul><li>Polar form</li></ul><p>This form only refers to the Absolute value and Angle, <br>which are also called the <strong>Modulus</strong> and the <strong>Argument</strong>.</p><ul><li>Exponential form</li></ul><p>Its reasoning is too complicated, so just to remember it.<br>This form is very good for complex number&#39;s multiplication and division or further operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/0*Zu1hHneavnHRKpH2.png" /></figure><h3>Operations of complex numbers</h3><blockquote><em>It’s easier just see the </em><em>i as an </em><em>unknown variable, then to do normal operations.<br></em><a href="http://www.mathsisfun.com/numbers/complex-numbers.html"><em>Refer to maths is fun.</em></a></blockquote><ul><li>Addition &amp; Subtraction:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/0*6L2ByCnoOJY1ixpi.png" /></figure><ul><li>Multiplication:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*v2NiAt-rs9mwhwPi.png" /></figure><ul><li>Division:</li></ul><p>Need to use the notion conjugates</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/0*f6JVbyJDlZXeGGbE.png" /></figure><ul><li>Powers:</li></ul><p>Better to convert it to Exponential form first, and do powers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/0*yelJmr7JYmCiR-lu.png" /></figure><h3>Convert between Rectangle form &amp; Polar form</h3><p><strong>FORMS AND TECHNIQUES HERE, ARE RATHER APPLICABLE TO MANY TOPICS THAN MERELY FOR COMPLEX NUMBER. IT’S ACTUALLY FOR ALL TRIGONOMETRY RELATED TOPICS!!</strong></p><h3>Absolute value of complex number</h3><blockquote><em>The </em><em>absolute value of it literarily means the </em><em>DISTANCE from the point of complex number to the </em><em>origin.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*CroQgOE2-V_gFbQ4.png" /></figure><h3>How to understand this term?</h3><p><strong>IT SPEND ME A LOT OF TIME TO UNDERSTAND AT THE FIRST TIME.</strong><br>In the example 5+6i,<br>to calculate the absolute value of it |5+6i|, I know it&#39;s using the Pythagorean theorem.</p><p>But why it ISN’T doing √(5²+6²i²) instead of √(5²+6²)?<br>It is the most confusing part, and hard to consult the Internet with a clear answer that why do we <strong>Take out</strong> the i from calculating the distance.</p><p>The simple answer is that: <br>No matter it’s i or i², it is either √(-1) or -1, in another word it actually is just a <strong>NEGATIVE ONE</strong>, <br>but when we&#39;re counting a DISTANCE, it&#39;s always a POSITIVE, so we have to CANCEL OUT the -1 from the number. That&#39;s the point we could ignore it when doing absolute value.</p><h3>Angle of complex number</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/122/0*ShTEUWFJZfvLPAeO.png" /></figure><p>Note:<br>It only regards to the tangent knowledge of trig functions.<br>Better to review tangent identities to find all possible solutions of tan⁻¹(θ).</p><pre>tan(θ) = tan(-π + θ)</pre><p>Steps:</p><ul><li>Find all solutions for angle θ.</li><li>Plot rectangle form of complex number and figure out the Quadrant.</li><li>Select the right solution at the right quadrant.</li></ul><p>Example: Find angle for z = −3 − 6i<br>Solve:</p><ul><li>Principle solution: θ = arctan(-6/-3) = 1.107 which is at 1st Quadrant.</li><li>Another pair solution would be -π + θ = -2.03 which is at 3rd Quadrant.</li><li>-3-6i should be at the 3rd Quadrant in complex plane, so answer is -2.03.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*KFEkrWAdJEDGIgZD.png" /></figure><p>For some exact values, we also need the tangent values of unit circle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/0*84SUnVVzd_FQ-i1Y.png" /></figure><h3>Convert between Exponential form &amp; Polar form</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/0*qN33OaDJ04bvJuXm.png" /></figure><p>Example: Find the solution of z⁴ = -625 in Rectangle form and Polar form, which argument in [270°, 360°]<br>Solve: <br>It&#39;s actually a process of conversion:</p><ul><li>-625 could be represented as -625 +0i in Rectangle form</li><li>Modulus r is √(-625²+0²) which is equal to 625.</li><li>tanθ = 0/-625 = 0, check the tangent unit circle table to know the angle could be 0° or 180°, according to its rectangle form, it&#39;s certain to be on the negative X-axis, so it&#39;s 180°.</li><li>Add all possible solutions and get the angle is 180° + n*360°.</li><li>Polar form is: 625[cos(180° + n*360°) + i*sin(180° + n*360°)]</li><li>since the complex number is z⁴, so:</li><li>Modulus = ⁴√625 = 5</li><li>Argument = (180° + n*360°) / 4 = (45°+n*90)</li><li>Range of argument is [270°, 360°], so the argument is 315°</li><li>So the Polar form is: 5(cos315 + i*sin315).</li><li>Rectangle form is: 5√2/2 - i*5√2/2</li></ul><h3>Powers of complex numbers</h3><h3>Example</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*zZzc-7YQSv9MF45X.png" /></figure><p>Solve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/0*HrRJ-Kg-FvkE1SNS.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*nQUXdMSbQfcxpjJF.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*rECO22ULE3-PgcAE.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a1aeda2abb6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/complex-numbers-4a1aeda2abb6">Complex numbers</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trapezoid]]></title>
            <link>https://medium.com/all-math-before-college/trapezoid-fc9690b344c8?source=rss-d533b7f5c698------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc9690b344c8</guid>
            <category><![CDATA[geometry]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 09:09:22 GMT</pubDate>
            <atom:updated>2019-01-26T09:09:22.301Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Definition: A trapezoid is a quadrilateral with </em><strong><em>two parallel sides</em></strong><em>.</em></blockquote><p><a href="https://ggbm.at/runpCeja">To play with trapezoid, Refer to GeoGebra</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/0*7AjLylrAdknTeiXe.png" /></figure><p>Trapezoid</p><ul><li>Scalene trapezoid: No equal sides.</li><li>Isosceles trapezoid: Two legs are equal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/0*HFuTC94_LAA0ixsR.png" /></figure><h3>Area of trapezoid</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/0*gywX5KgjwMabkSOT.png" /></figure><h3>Trapezoid inscribed in a circle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*X3bGvBdtvTw-GVMJ.png" /></figure><ul><li>Remember that a trapezoid has to have <strong>TWO BASES</strong> to be parallel.</li><li>Know that, a quadrilateral CAN be inscribed in a circle or even a semicircle, which means 4 vertices are all on the circle.</li><li>Since it’s a trapezoid, and inscribed in a circle, then <strong>IT HAS TO BE A ISOSCELES TRAPEZOID.</strong> No matter its side crosses the centre or not.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc9690b344c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-math-before-college/trapezoid-fc9690b344c8">Trapezoid</a> was originally published in <a href="https://medium.com/all-math-before-college">All Math Before College</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>