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
Doctest fix for: very slow taylor expansion for composite functions #14878
Comments
comment:2
Being able to apply functions to power series would be useful. For anyone looking to implement this, note that flint can now natively evaluate elementary functions over |
comment:3
some timings:
|
This comment has been minimized.
This comment has been minimized.
Replying to @fchapoton:
GiNaC's series expansion code seems to be designed for very small orders only. It is incredibly inefficient otherwise:
Judging by the number of calls to I think that's the heart of the problem, and the difference between the timings with sage and with ginsh is pynac overhead (which should of course be minimized, but only costs a constant factor). |
Branch: u/chapoton/14878 |
Commit: |
New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed commit from |
Changed branch from u/chapoton/14878 to none |
comment:12
branch transfered to #20017 |
comment:13
The relevant Pynac ticket is pynac/pynac#116 |
Upstream: Reported upstream. Developers acknowledge bug. |
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, in a later stable release. |
Dependencies: pynac-0.7.0 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
Changed dependencies from pynac-0.7.0 to #21827 |
Reviewer: Frédéric Chapoton |
comment:20
ok, looks good to me. Thanks for your work. Please add your name as author. |
Author: Ralf Stephan |
Changed upstream from Fixed upstream, in a later stable release. to none |
comment:21
Thanks too. |
Changed branch from u/rws/very_slow_taylor_expansion_for_composite_functions to |
Pynac-0.7.0 uses Flint to get univariate series expansions. For comparison,
Extensive tests are added with #21730 under
tests/
. Pre-Pynac 0.7.0 the tests need 11s vs 0.2s with pynac-0.7.0.Previous ticket description:
The following
takes something like 30s, which seems a bit too much. Maybe there is some bottleneck somewhere ?
On the other hand,
is faster, but not lightning fast.
In the same spirit, one could try
It would be good if one could apply symbolic functions to power series and get power series when possible.
Depends on #21827
Component: symbolics
Keywords: taylor expansion, symbolic function
Author: Ralf Stephan
Branch/Commit:
ebaf2c4
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/14878
The text was updated successfully, but these errors were encountered: