diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-12 18:11:41 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-12 18:11:41 +0100 |
commit | 5ede63843485a9d6078bfe6b628c4854115368d7 (patch) | |
tree | e18474f8bbd21a58dbaa50987b14000ced84a352 /src/lsq_funcs.mac | |
parent | 3593693771e4ea67334e5dc0445bc47179ac8248 (diff) |
finally get string processing right - but not pretty
Diffstat (limited to 'src/lsq_funcs.mac')
-rw-r--r-- | src/lsq_funcs.mac | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/src/lsq_funcs.mac b/src/lsq_funcs.mac index 671aae2..0c7b7cd 100644 --- a/src/lsq_funcs.mac +++ b/src/lsq_funcs.mac @@ -14,15 +14,27 @@ y : y_unrot * cos(c_tilt) - x_unrot * sin(c_tilt)$ */ x_expand : trigexpand(x)$ y_expand : trigexpand(y)$ -sprint("mac_x = ", string(subst(pow, "^", x_expand)))$ -sprint("mac_y = ", string(subst(pow, "^",y_expand)))$ -sprint("mac_x_dc_view = ", string(subst(pow, "^",diff(x_expand, c_view))))$ -sprint("mac_x_dc_nick = ", string(subst(pow, "^",diff(x_expand, c_nick))))$ -sprint("mac_x_dscale = ", string(subst(pow, "^",diff(x_expand, scale))))$ -sprint("mac_x_dk0 = ", string(subst(pow, "^",diff(x_expand, k0))))$ -sprint("mac_x_dk1 = ", string(subst(pow, "^",diff(x_expand, k1))))$ -sprint("mac_y_dc_view = ", string(subst(pow, "^",diff(y_expand, c_view))))$ -sprint("mac_y_dc_nick = ", string(subst(pow, "^",diff(y_expand, c_nick))))$ -sprint("mac_y_dscale = ", string(subst(pow, "^",diff(y_expand, scale))))$ -sprint("mac_y_dk0 = ", string(subst(pow, "^",diff(y_expand, k0))))$ -sprint("mac_y_dk1 = ", string(subst(pow, "^",diff(y_expand, k1))))$ +sprint("mac_x =",string(subst(pow, "^", x_expand)),";"," +")$ +sprint("mac_y = ", string(subst(pow, "^",y_expand)),";"," +")$ +sprint("mac_x_dc_view = ", string(subst(pow, "^",diff(x_expand, c_view))),";"," +")$ +sprint("mac_x_dc_nick = ", string(subst(pow, "^",diff(x_expand, c_nick))),";"," +")$ +sprint("mac_x_dscale = ", string(subst(pow, "^",diff(x_expand, scale))),";"," +")$ +sprint("mac_x_dk0 = ", string(subst(pow, "^",diff(x_expand, k0))),";"," +")$ +sprint("mac_x_dk1 = ", string(subst(pow, "^",diff(x_expand, k1))),";"," +")$ +sprint("mac_y_dc_view = ", string(subst(pow, "^",diff(y_expand, c_view))),";"," +")$ +sprint("mac_y_dc_nick = ", string(subst(pow, "^",diff(y_expand, c_nick))),";"," +")$ +sprint("mac_y_dscale = ", string(subst(pow, "^",diff(y_expand, scale))),";"," +")$ +sprint("mac_y_dk0 = ", string(subst(pow, "^",diff(y_expand, k0))),";"," +")$ +sprint("mac_y_dk1 = ", string(subst(pow, "^",diff(y_expand, k1))),";"," +")$ |