ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 08 Jan 2019 15:20:27 -0600How to format posts on this forum?http://ask.sagemath.org/question/44962/how-to-format-posts-on-this-forum/Is there a description of features used to format posts on this forum? Does it use Markdown? In particular, I am interested in rules for typing logs of interaction with Sage.EvgenyMTue, 08 Jan 2019 15:20:27 -0600http://ask.sagemath.org/question/44962/How to view multi-line output?http://ask.sagemath.org/question/37684/how-to-view-multi-line-output/I type `expand( (a+b)**20) ` but I want to see it in a single page, not as a single line?
The same for `88**800`
`I don't want to uncheck the typesetting box.`
So is there a function that can display the output in sage's `raw` format.
What is this format, and how do I see it?
I know show() and view() which show the output in the latex format, but not sage's output format.
screened00Wed, 24 May 2017 08:47:58 -0500http://ask.sagemath.org/question/37684/How to print equations and numbers on a single line:http://ask.sagemath.org/question/36183/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.lookin03820Wed, 04 Jan 2017 13:17:37 -0600http://ask.sagemath.org/question/36183/Show full (non-scientific-notation) of very small decimal?http://ask.sagemath.org/question/32912/show-full-non-scientific-notation-of-very-small-decimal/When I run:
1/(2^70).n()
Sage returns:
8.47032947254300e-22
How can I get it to instead show:
.000000000000000000000847032947254300notfedTue, 29 Mar 2016 21:09:23 -0500http://ask.sagemath.org/question/32912/present sage output as "normal" mathematicshttp://ask.sagemath.org/question/30975/present-sage-output-as-normal-mathematics/ Hello,
I am new to sage and I have the following question. Here is a minimal working example:
x,y=var('x,y')
f=x^2-3*y; f
f.diff(x)
g=f.diff(x);g
The output of it is 2*x, but I wonder if there is a way to say to sage that I want to present the output g=2x.
Thanks in advanceYorgosSun, 22 Nov 2015 16:47:51 -0600http://ask.sagemath.org/question/30975/Change width of rich text cells in notebookhttp://ask.sagemath.org/question/30176/change-width-of-rich-text-cells-in-notebook/With the default settings, cells in the notebook take the whole width of the window. This is annoying for rich text cells with long paragraphs, as they get very hard to read. Also if you are using LaTeX math mode, the equations will be centered on the window, which looks bad if you only have rather short lines of text surrounding them.
I would like to know if there is a way to restrict the width of the rich text cells, such that lines of text get broken earlier and readability is improved. The settings contain an option for number of word wrap columns, but it seems to have no effect whatsoever on my worksheets.tosterWed, 21 Oct 2015 03:46:45 -0500http://ask.sagemath.org/question/30176/How do i display a derivative using view()http://ask.sagemath.org/question/29671/how-do-i-display-a-derivative-using-view/ I can currently display the form of an integral in latex using:
f(x) = x + x^2
view( integral(f(x),x, hold=True) ) #displays the form of the derivative
But i can't figure out how to do it for a derivative:
f(x) = x + x^2
view( derivative(f(x),x, hold=True) ) #fails
view( derivative(f(x),x) ) # takes derivative then displays answer instead of the problem
Is their any easy way to do this? If not, whats the recommended way to fake it (inline latex etc)?gsonnenfFri, 02 Oct 2015 03:17:12 -0500http://ask.sagemath.org/question/29671/How to format questions in this forumhttp://ask.sagemath.org/question/26009/how-to-format-questions-in-this-forum/ Sorry, I am new to this forum but already find it very helpful. I noticed that most posts have nicely formatted code snippets, but I couldn't figure out how to do it. When cut-and-paste from notebook() my code looks awful and unformatted.
Thanks for any suggestions.ikolMon, 02 Mar 2015 19:10:08 -0600http://ask.sagemath.org/question/26009/Formatting Plots (list_plot)http://ask.sagemath.org/question/25940/formatting-plots-list_plot/ Hi All,
Sorry if this is going to be a silly question, but being new to Sage, I am struggling to find answers. I am creating a plot using list_plot (its a zip of two lists). Actually, I have 2 plots overlaid, which works fine.
I just can't figure out how to format the plot. I want to be in control of:
* Scales of axis (e.g. my x-axis is 0-360, but the divisions by default are in 50s. I want to show 0/90/180/270/360)
* the divisions of th Y axis, say every 500. Can you control both major and minor ticks?
* The linestyle of both individual plots
So I am just unsure how to do this formatting, especially with list_plot(), as all the documentation I have found is based on just plot()
Thanks in advance.j0nrThu, 26 Feb 2015 04:58:20 -0600http://ask.sagemath.org/question/25940/how to re-order factorshttp://ask.sagemath.org/question/25837/how-to-re-order-factors/ I have
x,y, dx, dy= var("x, y, dx, dy");
def iD(f): return diff(f, x)*dx + diff(f,y)*dy;
`iD(x^3*y^5)` returns
5*dy*x^3*y^4 + 3*dx*x^2*y^5
is there a way to have it return the differentials always at the end as in
5*x^3*y^4*dy + 3*x^2*y^5*dx
thank you
userXSun, 15 Feb 2015 16:41:17 -0600http://ask.sagemath.org/question/25837/How to delete blank text cellshttp://ask.sagemath.org/question/25299/how-to-delete-blank-text-cells/When I create a text cell and then click "Cancel Changes", the text cell does not delete and it stays taking up extra space in the notebook. Has anyone else encountered this? If so, then how do I go about deleting the extra blank text cells created?NahsiNThu, 18 Dec 2014 21:14:35 -0600http://ask.sagemath.org/question/25299/Problem outputting inequalitieshttp://ask.sagemath.org/question/10640/problem-outputting-inequalities/The following code :
x, y, z = var('x, y, z')
x < y < z
outputs :
x < y
but the "< z" seems to be taken into account, as in :
x, y, z = var('x, y, z')
x = 1; y = 2; z = 0
x < y < z
which prints "False".
Analogous behavior with :
x, y, z = var('x, y, z')
# x = 1; y = 0; z = 0;
x < y or x < z
Is there a way to make Sage prints the entire expression ?
It seems like a bug when printing expression containing multiple inequalities.Eric GaulMon, 21 Oct 2013 01:43:27 -0500http://ask.sagemath.org/question/10640/