Ask Your Question

JTS's profile - activity

2023-10-20 13:29:38 +0200 edited question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function (Question edited) Suppose that I have a taylor polynomia

2023-10-19 13:30:14 +0200 commented question Multivariate Pade approximation, recognizing rational function

Let me show my work so far. S.<y> = QQ[] R.<x> = S[] T.<y,x> = PowerSeriesRing(QQ,default_prec=8) U.&

2023-10-18 17:09:03 +0200 edited question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function Suppose that I have a taylor polynomial approximation of

2023-10-18 17:06:56 +0200 edited question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function Suppose that I have a taylor polynomial approximation of

2023-10-18 17:05:41 +0200 edited question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function Suppose that I have a taylor polynomial approximation of

2023-10-18 17:05:22 +0200 edited question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function Suppose that I have a taylor polynomial approximation of

2023-10-18 17:04:20 +0200 asked a question Multivariate Pade approximation, recognizing rational function

Multivariate Pade approximation, recognizing rational function Suppose that I have a taylor polynomial approximation of

2023-10-02 19:56:14 +0200 received badge  Popular Question (source)
2023-09-01 00:16:43 +0200 received badge  Nice Answer (source)
2023-08-31 12:50:40 +0200 answered a question Diagonalisability check Malfunctioning

Your matrix is not symmetric: A = matrix(QQbar, [[2,-1,0],[-1,2,1],[0,-1,2]]) A.is_symmetric()

2023-06-13 15:57:01 +0200 received badge  Notable Question (source)
2023-06-13 15:57:01 +0200 received badge  Popular Question (source)
2022-07-16 18:31:41 +0200 received badge  Nice Answer (source)
2022-07-16 18:14:58 +0200 received badge  Self-Learner (source)
2022-07-16 16:39:16 +0200 answered a question latex for Hasse diagram of poset not properly laid out

Adding dot2tex to the Sage installation, as suggested by FrédéricC and John Palmieri, did work for me and produces Hass

2022-07-10 21:37:58 +0200 edited question latex for Hasse diagram of poset not properly laid out

latex for Hasse diagram of poset not properly laid out The plot method on a poset displays the Hasse diagram in a satisf

2022-07-10 15:03:53 +0200 asked a question latex for Hasse diagram of poset not properly laid out

latex for Hasse diagram of poset not properly laid out The plot method on a poset displays the Hasse diagram in a satisf

2022-06-23 16:03:18 +0200 edited answer taylor series of expression involving modulus of a complex expression

You could expand around t=0 instead, for t = w + 0.1 var('t') bmac = b.substitute(w=t-0.1).taylor(t,0,3) cmac = c.subst

2022-06-23 16:03:01 +0200 answered a question taylor series of expression involving modulus of a complex expression

You could expand around t=0 instead, for t = w + 0. var('t') bmac = b.substitute(w=t-0.1).taylor(t,0,3) cmac = c.substi

2022-06-22 20:25:29 +0200 asked a question Displaying and typesetting partitions

Displaying and typesetting partitions A partition can be viewed as a list or pretty-printed using ascii art. This works

2022-06-21 19:47:32 +0200 received badge  Supporter (source)
2022-06-21 19:44:15 +0200 marked best answer Simplifying factorials, limits, Maxima crash

I am trying to simplify some binomial expressions using Sage.

var('a,n,c,m')
H = binomial(2*m-c,m-c)-binomial(2*m-c,m+1)
Cn = binomial(2*n,n)/(n+1)
Uan = (H.substitute(m=n,c=a+1) + a*H.substitute(m=n-1,c=a))/Cn 
assume(a>0)
assume(n>0)
assume(n,'integer')
assume(a,'integer')
UUan=Uan.full_simplify()
UUan

Now I want the limit of this expression as n -> +Infininty. Maple can do it, it correctly returns

                                                             2                  (-a)
                                                          (a  + 3 a + 4) 2
                                                          --------------------
                                                                   4

I can get Sage to calculate the limit for specific values of a:

limit(UUan.substitute(a=5),n=+Infinity)

However, when I try

limit(UUan,n=+Infinity)

I get an error from the underlying Maxima engine:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-70-59aa81a6cc92> in <module>
----> 1 limit(UUan,n=+Infinity)

~/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sage/calculus/calculus.py in limit(ex, dir, taylor, algorithm, **argv)
   1415     if algorithm == 'maxima':
   1416         if dir is None:
-> 1417             l = maxima.sr_limit(ex, v, a)
   1418         elif dir in dir_plus:
   1419             l = maxima.sr_limit(ex, v, a, 'plus')

~/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sage/interfaces/maxima_lib.py in sr_limit(self, expr, v, a, dir)
    985             elif dir == "minus":
    986                 L.append(max_minus)
--> 987             return max_to_sr(maxima_eval(([max_limit], L)))
    988         except RuntimeError as error:
    989             s = str(error)

