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

Allow giac algorithm in solve #23136

Closed
mforets mannequin opened this issue Jun 4, 2017 · 15 comments
Closed

Allow giac algorithm in solve #23136

mforets mannequin opened this issue Jun 4, 2017 · 15 comments

Comments

@mforets
Copy link
Mannequin

mforets mannequin commented Jun 4, 2017

To allow the giac interface as an optional keyword of the solve function.

CC: @slel @tscrim

Component: calculus

Keywords: solve, giac

Author: Frédéric Chapoton

Branch/Commit: 57c0ee7

Reviewer: Travis Scrimshaw

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

@mforets mforets mannequin added this to the sage-8.0 milestone Jun 4, 2017
@mforets mforets mannequin added c: calculus labels Jun 4, 2017
@mforets
Copy link
Mannequin Author

mforets mannequin commented Jun 4, 2017

comment:1

Here are some tests:

involving the unknown as exponent:

sage: solve((2/3)^x-2, x)
[3^x == 2^(x - 1)] # not explicit x = ..
sage: giac('solve((2/3)^x-2, x)')
list[ln(2)/(ln(2)-ln(3))]  # ok

from #3745:

sage: sage: solve((sin(x) - 8*cos(x)*sin(x))*(sin(x)^2 + cos(x)) - (2*cos(x)*sin(x) - sin(x))*(-2*sin(x)^2 + 2*cos(x)^2 - cos(x)), x) 
[x == pi, x == 1/2*pi, x == 0]  # wrong
sage: giac('solve((sin(x) - 8*cos(x)*sin(x))*(sin(x)^2 + cos(x)) - (2*cos(x)*sin(x) - sin(x))*(-2*sin(x)^2 + 2*cos(x)^2 - cos(x)), x)')
list[-2*atan(sqrt(2)),0,2*atan(sqrt(2)),pi]  # ok

@mforets
Copy link
Mannequin Author

mforets mannequin commented Jul 3, 2017

comment:2

see also #22322 (allow sympy algorithm in solve)

@fchapoton
Copy link
Contributor

comment:3

preliminary step in #23677

@fchapoton
Copy link
Contributor

Author: Frédéric Chapoton

@fchapoton
Copy link
Contributor

comment:4

just the basic setup, needs to be tested and improved


New commits:

8c2e14callow_giac_for_solve

@fchapoton
Copy link
Contributor

Commit: 8c2e14c

@fchapoton
Copy link
Contributor

Branch: u/chapoton/23136

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2021

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

5b04bfawork on giac solver

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2021

Changed commit from 8c2e14c to 5b04bfa

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2021

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

57c0ee7add giac algo in the doc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2021

Changed commit from 5b04bfa to 57c0ee7

@fchapoton
Copy link
Contributor

comment:8

should be almost good to go, needs testing

@tscrim
Copy link
Collaborator

tscrim commented Aug 30, 2021

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Aug 30, 2021

comment:9

Green patchbot and passes my simple testing. I don't know a good choice for a bigger stress-test, but the core mechanics of the interface seem to work. So positive review.

@vbraun
Copy link
Member

vbraun commented Aug 31, 2021

Changed branch from u/chapoton/23136 to 57c0ee7

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