数式
数式は MDX に直接書けます。記法が必要な本文や実行可能セルの近くに置くと、読者がページを移動せずに読み進められます。
インライン数式
Section titled “インライン数式”inline math は dollar sign 1つで囲みます。ロジスティック写像では、状態は 、parameter は です。
下付き文字と上付き文字も組み合わせて使えます: 。
ブロック数式
Section titled “ブロック数式”block math は dollar sign 2つで囲みます。
コードセルとの併用
Section titled “コードセルとの併用”読者が式を確認したり値を変えたりする場合は、実行可能セルを使います。
Python + Pyodide
Calculate a quadratic with Python
Cell actions
y = x**2 + 2*x + 1
print(f"f({x}) = {y}")Run the cell to show its output.