summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L8.1a
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:53 +0000
committerIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:53 +0000
commit5c33bfa47b213f93498fe8c5dc17f90f4d116c06 (patch)
tree0dcf528168e800bebf68c46bb8296b34b3342caa /usr.bin/learn/lib/eqn/L8.1a
parent8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (diff)
import BTL learn(1) lessons/eqn
Diffstat (limited to 'usr.bin/learn/lib/eqn/L8.1a')
-rw-r--r--usr.bin/learn/lib/eqn/L8.1a49
1 files changed, 49 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/eqn/L8.1a b/usr.bin/learn/lib/eqn/L8.1a
new file mode 100644
index 00000000000..06caba47f10
--- /dev/null
+++ b/usr.bin/learn/lib/eqn/L8.1a
@@ -0,0 +1,49 @@
+#once #create message
+.ND
+.LP
+The next neqn operation is called "sqrt" - it makes
+square root signs over things, like this:
+.EQ
+sqrt a+b
+.EN
+(They don't look very good on a terminal, unfortunately.)
+This one is very easy - to print the line above, you
+say
+ .EQ
+ sqrt a+b
+ .EN
+The "sqrt" operates on the first thing it finds
+so if you want something more complicated, like
+.EQ
+sqrt {pi +1}
+.EN
+you have to use braces to enclose the entire
+thing. This one was printed with
+ .EQ
+ sqrt {pi +1}
+ .EN
+And that's all there is to sqrt.
+
+Modify "Example" so it looks like this, then type "ready".
+.pl 1
+#once #create Ref
+.LP
+.EQ
+f(x) ~=~ sqrt {ax sup 2 +bx+c}
+.EN
+.pl 1
+#once #create Example
+.LP
+.EQ
+f(x)....
+.EN
+.pl 1
+#
+#once neqn Ref | nroff >X1 &
+#once neqn message Ref | nroff -T$term %s/tinyms -
+#user
+neqn Example | nroff >X2
+#cmp X1 X2
+#log
+#next
+8.1b 10