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

Symbolic elliptic integrals #15046

Closed
eviatarbach opened this issue Aug 14, 2013 · 47 comments
Closed

Symbolic elliptic integrals #15046

eviatarbach opened this issue Aug 14, 2013 · 47 comments

Comments

@eviatarbach
Copy link
Contributor

This ticket is for making the elliptic integrals symbolic, including arbitrary-precision numeric evaluation.

Defect because elliptic_e(2.5,2.5).n() throwing an ECL error is fixed with it.

CC: @burcin @paulmasson

Component: symbolics

Keywords: special, functions

Author: Eviatar Bach, Ralf Stephan

Branch/Commit: fc1ac57

Reviewer: Karl-Dieter Crisman, Travis Scrimshaw

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

@eviatarbach eviatarbach added this to the sage-6.1 milestone Aug 14, 2013
@eviatarbach
Copy link
Contributor Author

Attachment: trac15046.patch.gz

@eviatarbach
Copy link
Contributor Author

comment:2

Need to get full doctest coverage.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@rwst
Copy link
Contributor

rwst commented Jul 24, 2014

Branch: u/rws/symbolic_elliptic_integrals

@rwst
Copy link
Contributor

rwst commented Jul 24, 2014

Commit: a922acc

@rwst
Copy link
Contributor

rwst commented Jul 24, 2014

Author: Eviatar Bach

@rwst
Copy link
Contributor

rwst commented Jul 24, 2014

comment:6

Updated to 6.3beta6:

3 items had failures:
   1 of   4 in sage.functions.special.elliptic_j.EllipticEC
   1 of   2 in sage.functions.special.elliptic_j.EllipticEC._derivative_
   1 of   4 in sage.functions.special.elliptic_j.EllipticPi

New commits:

a922acc15046: Making elliptic integrals symbolic

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 25, 2014

Changed commit from a922acc to e950c33

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 25, 2014

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

67d51c915046: corrections to previous patch to pass doctests
1b3320715046: accept algorithm param for all evalf functions
e950c3315046: add all doctests; fix latex; augment documentation

@rwst
Copy link
Contributor

rwst commented Jul 25, 2014

Changed keywords from none to special, functions

@rwst
Copy link
Contributor

rwst commented Jul 25, 2014

comment:8

This is now ready for review.

BTW, is Maxima not able to solve the resp. integrals?

sage: integrate(sqrt(1 - m*sin(x)^2), x, 0, phi)
sage: integrate(sqrt(1 - m*sin(x)^2), x, 0, pi/2)
sage: integrate(1/sqrt(1 - m*sin(x)^2), x, 0, phi)

@rwst
Copy link
Contributor

rwst commented Jul 25, 2014

Changed author from Eviatar Bach to Eviatar Bach, Ralf Stephan

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2014

Changed commit from e950c33 to 5547215

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 5, 2014

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

5547215Merge branch 'develop' into t/15046/symbolic_elliptic_integrals

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 13, 2014

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

829da64Merge branch 'develop' into t/15046/symbolic_elliptic_integrals

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 13, 2014

Changed commit from 5547215 to 829da64

@kcrisman
Copy link
Member

comment:23

I'd like to look at this - can you confirm that you are giving positive review to Eviatar's original changes? If so, I think I only need to give this one more good look and try out some more numerical things to confirm it's ready to go.

By the way, I note some inconsistency (probably due to my relative unfamiliarity with elliptic integrals). I see

This returns the value of the "incomplete elliptic integral of the
    second kind"

in two places, EllipticE and EllipticEU. Since the Maxima manual clarifies the relationship, we should too. Indeed, there is a bunch of stuff in here which assumes familiarity with syntax for the Jacobi functions dn or sn or the rest which should be clarified. Maybe a link in internal documentation to that file, or perhaps some Wikipedia refs would also not be amiss? Just throwing out doc ideas, as long as we implement a little more it will be fine.

@kcrisman
Copy link
Member

Changed dependencies from #14996 to none

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2015

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

9a62ed2Merge branch 'develop' into t/15046/symbolic_elliptic_integrals
27278e315046: add refs

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2015

Changed commit from b3b2e8c to 27278e3

@rwst rwst modified the milestones: sage-6.7, sage-6.8 Jun 17, 2015
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 11, 2016

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

6138b32Merge branch 'develop' into t/15046/symbolic_elliptic_integrals
fa4fd69fix doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 11, 2016

Changed commit from 27278e3 to fa4fd69

@rwst rwst modified the milestones: sage-6.8, sage-7.3 Jun 11, 2016
@rwst
Copy link
Contributor

rwst commented Jun 12, 2016

comment:29

Sage startup time increased by 0.3%, why?

@tscrim
Copy link
Collaborator

tscrim commented Jun 15, 2016

comment:30

I am pretty sure that is from a bad startup time test batch. Also, could you break the longer lines to ~80 characters?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 15, 2016

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

bebff6cMerge branch 'develop' into t/15046/symbolic_elliptic_integrals
e4b089a15046: cosmetics

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 15, 2016

Changed commit from fa4fd69 to e4b089a

@rwst
Copy link
Contributor

rwst commented Jun 15, 2016

comment:32

I didn't break all the lines. If you insist I'll try again. Anything else?

@tscrim
Copy link
Collaborator

tscrim commented Jun 15, 2016

comment:33

I would prefer if the doctest output lines were split, probably 1 term per line should be good (or more if they are shorter). Once you do that, you can set a positive review on my behalf

@tscrim
Copy link
Collaborator

tscrim commented Jun 15, 2016

Reviewer: Karl-Dieter Crisman, Travis Scrimshaw

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 15, 2016

Changed commit from e4b089a to fc1ac57

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 15, 2016

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

fc1ac5715046: break doctest output lines

@rwst
Copy link
Contributor

rwst commented Jun 15, 2016

comment:35

I couldn't break lines at abc*xyz (bug?) but it worked at abc - xyz and abc + xyz so I succeeded in most of the cases.

@tscrim
Copy link
Collaborator

tscrim commented Jun 15, 2016

comment:36

Thanks. What you did is exactly what I was looking for and plenty good. The reason why abc*xyz cannot split is because there is no whitespace around the operator (and newlines get counted as whitespace, which the doctest framework ignores all after one whitespace char).

@vbraun
Copy link
Member

vbraun commented Jun 16, 2016

Changed branch from u/rws/symbolic_elliptic_integrals to fc1ac57

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

6 participants