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.Tue, 15 Sep 2020 01:40:53 +0200Coefficient of Polynomial Function in a loophttps://ask.sagemath.org/question/53457/coefficient-of-polynomial-function-in-a-loop/ Hello so I am using the .coefficient function to extract the coefficient of a monomial given some polynomial. For example, 3x^(2).coefficient(x^(2)) is 3.
R.<x,y,z,w> = QQ[]
List1= [x^(2), y^(2),z^(2)]
List2= [x^(2)+y^(2)+z^(2), 3*x^(2),4*y^(2)]
List3=[]
For example if I do List2[0].coefficient(List1[0]), Sage immediately outputs 1. However, when I try to run it through all of List1, for some reason, the runtime seems to go forever so I feel I am doing something wrong. Even if I restrict to only the first term in List2, the runtime is very long and doesn't stop. Am I doing something wrong? In the code below, it should only run through 3 terms.
i=0
while i<len(List1):
Result=List2[0].coefficient(List1[i])
List3.append(Result)
i+=1whatupmattTue, 15 Sep 2020 01:40:53 +0200https://ask.sagemath.org/question/53457/error in creating relocatable "runtime binaries only"https://ask.sagemath.org/question/37690/error-in-creating-relocatable-runtime-binaries-only/If I clone github.com/sagemath/binary-pkg.git, change branch from develop to master in sage.yaml, and run
$ export PACKAGE="Runtime binaries only"
$ make bdist-sage-linux
I get error messages in stage-sage saying
ERROR:root:At b'.../local/share/doc/sage/html/en/reference/calculus/sage/calculus/ode.htmlX\x1e'
ERROR:root:path terminator b'\x1e' not allowed in .../local/share/doc/sage/doctrees/ca/intro/environment.pickle
What am I doing wrong? Or should I file a bug report?
Or where can I find documentation on what commands I can run to remove unnecessary files? (E.g. I'd expect that some directories could be deleted, and that some binaries could be stripped.)
Thanks!millermjThu, 25 May 2017 03:51:55 +0200https://ask.sagemath.org/question/37690/Know if Sagemath is still workinghttps://ask.sagemath.org/question/26432/know-if-sagemath-is-still-working/Sometimes I have to do some works in Sagemath that takes some time, like 3 or 4 minutes, but after a time, I don't know if Sagemath let the work or is still working. Someone knows a way to know if Sagemath is working after certain time that doesn't use measuring time? MonsieurGaloisThu, 02 Apr 2015 23:30:53 +0200https://ask.sagemath.org/question/26432/