Ask Your Question

zzzwz's profile - activity

2023-04-12 01:26:53 +0200 received badge  Notable Question (source)
2023-04-12 01:26:53 +0200 received badge  Popular Question (source)
2020-07-27 07:08:45 +0200 received badge  Student (source)
2020-07-26 21:18:29 +0200 asked a question Check if a symbolic polynomial is positive

Is there a way to check if a symbolic polynomial has all positive coefficients?

something like, (x^2+y+2xy).is_positive() = True (x+y-xy).is_positive()=False?

2018-05-10 23:45:41 +0200 asked a question coxeter3 package installed but cannot use

I want to use the spkg 'coxeter3', and I installed it successfully because it shows up under "installed_packages()".

Here's my code:

def MuL(C):
W = CoxeterGroup(C, implementation='coxeter3')
List=[]
for u in W:
    U = (W(v) for v in W.bruhat_interval(u, W.long_element()))
    next(U)
    for v in U:
        ldiff = v.length()-u.length()-1
        if is_even(ld):
            p = W.kazhdan_lusztig_polynomial(u, v)
            if p[ld//2] != 0:
                List += [[u,v]]
return List

(ref: cannot post a link, but the code is copied from David Vogan)

I run' MuL(["A",4]) ' for example:

<ipython-input-11-10e92b1812f5> in <module>()

----> 1 MuL(["A",Integer(4)])

<ipython-input-10-cb3068dc75a6> in MuL(C)

1 def MuL(C):
----> 2     W = CoxeterGroup(C, implementation='coxeter3')
3     List=[]
4     for u in W:
5         U = (W(v) for v in W.bruhat_interval(u, W.long_element()))

/Applications/SageMath-8.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
    141             from sage.libs.coxeter3.coxeter_group import CoxeterGroup
    142         except ImportError:
--> 143             raise RuntimeError("coxeter3 must be installed")
    144         else:
    145             return CoxeterGroup(cartan_type)

RuntimeError: coxeter3 must be installed

what should I do to fix it?

Note:

mac os

spkg was installed not in terminal using (!sage -i coxeter3)

I used Jupiter to run the code but the same error appears using shell