@@ -13441,13 +13441,13 @@ cdef class Expression(Expression_abc):
13441
13441
raise TypeError (" this expression must be a relation" )
13442
13442
return self / x
13443
13443
13444
- def compositional_inverse (self , allow_inverse_multivalued = True , **kwargs ):
13444
+ def compositional_inverse (self , allow_multivalued_inverse = True , **kwargs ):
13445
13445
"""
13446
13446
Find the compositional inverse of this symbolic function.
13447
13447
13448
13448
INPUT:
13449
13449
13450
- - ``allow_inverse_multivalued `` -- (default: ``True``); see example below
13450
+ - ``allow_multivalued_inverse `` -- (default: ``True``); see example below
13451
13451
- ``**kwargs`` -- additional keyword arguments passed to :func:`sage.symbolic.relation.solve`.
13452
13452
13453
13453
.. SEEALSO::
@@ -13468,18 +13468,18 @@ cdef class Expression(Expression_abc):
13468
13468
sage: f.compositional_inverse()
13469
13469
x |--> -sqrt(x)
13470
13470
13471
- When ``allow_inverse_multivalued =False``, there is some additional checking::
13471
+ When ``allow_multivalued_inverse =False``, there is some additional checking::
13472
13472
13473
13473
sage: f(x) = x^2
13474
- sage: f.compositional_inverse(allow_inverse_multivalued =False)
13474
+ sage: f.compositional_inverse(allow_multivalued_inverse =False)
13475
13475
Traceback (most recent call last):
13476
13476
...
13477
- ValueError: inverse is multivalued, pass allow_inverse_multivalued =True to bypass
13477
+ ValueError: inverse is multivalued, pass allow_multivalued_inverse =True to bypass
13478
13478
13479
13479
Nonetheless, the checking is not always foolproof (``x |--> log(x) + 2*pi*I`` is another possibility)::
13480
13480
13481
13481
sage: f(x) = exp(x)
13482
- sage: f.compositional_inverse(allow_inverse_multivalued =False)
13482
+ sage: f.compositional_inverse(allow_multivalued_inverse =False)
13483
13483
x |--> log(x)
13484
13484
13485
13485
Sometimes passing ``kwargs`` is useful, for example ``algorithm`` can be used
@@ -13516,7 +13516,7 @@ cdef class Expression(Expression_abc):
13516
13516
ValueError: base ring must be a symbolic expression ring
13517
13517
"""
13518
13518
from sage.modules.free_module_element import vector
13519
- return vector([self ]).compositional_inverse(allow_inverse_multivalued = allow_inverse_multivalued , ** kwargs)[0 ]
13519
+ return vector([self ]).compositional_inverse(allow_multivalued_inverse = allow_multivalued_inverse , ** kwargs)[0 ]
13520
13520
13521
13521
def implicit_derivative (self , Y , X , n = 1 ):
13522
13522
"""
0 commit comments