[sage-support] Re: output to terminal or to html

2009-11-12 Thread zeliboba
On Nov 12, 5:46 pm, William Stein wrote: > On Thu, Nov 12, 2009 at 8:32 AM, zeliboba wrote: > > > I'd like to use the same code as a script to run it from command line > > and in web interface for worksheet. I found a nice formatting function > > html.table(

[sage-support] output to terminal or to html

2009-11-12 Thread zeliboba
I'd like to use the same code as a script to run it from command line and in web interface for worksheet. I found a nice formatting function html.table(), but it is not suitable for terminal output. my question is: how to check if output will go to worksheet or to terminal? then I can switch outpu

[sage-support] Re: partially evaluate expression

2009-11-12 Thread zeliboba
it looks like what I exactly need, thanks! On Nov 11, 12:13 pm, Burcin Erocal wrote: > Hi Robert, > > On Wed, 11 Nov 2009 02:45:11 -0800 (PST) > > "ma...@mendelu.cz" wrote: > > So my question for developers and experienced users os Sage is: Is > > there a function which converts input like f =

[sage-support] partially evaluate expression

2009-11-11 Thread zeliboba
let's say I have var('Re') f = 0.25 / (log(5.74 / Re^0.9, 10))^2 / 4 I'd like to expand/evaluate all numerical constants and see dependency on Re like f = c1 / log(Re^c2) how to reach this? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@goo

[sage-support] verbose output of sage script sage

2009-10-30 Thread zeliboba
dear all is it possible to have verbose output when execute sage script mode? so one can see not only results of computation, but also input line, similarly to default behavior of R or bash with -xf option.unfortunately I did not find such an option for sage or python. here is some examples (copy

[sage-support] Re: import and global namespace

2009-10-29 Thread zeliboba
hmm... the question was different: "attach" makes variable global, "import" does not. is it bug or feature? On Oct 28, 5:52 pm, William Stein wrote: > On Wed, Oct 28, 2009 at 5:16 AM, zeliboba wrote: > > > dear all > > > in documentation for var()

[sage-support] import and global namespace

2009-10-28 Thread zeliboba
dear all in documentation for var() it is stated "variables ... automatically injected into the global namespace". I'd like to define variable in module and then use it from several scripts, but variable is not exported actually. my prog.sage looks like: from mod import * createVar('A') f = A^2