Design of Classes for Unary Function Expression
Yuncheng Zhou · Microcomputer applications · 2008
All kinds of unary function expressions are required in mathematical software,statistic software and numerical simu- lation software.So,a method that can conveniently generate complex function expression is required.This paper introduces a dynamic combination method that can combine unary function expression dynamically.Mathematical operators,basic elementary functions,compound functions and constants are considered as objects in this paper.The mathematical classes are brought with C++programming language.A very complex unary function expression can be generated through creating mathematical ob- jects and compounding them.The result shows that the last mathematical object can provide calculating capacity to the caller through its interface.