Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Browsing latest articles
Browse All 4 View Live

Comment by BSFU for Sage's preparser (*) turns ^ into the exponentiation...

@eric_g I appreciate your answer. It woks fine.

View Article



Comment 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 Article

Answer 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 Article

How 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
Browsing latest articles
Browse All 4 View Live




Latest Images