Ask Your Question

lookin03820's profile - activity

2017-01-05 08:42:01 -0500 commented answer How to print equations and numbers on a single line:

sage 6.3 on a mac 10.7.5

2017-01-04 20:06:45 -0500 commented answer How to print equations and numbers on a single line:

Didn't work stuff after "Electron Gyrofrequency=" was not displayed

2017-01-04 13:40:12 -0500 asked a question How to print equations and numbers on a single line:

I am trying to print a string, an equation and a number on the same line using the following form:

 B=var('B')
 fce=var('fce', latex_name='f_{ce}')
 fce=2.80e6 * B
 values={B:1.0e5}
 print "Electron Gyrofrequency=", show(fce) , "= %0.5e" % fce.substitute(values)

However the output does not show as a single line. Any help would be appreciated.