Overview
Comment:Fixed elimination of 0 in xxx(0...) when ... does not start with a digit.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 66c73b422186f324a25eea33ec04a3df89c9bd19e050a01fd51e9ef9e15a9c65
User & Date: geraint@users.sourceforge.net on 2001-04-04 01:03:01.000
Other Links: branch diff | manifest | tags
Context
2001-04-04
08:36:25
Restuctured to be more logical.
Data is now in columns to be compatible with MTT.
check-in: 2a56dd249c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
01:03:01
Fixed elimination of 0 in xxx(0...) when ... does not start with a digit. check-in: 66c73b4221 user: geraint@users.sourceforge.net tags: origin/master, trunk
2001-04-03
14:51:30
Equivalent to the c pow function (computes x^y) check-in: a0c19a9a56 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
147
148
149
150
151
152
153
154

155
156
157
158
159
160
161
147
148
149
150
151
152
153

154
155
156
157
158
159
160
161







-
+







    sed 's/300\-1\([\,\)]\)/299\1/g'		       	       		|\
    sed 's/400\-1\([\,\)]\)/399\1/g'			       		|\
    sed 's/500\-1\([\,\)]\)/499\1/g'			       		|\
    sed 's/600\-1\([\,\)]\)/599\1/g'			       		|\
    sed 's/700\-1\([\,\)]\)/699\1/g'			       	       	|\
    sed 's/800\-1\([\,\)]\)/799\1/g'			       		|\
    sed 's/900\-1\([\,\)]\)/899\1/g'			       		|\
    sed 's/\([(,]\)0\([^,)]\)/\1\2/g'
    sed 's/\([(,]\)0\([0-9]\)/\1\2/g'
};

fix_pow ()
{
    # matches number^number where number is one or more digits and one or zero decimal points
    # converts to pow (number, number)
    sed 's/\([0-9]*\)\(\.\)\{0,1\}\([0-9]*\)\^\([0-9]*\)\(\.\)\{0,1\}\([0-9]*\)/pow \(\1\2\3,\4\5\6\)/g'

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]