TABLE OF CONTENTS
::pwtk::mathParser
SYNOPSIS
proc ::pwtk::mathParser {expression} {
PURPOSE
Parse a simple math expression and return the value.
ARGUMENTS
- expression -- a simple math expression.
SOURCE
variable bohr2angs variable angs2bohr variable ry2ev variable ev2ry # force expr to use floating-point (real) numbers by multiplying # expression by 1.0 return [expr 1.0 * [f2c_number $expression]] }