Geological data processing
Online ISSN : 1347-541X
Print ISSN : 0388-502X
An Application program for Calculation of Chemical Analysis Data with the Operation-Code Method in BASIC
Morimasa YOSHII
Author information
JOURNAL FREE ACCESS

1985 Volume 1985 Issue 10 Pages 1-11

Details
Abstract

An application program for interactive polynomial operations among values of chemical components has been made up. The program is valid for personal computers run by the BASIC of the Microsoft Company, such as PC-8201, PC-100, PC-9801, and FM-8. The source-program list is given in the appendix of this text.
One of the most characteristic functions of the program is that you can directly input the component names in a form of a numerical expression as if they are variables. For example:
100ZN/ (ZN+PB+CU) .
You will obtain the result of the calculation for each sample you need by this simple operation. You can get also the values of total, mean, and standard deviation of the samples concerned at the end of the list (table 3) .
The second striking feature is that a data-file is able to be created in the following easy ways:
1. In case that a computer has a word-processing function, you make a chemical analysis table with it (table 1) .
2. If the computer has no such functions, you can apply the editor of BASIC. In this case you put a line-number and a REMark sentence, or its symbol “'”, at the head of each line so that you write a table without any restrictions of the BASIC (table 2) .
The data must be saved in the ASCII form in any cases.
The format of a chemical analysis table is:
The 1st line -- Component names which follow a title and a delimiter“: ”.
The 2nd line -- Atomic, or molecular weights, after a title and a delimiter “W: ”. This line can be omitted if not necessary.
The 3rd line to end -- A sample number and a delimiter“: ”, and values for the components.
You can write remarks at any line. It must include the symbol “*”.
The computer picks out samples according to a given range of sample numbers in the course of data-processing. Therefore you should classify your samples previously and put systematic numbers, or codes, for them.

Content from these authors
© Japan Society of Geoinformatics
Next article
feedback
Top