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

Silence initialization of giac #35513

Merged
merged 2 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/sage/calculus/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ def integral(f, *args, **kwds):

Sage is now (:trac:`27958`) able to compute the following integral::

sage: result = integral(exp(-x^2)*log(x), x)
...
sage: result
sage: integral(exp(-x^2)*log(x), x) # long time
1/2*sqrt(pi)*erf(x)*log(x) - x*hypergeometric((1/2, 1/2), (3/2, 3/2), -x^2)

and its value::
Expand Down
4 changes: 1 addition & 3 deletions src/sage/calculus/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@
sage: integrate(sin(x^2),x)
1/16*sqrt(pi)*((I + 1)*sqrt(2)*erf((1/2*I + 1/2)*sqrt(2)*x) + (I - 1)*sqrt(2)*erf((1/2*I - 1/2)*sqrt(2)*x) - (I - 1)*sqrt(2)*erf(sqrt(-I)*x) + (I + 1)*sqrt(2)*erf((-1)^(1/4)*x))

sage: result = integrate((1-x^2)^n,x)
...
sage: result
sage: integrate((1-x^2)^n,x) # long time
x*hypergeometric((1/2, -n), (3/2,), x^2*exp_polar(2*I*pi))
sage: integrate(x^x,x)
integrate(x^x, x)
Expand Down
4 changes: 1 addition & 3 deletions src/sage/libs/giac/giac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ in giac, but the mathematical computation is not done. This class is mainly
for cython users. Here A is a Pygen element, and it is ready for any giac
function.::

sage: from sage.libs.giac.giac import * # random
//...
sage: from sage.libs.giac.giac import *
sage: A = Pygen('2+2')
sage: A
2+2
Expand Down Expand Up @@ -2012,7 +2011,6 @@ class GiacFunctionNoEV(Pygen):
# Some convenient settings
############################################################
Pygen('printpow(1)').eval() # default power is ^
Pygen('add_language(1)').eval() # Add the french keywords in the giac library language.
# FIXME: print I for sqrt(-1) instead of i
# GIAC_try_parse_i(False,context_ptr); (does not work??)

Expand Down
4 changes: 1 addition & 3 deletions src/sage/symbolic/integration/integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,7 @@ def integrate(expression, v=None, a=None, b=None, algorithm=None, hold=False):

where the default integrator obtains another answer::

sage: result = integrate(f(x), x)
...
sage: result
sage: integrate(f(x), x) # long time
1/8*sqrt(x)*gamma(1/4)*gamma(-1/4)^2*hypergeometric((-1/4, -1/4, 1/4), (1/2, 3/4), -1/x^2)/(pi*gamma(3/4))

The following definite integral is not found by maxima::
Expand Down