ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 26 Nov 2018 10:58:46 +0100How to avoid "flags"?https://ask.sagemath.org/question/44438/how-to-avoid-flags/ I read that utilizing flags is deprecated in modern programming. Can someone explain me how to avoid it when I want to go out of multiple "for" loops?logomathMon, 26 Nov 2018 10:58:46 +0100https://ask.sagemath.org/question/44438/Way to make default output numerical not symbolic?https://ask.sagemath.org/question/9268/way-to-make-default-output-numerical-not-symbolic/Is there a way I can set a flag so sage's default output is numerical instead of symbolic?
I'm looking to set a flag so I can do something like this:
sage: vector([cos(rd(40)),sin(rd(40))])*60
(60*cos(2/9*pi), 60*sin(2/9*pi))
sage: set numerical=true
sage: vector([cos(rd(40)),sin(rd(40))])*60
(45.9626665871387, 38.5672565811924)
I know that I can use n(generic_varible) or generic_variable.n() but when I'm doing my homework it's very time consuming, because it involves either a lot of switching or a lot of writing.
Eman27Sun, 26 Aug 2012 22:08:33 +0200https://ask.sagemath.org/question/9268/