home *** CD-ROM | disk | FTP | other *** search
- 4.14 Database
- After you creat a database file as a library (external function),
- you can search your database by finding its function value.
-
- 4.14.1 Phone No. Database
- If you have created the database file "phoneNo.(x)" as follow:
-
- -------------------------------------
- phoneno("huang") := "6974643"
- phoneno("john") := "12345"
- --------------------------------------
-
- you can find out phone No. of someone from the phone No. database
- file "phoneNo.(x)" by the external function
- phoneno("name")
-
- Example 4.14.1
- find out phone No. of huang.
- IN: phoneno("huang")
- OUT: "6974643"
-
- 4.14.2 Chemical Reaction Database
- You can predict products for chemical reactions from the
- database file "react.(x)".
-
- Example 4.14.2.
- What are the products when HCl + NaOH react ?
-
- IN: react(HCl+NaOH)
- OUT: H2O + NaCl
-