Mhh, interesting.
In the REPL it works:
A=matrix([[0,0,0,0],[1/2,0,0,0],[0,1/2,0,0],[0,0,1,0]])*AA.one()
ok
and:
sage: A.parent().is_exact()
True
But an other problem happens:
The class "RungeKutta" (the parent class of RK4) as a test:
class RungeKutta(SageObject):
def __init__(self,A,B,Title,C=[]):
if not A.parent().is_exact():
<raise an Exception">
and I get the exception, which seems to mean that, seen from the
RungeKutta class the parent af A is not exact.
Then putting a
print(A.parent())
just before the test in the constructor of RungeKutta, I get:
Full MatrixSpace of 4 by 4 dense matrices over Real Double Field
which, for me, is very surprising... why ?
Thank you!
thierry
Le 21/04/2025 à 11:05,
pedrito...@gmail.com a écrit :
> Hi,
> I would do
> A=matrix([[0,0,0,0],[1/2,0,0,0],[0,1/2,0,0],[0,0,1,0]])*AA.one()
> B=vector([1/6,2/6,2/6,1/6])*AA.one()
> Best, Pedro
>
> El lun, 21 abr 2025 a las 10:35, Thierry Dumont (<tdu...@math.univ-
>
lyon1.fr <mailto:
tdu...@math.univ-lyon1.fr>>) escribió:
> <mailto:
sage-support%2Bunsu...@googlegroups.com>.
>
lyon1.fr <
https://groups.google.com/d/msgid/sage-
> support/9fbe6b5b-1bd1-4bf2-bc66-ee0ff7343826%
40math.univ-lyon1.fr>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
sage-support...@googlegroups.com <mailto:
sage-
>
support+u...@googlegroups.com>.
> CAOAJP6qRM47LOaFx_nQhmubGELzfj_f8ASkQfP%3D5aZkG2DOSdA%
40mail.gmail.com
> <
https://groups.google.com/d/msgid/sage-support/
> CAOAJP6qRM47LOaFx_nQhmubGELzfj_f8ASkQfP%3D5aZkG2DOSdA%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.