Root/examples/meas.fpd

Source at commit 377b7f81193685f23c93546767a059e194419446 created 4 years 2 months ago.
By Werner Almesberger, fped.c: new option -m (for -p and -P) to suppress showing measurements
1/*
2 * new-style measurements demo
3 */
4
5part "measurements"
6loop x = -2, 2
7A: vec @(0mm, 0mm)
8B: vec @(x*2mm, 2mm)
9C: vec @(0mm, 4mm)
10
11/*
12 * If we measure (x, y), y trumps x
13 */
14meas "A -> B = " A -> B 0.2mm
15meas "A <- B = " A <- B 0.5mm
16
17meas "A >> B = " A >> B 1.5mm
18
19measx "x(A -> B) = " A -> B -0.5mm
20measx "x(A >> B) = " A >> B -1mm
21measy "y(A -> B) = " A -> B -2mm
22measy "y(A >> B) = " A >> B -4.5mm
23
24meas "B -> C = " B -> C 0.5mm
25

Archive Download this file

Branches:
master



interactive