Skip to content

Instantly share code, notes, and snippets.

@ka9e
Last active December 22, 2015 14:09
Show Gist options
  • Save ka9e/6484022 to your computer and use it in GitHub Desktop.
Save ka9e/6484022 to your computer and use it in GitHub Desktop.
数学公式 bot 説明書 : the description of @math_fml_bot

数学に関する式やトピックを紹介する bot です

概要

  • 数学に関係する tweet を TimeLine 上に投稿する bot です。名の通り大半は高校数学の公式です。
  • 内容の誤りや数学的におかしいと思ったらどんどん指摘をください。
  • 数式や、その式に関するグラフの画像が付いているものがあります。ご活用ください。(現在調整中)

数式の記法

基本は TeX をベースとし、空白の置き方などのスタイルを python から取り入れてます。

  • べき乗 : a^n
  • 関数
    • 一般 : f(x), f
    • 三角 : sin x, sin(x + y)
    • 指数 : a^x, e^x, exp(x)
    • 対数 : log_a(x), ln x
  • 微分 : (sin x)', {f(x)}'
  • 積分 : ∫ sin x dx = - cos x + C
  • 行列 : 列ベクトルの並びで表現する。 A = [[a(1,1), a(2,1)], [a(1,2), a(2,2)]]

更新履歴

  • 2010/10/17
    • 数式に画像を導入
    • 数式名・カテゴリを縮小。不要なものを一部削除。
  • 2011/01/03
    • 説明書を書き直した。
  • 2011/03/23
    • 短縮 URL を is.gd から goo.gl に差し替えた。
  • 2011/03/24
    • 文字数オーバーが何点かあったので訂正。
  • 2013/09/08
    • 説明書を Gist に移行
  • 2014/01/25
    • bot を自作のものに移行

謝辞

bot の立ち上げにあたって @nyamph_pf 氏からアドバイスと助力を頂きました。感謝します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment