SOLUTIONpH 7Na 1P 1 chargeENDSURFACE 1 -donnan -equilibrate with solution 1 Hfo_s 0.001 600 1 Hfo_w 0.01ENDUSE solution 1USE surface 1USER_PRINT10 t = EDL_SPECIES("Hfo", count, name$, moles, area, thickness)20 GOSUB 100030 FOR i = 1 TO count40 PRINT pad$(name$(i), 10), moles(i)50 NEXT i100 END1000 REM sort alphabetical1010 sorted = 01020 WHILE (sorted = 0)1030 sorted = 11040 FOR i = 2 TO count1050 if (name$(i) < name$(i-1)) THEN GOSUB 20001060 NEXT i1070 WEND1110 RETURN2000 REM Swap2010 temp$ = name$(i)2020 temp = moles(i)2030 name$(i) = name$(i - 1)2040 moles(i) = moles(i - 1)2050 name$(i -1) = temp$2060 moles(i - 1) = temp2070 sorted = 02080 RETURNEND
SOLUTIONpH 7Na 1P 1 chargeENDSURFACE 1 -donnan -equilibrate with solution 1 Hfo_s 0.001 600 1 Hfo_w 0.01ENDCALCULATE_VALUESEDL_SPECIES-start10 t = EDL_SPECIES(GET$(0), count, name$, moles, area, thickness)20 FOR i = 1 TO count30 if (name$(i) <> GET$(1)) THEN GOTO 10040 moles_edl_species = moles(i)50 GOTO 110100 NEXT i110 SAVE moles_edl_species120 ENDENDUSE solution 1USE surface 1USER_PRINT10 PUT$("Hfo", 0)20 PUT$("OH-", 1)30 moles_edl_species = CALC_VALUE("EDL_SPECIES")100 t = EDL_SPECIES("Hfo", count, name$, moles, area, thickness)110 FOR i = 1 TO count120 PRINT pad$(name$(i), 10), moles(i)130 NEXT i140 PRINT150 PRINT "CALC_VALUE: ", pad$(GET$(1), 10), moles_edl_species160 ENDEND