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.Thu, 07 Dec 2017 00:09:09 +0100How to truncate a power series in two variables?https://ask.sagemath.org/question/39983/how-to-truncate-a-power-series-in-two-variables/I would like to truncate power-series by setting $y$ to 0, in order to express $y = x^3 - xy^2$ as a power series in $x$ by recursively plugging in the equation for $y$, then truncating.
R.<x, y> = PowerSeriesRing(QQ, default_prec = 20)
f = x^3 + x*y^2
j = f(x, f(x, f(x, f(x, f(x,y))))).expand()
j + O(y)
---------------------------------------------------------------------------
ArithmeticError Traceback (most recent call last)
<ipython-input-20-fe9380f2a091> in <module>()
----> 1 j + O(y)
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/rings/big_oh.py in O(*x, **kwds)
154 elif hasattr(x, 'O'):
155 return x.O(**kwds)
--> 156 raise ArithmeticError("O(%s) not defined" % (x,))
ArithmeticError: O(y) not defined
I have found that other variants, such as` j + O(x, y)^{31}`, `j.truncate(31)`, and `j + R.O(31)` also do not work. tzeentchThu, 07 Dec 2017 00:09:09 +0100https://ask.sagemath.org/question/39983/typeset large matrixhttps://ask.sagemath.org/question/10653/typeset-large-matrix/I've got a matrix. It is only 5×5 elements, but the entries themselves are pretty large polynomials. I'd like to see them in a typeset fashion, with scrolling instead of line breaks since line breaks break the visual structure. However, the notebook won't display the whole output but truncate it instead. And the `full_output.txt` won't get typeset.
I've [read in the sage-support archive](http://osdir.com/ml/sage-support/2009-10/msg01882.html) that at least 2009 the only way to increase the truncation limit requires rebuilding sage. Not a thing to look forward to. But perhaps things have changed, and there is a way to raise the limit without recompiling these days. Or there is a way to typeset `full_output.txt`. Or there is some fancy external matrix viewer to browse large data in a simple way. Or something to call `latex` from the notebook and open the resulting PDF in the browser. Anything like this?MvGThu, 24 Oct 2013 12:37:58 +0200https://ask.sagemath.org/question/10653/How do I display the full output that includes graphics?https://ask.sagemath.org/question/8034/how-do-i-display-the-full-output-that-includes-graphics/<h1>Background</h1>
I am working in the notebook GUI.
I have code that produces graphics (`.png` files) to display arrays with colors satisfying certain combinatorial criteria. When the output gets too long, `Sage` returns the message
WARNING: Output truncated!
full_output.txt
The `.txt` file contains some `html` code, but doesn't display in a web browser.
<h1>Question</h1>
How do I see my graphical arrays?
Sammy BlackWed, 30 Mar 2011 20:59:24 +0200https://ask.sagemath.org/question/8034/How do I fix Warning: Output Truncated?https://ask.sagemath.org/question/8359/how-do-i-fix-warning-output-truncated/Below is my code step by step for using Euler's Method to approximate a solution of a system. It will work when n = 10, but not when n = 100 or 1000. How can I fix it so that the output isn't truncated. Thanks!
# Define RR to be the real numbers, rounding to the nearest number, with 25 bits of precision
RR = RealField(25,rnd='RNDN')
# Define t,x,y to be numbers in RR
t,x,y = PolynomialRing(RR,3,"txy").gens()
# Define the system of equations
firsteq = y
secondeq = -x - x^3/6 + x^5/120 - x^7/5040 + x^9/362880
# Define parameters
t0 = 0
x0 = 0
y0 = 2
h = 1/4
n = 10
t1 = t0 + n*h
# Plot the x(t) and y(t) graphs
eulers_method_2x2_plot(firsteq , secondeq, t0, x0, y0, h, t1)ambellinaWed, 05 Oct 2011 20:20:25 +0200https://ask.sagemath.org/question/8359/