-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symbolic function args prevent forced conversion of result to numeric #17953
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
Author: Ralf Stephan |
comment:5
Hello, First of all, I think that the content of the branch is ok (I am running the test right now). But I found the following behavior weird
In my opinion, a function should have a well defined domain and range. In some cases, the function preserves some subset. Like the function Vincent |
comment:6
|
comment:9
Simpler way of doing
|
comment:10
Replying to @videlec:
True. Not worth a commit however. |
comment:11
Replying to @videlec:
I tend to agree, but the present ticket is a step in the right direction in any case: it fixes some of the issues without making it harder to improve things later on. |
Reviewer: Marc Mezzarobba |
Changed branch from u/rws/inconsistency_in_returned_type_of_builtinfunction_result to |
It is generally preferred that the returned result type matches the argument type when calling a builtin function. For example this is as expected:
but this is not:
An explanation could be that
factorial
andexp
derive fromGinacFunction
.CC: @jdemeyer
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
adc230d
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/17953
The text was updated successfully, but these errors were encountered: