Comment by BSFU for Sage's preparser (*) turns ^ into the exponentiation...
@eric_g I appreciate your answer. It woks fine.
View ArticleComment by jarkky for Sage's preparser (*) turns ^ into the exponentiation...
sage: N(bin(round(pi*10^16)),digits=15) 3.14159265358979e16 But it looks answer is not in binary though.
View ArticleAnswer by eric_g for I want to get (192,14,100)=>8bit binary of 192 ||...
Sage's preparser (*) turns `^` into the exponentiation symbol (`**`), in order to follow standard math notations: sage: preparse("a=(a
View ArticleHow to convert an integer to fixed length binary string in Sage?
I want to get (192,14,100)=>8bit binary of 192 || 8bit binary of 14 ||8bit binary of 100 => 110000000000111001100100 => 12586596 (equivalent decimal of the 24bits binary sting). I have...
View Article
More Pages to Explore .....