<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Math on Lin's Blog</title><link>https://coder.tw/tags/math/</link><description>Recent content in Math on Lin's Blog</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Sun, 24 Jul 2011 08:25:37 +0000</lastBuildDate><atom:link href="https://coder.tw/tags/math/index.xml" rel="self" type="application/rss+xml"/><item><title>帕斯卡（巴斯卡）三角形公式解！（感謝滄海）</title><link>https://coder.tw/posts/pascal-triangle-formula-solution/</link><pubDate>Sun, 24 Jul 2011 08:25:37 +0000</pubDate><guid>https://coder.tw/posts/pascal-triangle-formula-solution/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/07/210px-PascalTriangleAnimated2.gif"&gt;&lt;img title="210px-PascalTriangleAnimated2" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/07/210px-PascalTriangleAnimated2.gif" alt="" width="210" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;上圖引用自維基，用以解釋帕斯卡三角形&lt;/p&gt;
&lt;p&gt;今天要講的是所謂的帕斯卡三角形，也有人稱它楊輝三角形、賈憲三角形，他的第一行、第一個字是「1」，在下來的數字等於「左上、右上相加」，如果左上或右上沒有數字則等於0，例如第二行的數字有兩個「1、1」，再來第三行等於「1、2、1」，並且這個三角形可以無限延伸下去&lt;/p&gt;</description></item><item><title>如何把十進位數字轉換成二進位？</title><link>https://coder.tw/posts/decimal-to-binary-conversion/</link><pubDate>Sat, 16 Apr 2011 19:38:38 +0000</pubDate><guid>https://coder.tw/posts/decimal-to-binary-conversion/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-16_185412.jpg"&gt;&lt;img title="2011-04-16_185412" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-16_185412.jpg" alt="" width="205" height="237" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;del&gt;我估計寫完這文章之後又有人要說我寫的文章太簡單了...&lt;/del&gt; 廢話不多說，這週程式課我們老師給我們班出了一道題目，內容就是要如何把十進位轉換成二進位，如果是用數學來算的話其實不難，用短除法去算，然後取餘數就可以了&lt;/p&gt;
&lt;p&gt;</description></item><item><title>【C++】如何進行次方與根號運算?(sqrt、pow)</title><link>https://coder.tw/posts/c-power-and-square-root-sqrt-pow/</link><pubDate>Fri, 18 Mar 2011 15:05:05 +0000</pubDate><guid>https://coder.tw/posts/c-power-and-square-root-sqrt-pow/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/03/2011-03-18_151805.jpg"&gt;&lt;img class="alignnone size-large wp-image-367" title="2011-03-18_151805" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/03/2011-03-18_151805-540x380.jpg" alt="" width="540" height="380" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;在一些程式語言裡面，要進行次方運算是可以直接用^運算子來達到的，但是之前在寫題目時才發現原來C++裡面要做次方運算必須要使用pow函式才能達到，在這篇文章裡要介紹兩個函式，一個是pow，它可以幫你做次方運算，另一個就是sqrt，它可以幫你做根更號的工作&lt;/p&gt;</description></item></channel></rss>