Arithmetic functions are generally intuitive, so long as you understand that the function identifier
comes first (as it does with all BioBIKE functions), and only then comes the arguments.Addition (+ list of numbers to be added)
Example: (+ 3 29 47) ==> 79Subtraction (- minuend list of subtrahends)
Example: (- 3 29 47) ==> -73Multiplication (* list of numbers to be multiplied
Example: (* 3 29 47) ==> 4089Division (/ dividend list of divisors)
Examples: (/ 3 29 47) ==> 3/1363
(/ 3 29 47.0) ==> 0.0022010272Increment (INCREMENT variable)
Examples: (INCREMENT x) ==> 1 + previous value of x (or 1, if x did not have a value)
(INCREMENT pos 3) ==> 3 + previous value of pos (or 3, if pos did not have a value)
(INCREMENT list-of-values) ==> 1 + previous value of each element within the listSummation (SUM-OF list-of-numbers)
Examples: (SUM-OF (LIST-OF-NUMBERS FROM 1 TO 10)) ==> 55
(SUM-OF (LENGTHS-OF (GENES-OF A7120))) ==>Exponentiation (ex) (EXP number)
Example: (EXP 1) ==> 2.7182817Exponentiation (bx) (EXPT base power)
Example: (EXPT 3 4) ==> 81Square root (SQRT number)
Example: (SQRT 2) ==> 1.4142135Natural log (LOG number)
Example: (LOG 10) ==> 2.3025851Log (base 10) (LOG10 number)
Example: (LOG10 100) ==> 2Log (base 2) (LOG2 number)
Example: (LOG2 64) ==> 6Log (any base) (LOG number base)
Example: (LOG 100 10) ==> 2