Content deleted Content added
Optimization; Suggestion of preparing a reverse code and add to the main page |
Respond to my forgetfulness...dc cannot construct strings... |
||
Line 15:
: Just did a small optimization (in code length) to it: <tt>[q]sa[d0=a80~anlbx]16isb572CCB9AE9DB03273lbxq</tt>. Could anyone help writing another dc code to generate that hexadecimal number? I think it will be a good idea to add them, in pair, as an example of string handling in dc which is not yet covered by other examples. [[User:Billyauhk|Billyauhk]] ([[User talk:Billyauhk|talk]]) 08:08, 26 July 2011 (UTC)
: : Sorry but I forgotten that we cannot construct a string in dc...but I have just figured out the way to construct the constant: <tt>(echo -n "0123456789" | xxd -p -u -c 1; echo 0) | dc -"16i0[80?d0!=x*+]dsxx10op"</tt> (for Bash...and using GNU dc where != is accepted). For the string "Wikipedia", the constant is: <tt>30E9C997869D7A6B80</tt> [[User:Billyauhk|Billyauhk]] ([[User talk:Billyauhk|talk]]) 10:51, 26 July 2011 (UTC)
== Original implementation language? ==
|