Category: blog-ja

  • Octaveを用いた基本的な演算

    Octave 公式ページ


    1.Checking the size of a matrix

    A = [2 2; 3 3; 4 4;];

    size(A)⇒(3,2)

    size(A,1)⇒(3)

    2.Generating a random matrix

    A = randi([1 4],3,5)⇒

    3 4 4 4 3

    4 1 2 2 2

    4 4 2 1 3

    3.Transpose Matrix

    I = ones(1,5)⇒

    1 1 1 1 1

    IcolV = I'⇒

    1

    1

    1

    1

    1

    A * IcolV⇒

    18

    11

    14

    4.Powering and Multiplication at each element

    M = [1 3; 2 2; 2 3;];

    M.^2⇒

    1 9

    4 4

    4 9

    N = [1 3; 2 2; 2 3;];

    M .* N⇒

    1 9

    4 4

    4 9

  • 外部モニタとして使えるiMac製品

    過去に製造されたiMacでTarget Display Modeが搭載されていて外部モニタとして機能するのは、2009年から2014年の間に製造されたiMacになります。2014年以降のモデルにはそのTarget Display Modeが搭載されていないので機能しません。
    参考:外部モニタとして使える2010年代のiMacモデル

    The mac computers with Target Disply Mode, a feature working as an external display are the following models.
    The old models created between from 2009 to 2014.

    Use your iMac as a display with target display mode

  • WordPressの記事で数式を使う

    WordPressプラグインMathJaxを用いるとこのように見た目が整った数式を使えます。ブラウザのこのページのソースを表示で実際どんなコードで数式が書かれているか確認できます。Latexに対応。

    \[\frac{du}{dt} and \frac{d^2 u}{dx^2} \;\;\; \cdot\cdot\cdot\cdot \; example \; (1) \;\]

    \[ \frac{\partial u}{\partial t}
    = h^2 \left( \frac{\partial^2 u}{\partial x^2}
    + \frac{\partial^2 u}{\partial y^2}
    + \frac{\partial^2 u}{\partial z^2} \right) \;\;\; \cdot\cdot\cdot\cdot \; example \; (2) \;\]

    \[x = {-b \pm \sqrt{b^2-4ac} \over 2a} \;\;\; \cdot\cdot\cdot\cdot \; example \; (3) \;\]

    \[ \int {f_1(x) \over f_2(x)} \,dx+ \int {g_2(y) \over g_1(y)} \,dy\ = c \;\;\; \cdot\cdot\cdot\cdot \; example \; (4) \;\]

    \[ y’ = f(x) \;\;\; \cdot\cdot\cdot\cdot \; example \; (5) \;\]