Unicode Demo

Unicode Demo

Source: unicode_demo.f90

Unicode symbols in labels and titles.

Files

  • unicode_demo.f90 - Source code
  • Generated media in output/example/fortran/unicode_demo/

Running

make example ARGS="unicode_demo"

Output

Math Examples

math_examples.png

ASCII output:



              Common Physics: E = mc², ΔE = hν, F = q(E + v×B)
┌────────────────────────────────────────────────────────────────────────────────┐
│                                                                                │
│ │                                                                              │
│ 0.5                                                                            │
│ │                                                                             │
│ │                    ■■                                                        │
│ │                  ■■            ■■■                                           │
│ │                                  ■■                                         │
│ 0.4              ■■                                                           │
│ │                                     ■■                                      │
│ │  ---                                  ■■                                    │
│ │     --                                                                     │
│ │       --                                 ■■                                 │
│ │        --                                  ■■                               │
│ 0.3        -                                                                 │
│ │                                               ■■                            │
│ │            --                                    ■■                          │
│ │            -                                     ■■■                        │
│ │             --                                      ■■                      │
│ 0.2            -                                        ■■                    │
│ │               --                                        ■■■                 │
│ │                  -                                          ■■               │
│ │                  -                                           ■■■            │
│ │                   -                                             ■■■         │
│ 0.1                  ---                                             ■■■■     │
│ │                      --                                                     │
│ │                        ---                                                  │
│ │                          -----                                              │
│ │  ■■                            -----------------------------------------     │
│ +--+----------+-----------+-----------+-----------+-----------+----------+---- │
│ 0.00          1           2           3           4           5          6     │
└────────────────────────────────────────────────────────────────────────────────┘
                                  Parameter ξ
Observable Θ

Legend:
--- Gaussian: ρ(ξ) = e^{-ξ²/2σ²}/√(2πσ²)
--- Modified Γ: f(ξ) = ξ² e^{-ξ}

Download ASCII

Download PDF

Unicode Demo

unicode_demo.png

ASCII output:



             Wave Functions: ψ(ω t) = A e^{-λ t} sin(ω t + φ)
┌────────────────────────────────────────────────────────────────────────────────┐
│ 1.00                                                                           │
│ │                                                                              │
│ │                                                                              │
│ │  ■■                                                                          │
│ 0.75■■                                                                         │
│ │                                                                             │
│ │       -----                                                                 │
│ │      --    -                                                                │
│ 0.50   -      -                                                                │
│ │      -      --                                                              │
│ │      ■■              ■■■        ■■■■■■ ■■               ■■■                 │
│ │             -                    ■■                                  │
│ 0.25           -                     ■■                                 │
│ │                -                    ------                    ■■■     │
│ │                 -                   ---    --              ■■■        │
│ │                -                 -         -                         │
│ 0.00               -                -            ---       ■■            │
│ │                                  -               -       ■■      -     │
│ │                  -              -                 --   ■■    ---       │
│ │                    -           -                   --- ----         │
│ -0.25                -         -                      ■■ -              │
│ │                      -        --              ■■    ■■■                 │
│ │                     --    --                 ■■■■                   │
│ │                          -  ■■                                      │
│ -0.50          ■■■      ■■ ----  ■■               ■■■               ■■         │
│ │                                                                            │
│ │                                                                            │
│ -0.75             ■■■■■                                                        │
│ +--+----------+----------+----------+-----------+----------+----------+------- │
│    0          2          4          6           8         10         12        │
└────────────────────────────────────────────────────────────────────────────────┘
                     Time τ (normalized: τ = ω t / 2π)
Amplitude Ψ (V)

Legend:
--- α damped: sin(ω t)e^{-λτ}
--- β damped: cos(ω t)e^{-μτ}
--- γ oscillation: sin(2ω t)

Download ASCII

Download PDF