BSD 3 development
[unix-history] / usr / lib / learn / eqn / L8.1a
CommitLineData
fd15fd37
BJ
1#once #create message
2.ND
3.LP
4The next neqn operation is called "sqrt" - it makes
5square root signs over things, like this:
6.EQ
7sqrt a+b
8.EN
9(They don't look very good on a terminal, unfortunately.)
10This one is very easy - to print the line above, you
11say
12 .EQ
13 sqrt a+b
14 .EN
15The "sqrt" operates on the first thing it finds
16so if you want something more complicated, like
17.EQ
18sqrt {pi +1}
19.EN
20you have to use braces to enclose the entire
21thing. This one was printed with
22 .EQ
23 sqrt {pi +1}
24 .EN
25And that's all there is to sqrt.
26
27Modify "Example" so it looks like this, then type "ready".
28.pl 1
29#once #create Ref
30.LP
31.EQ
32f(x) ~=~ sqrt {ax sup 2 +bx+c}
33.EN
34.pl 1
35#once #create Example
36.LP
37.EQ
38f(x)....
39.EN
40.pl 1
41#
42#once neqn Ref | nroff >X1 &
43#once neqn message Ref | nroff -T$term %s/tinyms -
44#user
45neqn Example | nroff >X2
46#cmp X1 X2
47#log
48#next
498.1b 10