sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.33k stars 453 forks source link

Extend function domain with some symbolic function calls #24832

Open rwst opened 6 years ago

rwst commented 6 years ago

The ticket implements an idea from #24428 to allow symbolic functions to always extend their domain when necessary, in order to return the most information from the call.

Practically if the extend_for() attribute of the Function exists it is called with the function arguments. If returned True then, instead of trying x.func() we try parent.complex_field(x).func().

Component: symbolics

Author: Ralf Stephan

Branch/Commit: u/rws/extend_function_domain_with_some_symbolic_function_calls @ 3bfcc88

Issue created by migration from https://trac.sagemath.org/ticket/24832

rwst commented 6 years ago

Branch: u/rws/extend_function_domain_with_some_symbolic_function_calls

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 6 years ago

Commit: 3bfcc88

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 6 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

3bfcc8824832: add doctest
rwst commented 6 years ago

Author: Ralf Stephan

mkoeppe commented 1 year ago

Branch has merge conflicts