kill(all)$

Maxima : intro computation ,base and acid, 'part :1,version 1.0'
peter.vlasschaert@gmail.com, 22/11/2018

part : analytical chemistry , 'website'

loadpackages :
=============

load(lrats)$

Math :  

?  log(x)   ,  math : ln(x)  , maxima : log(x)   =>  ln(x) = log(10)
=================================================
base : %e, 

%e  =>

p1: exp(1);
p2:%e^(1);

p1a:float(p2);

Definition :  pH = -log10(H)   ,  H = H(+)
================================
Ned : zuurtegraad
rem : pH : pressure hydrogen

p3:log(1);float(%);
p3a:log(10);float(%);

definition : pH
---------------------

convert :  base : %e  => base: 10
============================

log10(x):=log(x)/log(10);

p4:log10(1);float(%);
p4a:log10(10);float(%);

pH=-log(H)
=========

pH(x1):=-log10(x1);

x1: hydrogen concentration

scale : 1 ≤ pH ≤ 14
--------------------------------------------

Maxima :

  =>  1 ≤ pH(x) ≤ 14

first value range: pH=1
----------------------------------

pH(0.1);float(%);

last value range: pH=14
-----------------------------------

pH(10^(-14));float(%);

pOH=-log(OH)
============

also definition , pOH:   (OH = OH(-))

pOH(x2):= -log10(x2);

x2: hydroxy concentration

water :    pOH = pH = 10^(-7) , neutral 
-------------------------------------------------------

p5:pH(10^(-7))+pOH(10^(-7));

p5a:float(%);

=>         pH+pOH = 14
=>         pOH = 14 - pH

neutral  : pH =7 ,see: 'water' above.
----------------------------------------------------

p6a:pH(10^(-7));float(%);

-----------------------------------------------------

p6b:pOH(10^(-7));float(%);

----------------------------------------------------

result   :
=======

pH  range : 1≤ q1 ≤ neutral ≤ q2 ≤14
-----------------------------------------------------
=================================================
q1 : solutions of acid    => call :acid   range. (below neutral)
q2 : solutions of base   => call :base  range. (above neutral)
=================================================

formula :
=======

pH    = -log10(H)
pOH = 14 - pH
pkw = pH+pOH  , pKw = 14, dissociation constant of water

 =================================================

rem : see Menu : Numeric

=================================================