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: 58203f3d83199e0779ef9a9611a1dbcc396fe77268582323dba9b4decd1ddc25
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: 0ea7b213e7 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: 58203f3d83 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: bc591b3819 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 ]