1 | initial version |
If you want a more precise answer, it is really important to provide a concrete example of L
and M
you want to deal with, so that we can test on them and show explicit behaviors.
Anyway, here is a possible way (guessing that a
is a generator of L
and b
is a generator of M
):
sage: L.hom([b], M)
Note that the Python variable b
should be the name of the generator b
of M
. If it is not already the case, you can obtain it by doing first:
sage: M.inject_variables()
or
sage: b = M.gen()
2 | No.2 Revision |
If you want a more precise answer, it is really important to provide a concrete example of L
and M
you want to deal with, so that we can test on them and show explicit behaviors.
Anyway, here Here is a possible way (guessing that a
is a generator of L
and b
is a generator of M
):
sage: L.hom([b], M)
Note that the Python variable b
should be the name of the generator b
of M
. If it is not already the case, you can obtain it by doing first:
sage: M.inject_variables()
or
sage: b = M.gen()