~/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.EclObject.__call__ (build/cythonized/sage/libs/ecl.c:8511)()
    836         """
    837         lispargs = EclObject(list(args))
--> 838         return ecl_wrap(ecl_safe_apply(self.obj,(<EclObject>lispargs).obj))
    839 
    840     def __richcmp__(left, right, int op):

~/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:6053)()
    357             raise KeyboardInterrupt("ECL says: {}".format(message))
    358         else:
--> 359             raise RuntimeError("ECL says: {}".format(message))
    360     else:
    361         return ret

RuntimeError: ECL says: BINDING-STACK overflow at size 10240. Stack can probably be resized.
Proceed with caution.

---------------------------------------------------------------------------------------------------------------------------------------------

Is SAGE able to compute this limit? Should i provide other provisos? Is there another approach I should try?

Edit: The following works:

Uan.limit(n=Infinity,dir='+',taylor=True)

so I guess all is well. I do not know if the fact that Maxima throws an exception when the taylor keyword is ommitted is a bug or not. The documentation for limit says

  • "taylor" - (default: False); if True, use Taylor series, which allows more limits to be computed (but may also crash in some obscure cases due to bugs in Maxima).

Maybe this should be amended to indicate that in some cases, taylor=False causes crashes.

2022-06-21 19:44:15 +0200 received badge  Scholar (source)
2022-06-21 15:53:39 +0200 edited answer Simplifying factorials, limits, Maxima crash

The function limit() has a keyword taylor, which might help or hinder. In this case, Uan.limit(n=Infinity,dir='+',taylo

2022-06-21 15:52:32 +0200 answered a question Simplifying factorials, limits, Maxima crash

The function limit() has a keyword taylor, which might help or hinder. In this case, Uan.limit(n=Infinity,dir='+'

2022-06-21 15:47:55 +0200 commented question Simplifying factorials, limits, Maxima crash

++++++++++

2022-06-21 15:37:15 +0200 commented question Simplifying factorials, limits, Maxima crash

Uan.limit(n=Infinity,dir='+',taylor=True) works in this case, in other cases it is better to use taylor=False.

2022-06-21 15:37:02 +0200 commented question Simplifying factorials, limits, Maxima crash

Uan.limit(n=Infinity,dir='+',taylor=True) works in this case, in other cases it is better to use taylor=False.

2022-06-21 15:30:59 +0200 edited question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-21 09:11:05 +0200 edited question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-21 09:11:02 +0200 edited question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-21 08:01:24 +0200 edited question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-21 08:01:05 +0200 edited question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-21 07:33:00 +0200 asked a question Simplifying factorials, limits, Maxima crash

Simplifying factorials, limits, Maxima crash I am trying to simplify some binomial expressions using Sage. var('a,n,c,m

2022-06-15 07:08:13 +0200 received badge  Nice Answer (source)
2022-06-12 17:34:28 +0200 received badge  Self-Learner (source)
2022-06-12 17:34:28 +0200 received badge  Teacher (source)
2022-06-12 17:04:30 +0200 answered a question Incidence algebras, entering elements

Basis elements in the incidence algebra. i.e. a single interval, are added like this: R = posets.YoungDiagramPoset([2,

2022-06-12 16:56:23 +0200 edited question Incidence algebras, entering elements

Incidence algebras, entering elements I have been trying to use incidence algebras, but immediately stumbled on a proble

2022-06-12 16:52:45 +0200 edited question Incidence algebras, entering elements

Incidence algebras, entering elements I have been trying to use incidence algebras, but immediately stumbled on a proble

2022-06-09 19:10:33 +0200 edited question Incidence algebras, entering elements

Incidence algebras, entering elements I have been trying to use incidence algebras, but immediately stumbled on a proble

2022-06-08 21:32:48 +0200 asked a question Incidence algebras, entering elements

Incidence algebras, entering elements I have been trying to use incidence algebras, but immediately stumbled on a proble

2021-11-23 00:42:30 +0200 received badge  Nice Question (source)
2021-11-19 16:44:49 +0200 received badge  Student (source)
2021-11-19 16:26:05 +0200 received badge  Editor (source)
2021-11-19 16:26:05 +0200 edited question Group algebra of permutation group, error

Group algebra of permutation group, error Why does not GroupAlgebra(PermutationGroup([(1,2,3),(2,3,4)]),QQ).center_basi

2021-11-19 16:24:51 +0200 asked a question Group algebra of permutation group, error

Group algebra of permutation group, error Why does not GroupAlgebra(PermutationGroup([(1,2,3),(2,3,4)]),QQ).center_basi

2021-03-12 11:46:23 +0200 commented answer max_symbolic, polynomial expressions, assumptions

Thank you for your answer. I tried restricting the problem to simplifying max of two piecewise linear expressions (hopin

2021-03-11 18:41:47 +0200 asked a question max_symbolic, polynomial expressions, assumptions

max_symbolic, polynomial expressions, assumptions The following works as expected: var('b') with assuming(b>1):