Skip to content
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

Replace all pexpect-maxima calls in function/orthogonal-polys #22325

Closed
rwst opened this issue Feb 8, 2017 · 20 comments
Closed

Replace all pexpect-maxima calls in function/orthogonal-polys #22325

rwst opened this issue Feb 8, 2017 · 20 comments

Comments

@rwst
Copy link

rwst commented Feb 8, 2017

Now that some functionality of specific orthogonal polys is handled by other than pexpect calls (?, see #17753) let's replace the unneeded calls completely.

There seems to be no reason to preserve the functionality func._maxima_init_evaled_(args) because the same can be had with maxima(func(args, hold=True)) which is also intuitive.

The ticket will also remove pexpect calls from OrthogonalPoly.

Depends on #22326
Depends on #22174

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 7a9eb46

Reviewer: Travis Scrimshaw

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

@rwst rwst added this to the sage-7.6 milestone Feb 8, 2017
@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst
Copy link
Author

rwst commented Feb 8, 2017

@rwst
Copy link
Author

rwst commented Feb 8, 2017

New commits:

43a927b22325: remove all _maxima_init_evaled_; move doctests to _init_

@rwst
Copy link
Author

rwst commented Feb 8, 2017

Dependencies: #22326

@rwst
Copy link
Author

rwst commented Feb 8, 2017

Commit: 43a927b

@rwst
Copy link
Author

rwst commented Feb 8, 2017

Author: Ralf Stephan

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2017

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

76ed92eMerge branch 'develop' into t/22325/replace_all_pexpect_maxima_calls_in_function_orthogonal_polys
648e49822174: Interface expression conversion to gamma() and normalization
e82d2d2Merge branch 'u/rws/interface_expression_conversion_to_gamma___and_normalization' of git://trac.sagemath.org/sage into t/22326/jacobi_p_polynomials_without_pexpect_maxima
445931a22326: native symbolic jacobi_P
164d70922326: fixes
e0bb9cfMerge branch 'u/rws/jacobi_p_polynomials_without_pexpect_maxima' of git://trac.sagemath.org/sage into t/22325/replace_all_pexpect_maxima_calls_in_function_orthogonal_polys
bf11e4822325: finally remove _init()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2017

Changed commit from 43a927b to bf11e48

@rwst
Copy link
Author

rwst commented Feb 9, 2017

Changed dependencies from #22326 to #22326, #22174

@tscrim
Copy link
Collaborator

tscrim commented Feb 9, 2017

comment:9

I am not sure about this change:

diff --git a/src/sage/functions/orthogonal_polys.py b/src/sage/functions/orthogonal_polys.py
index 1421a53..a6fe651 100644
--- a/src/sage/functions/orthogonal_polys.py
+++ b/src/sage/functions/orthogonal_polys.py
@@ -465,8 +412,6 @@ class OrthogonalFunction(BuiltinFunction):
             return self.eval_pari(*args, **kwds)
         elif algorithm == 'recursive':
             return self.eval_recursive(*args, **kwds)
-        elif algorithm == 'maxima':
-            return self._maxima_init_evaled_(*args, **kwds)
 
         return super(OrthogonalFunction,self).__call__(*args, **kwds)
 

as it seems like you are removing functionality to the user. Specifically, you either need to deprecate the algorithm='maxima' input or (IMO better) send it off to Maxima.

@rwst
Copy link
Author

rwst commented Feb 9, 2017

comment:10

Replying to @tscrim:

as it seems like you are removing functionality to the user. Specifically, you either need to deprecate the algorithm='maxima' input or (IMO better) send it off to Maxima.

Right, I intended delegating but did the wrong thing.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2017

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

1c7b67e22326: cosmetics
e04186dMerge branch 'u/rws/jacobi_p_polynomials_without_pexpect_maxima' of git://trac.sagemath.org/sage into t/22325/replace_all_pexpect_maxima_calls_in_function_orthogonal_polys
7a9eb4622325: preserve algorithm='maxima', add doctests

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2017

Changed commit from bf11e48 to 7a9eb46

@rwst
Copy link
Author

rwst commented Feb 9, 2017

comment:12

Actually that never worked. Let's open a ticket for it.

@tscrim
Copy link
Collaborator

tscrim commented Feb 9, 2017

comment:13

Thanks. I agree; we can handle the algorithm issues on a followup.

@tscrim
Copy link
Collaborator

tscrim commented Feb 9, 2017

Reviewer: Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Feb 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants