Ask Your Question

lookin03820's profile - activity

2021-11-09 09:04:49 +0200 received badge  Notable Question (source)
2020-05-02 15:27:31 +0200 received badge  Popular Question (source)
2017-01-05 15:42:01 +0200 commented answer How to print equations and numbers on a single line:

sage 6.3 on a mac 10.7.5

2017-01-05 03:06:45 +0200 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 20:40:12 +0200 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.