You haven't set the input field separator to a comma so the whole record is read as a single string, and the %13.0f format is converting just the first part (up to the first comma). The rest of the fields (2 through 6) are empty, and therefore equal 0. Try:...

Your issue is the line for(double i = k; i <= Math.pow(2,thisX); i++) The reason why is because the following code produces the value 8 when the input is 3 Math.pow(2,thisX) If you notice, you have 8 output values which comes from 2^3. You should just be looping 3 times...

function,recursion,lisp,common-lisp,exponents

Yeah, your function has a slight issue with it: :-) You're recursing into threes instead of cubes. You're trying to call cons with one argument (it requires two). You're not changing the value of lst in the recursion, so, since the base case returns lst, you'll always get the initial...

Starting from Sage 6.5, to transform a into b, use the method canonicalize_radical. sage: a.canonicalize_radical() x^(2*y) Note that the four methods simplify_exp, exp_simplify, simplify_radical, radical_simplify, which had the same effect, are being deprecated in favour of canonicalize_radical. See Sage trac ticket #11912. I don't know if there is a...