Subversion Repositories wimsdev

Rev

Rev 4158 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

!if $wims_read_parm!=slib_header
 !goto proc
!endif
slib_title=Returns the number of electrons in a redox reaction
slib_parms=1\
 , molecule or chemical equation
slib_author=Georges Khaznadar
slib_license=GPL
slib_out= number of electrons found on either side of the equation
slib_comment=Enter formulas as accepted by the command chemeq
slib_example= Cr2O7^2- + 14H^+ + 6e^- -> 2 Cr^3+ + 7H2O\
Fe^3+ + e^- -> Fe^2+

!exit

:proc

chemeq_option=e
slib_e=!exec chemeq $wims_read_parm
!reset chemeq_option
slib_out=!replace .*e^-|\([^*]*\)\*.* by \1 in $slib_e