A simple solver for linear equations containing nonlinear operators

被引:0
|
作者
Ramsey, N [1 ]
机构
[1] BELL COMMUN RES INC,MORRISTOWN,NJ 07960
来源
SOFTWARE-PRACTICE & EXPERIENCE | 1996年 / 26卷 / 04期
关键词
simultaneous equations; algebraic simplification; literate programming;
D O I
10.1002/(SICI)1097-024X(199604)26:4<467::AID-SPE17>3.0.CO;2-M
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper presents a simple equation solver, The solver finds solutions for sets of linear equations extended with several nonlinear operators, including integer division and modulus, sign extension, and bit slicing. The solver uses a new technique called balancing, which can eliminate some nonlinear operators from a set of equations before applying Gaussian elimination. The solver's principal advantages are its simplicity and its ability to handle some nonlinear operators, including nonlinear functions of more than one variable. The solver is part of an application generator that provides encoding and decoding of machine instructions based on equational specifications. The solver is presented not as pseudo code but as a literate program, which guarantees that the code shown in the paper is the same code that is actually used. Using real code exposes more detail than using pseudocode, but literate-programming techniques help manage the detail, The detail should benefit readers who want to implement their own solvers based on the techniques presented here.
引用
收藏
页码:467 / 487
页数:21
相关论文
共 50 条