[sage-support] Re: test for floats and co.

2023-05-03 Thread Nils Bruin
On Wednesday, 3 May 2023 at 08:58:35 UTC-7 Nils Bruin wrote: However, be careful: sage: A=matrix(RR,2,2,[1,2,3,4]) sage: parent(A).is_exact() True because matrix rings presently aren't aware of inexactness of their base rings. This is something that is considered a bug; see https://github

Re: [sage-support] Re: test for floats and co.

2023-05-03 Thread G. M.-S.
Thanks Nils. I shall try to manage with the information you have given me. (In case you are curious, this is for code aimed at my students.) Guillermo On Wed, 3 May 2023 at 17:58, Nils Bruin wrote: > On Wednesday, 3 May 2023 at 08:21:39 UTC-7 G. M.-S. wrote: > > > Related to a recent discussi

[sage-support] Re: test for floats and co.

2023-05-03 Thread Nils Bruin
On Wednesday, 3 May 2023 at 08:21:39 UTC-7 G. M.-S. wrote: Related to a recent discussion, is there a (simple) way to find whether an expression contains non exact explicit numbers? For symbolic expression you should probably walk the entire expression tree. For sage objects, examining the par