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.Sun, 24 May 2020 18:29:34 +0200The in-commandhttps://ask.sagemath.org/question/51538/the-in-command/ Hello,
I tried using
Amat=matrix(ZZ,1,1,3)
3 in Amat
but get false.
Have also tried
matrix(ZZ,1,1,3) in Amat
Any suggestions would be highly appreciated. FredrikAaSun, 24 May 2020 18:29:34 +0200https://ask.sagemath.org/question/51538/check if the result is a real numberhttps://ask.sagemath.org/question/8950/check-if-the-result-is-a-real-number/I get several results and want to check, which one is a real number. From trial and error, I can see that maxSol[2][x] is the only plausable solution.
Is there something like isReal()?
my attempt (don't laugh) ;)
for i in maxSol:
print RealField(50)(i)
where I obviously get:
TypeError: Unable to convert x (='.....disiFri, 04 May 2012 12:39:24 +0200https://ask.sagemath.org/question/8950/polynomial ring instance checkhttps://ask.sagemath.org/question/8644/polynomial-ring-instance-check/Hi there, folks. How do i check if something is an instance of a polynomial ring (univariate or multivariate)?araichevWed, 18 Jan 2012 17:32:10 +0100https://ask.sagemath.org/question/8644/