Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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: 2 additions & 2 deletions build/pkgs/maxima/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=maxima-VERSION.tar.gz
sha1=fff13f4c010e6daab65fbc8a6895c2bd79925177
sha256=9104021b24fd53e8c03a983509cb42e937a925e8c0c85c335d7709a14fd40f7a
sha1=c560b853864f333e999e475607de77facb9f358e
sha256=b0916b5fb37b6eeaae400083175e68e28f80b9a1ab580c106a05448cf1c496b2
upstream_url=https://sourceforge.net/projects/maxima/files/Maxima-source/VERSION-source/maxima-VERSION.tar.gz/download
2 changes: 1 addition & 1 deletion build/pkgs/maxima/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.47.0
5.48.1
2 changes: 1 addition & 1 deletion src/doc/de/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 174 in src/doc/de/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 174 in src/doc/de/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 174 in src/doc/de/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 174 in src/doc/de/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 174 in src/doc/de/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Hier ist ein komplizierteres Beispiel. Die Verschiebung des
Gleichgewichts einer verkoppelten Feder, die an der linken Wand
Expand Down
5 changes: 2 additions & 3 deletions src/doc/en/constructions/calculus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@
sage: var('x, k, w')
(x, k, w)
sage: f = x^3 * e^(k*x) * sin(w*x)
sage: f.integrate(x)

Check failure on line 157 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: ((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)

Check failure on line 157 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: ((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)

Check failure on line 157 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: ((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)

Check failure on line 157 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: ((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)

Check failure on line 157 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: ((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)
((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)
((24*k^3*w*e^(k*x) - 24*k*w^3*e^(k*x) - (k^6*w*e^(k*x) + 3*k^4*w^3*e^(k*x) + 3*k^2*w^5*e^(k*x) + w^7*e^(k*x))*x^3 + 6*(k^5*w*e^(k*x) + 2*k^3*w^3*e^(k*x) + k*w^5*e^(k*x))*x^2 - 6*(3*k^4*w*e^(k*x) + 2*k^2*w^3*e^(k*x) - w^5*e^(k*x))*x)*cos(w*x) - (6*k^4*e^(k*x) - 36*k^2*w^2*e^(k*x) + 6*w^4*e^(k*x) - (k^7*e^(k*x) + 3*k^5*w^2*e^(k*x) + 3*k^3*w^4*e^(k*x) + k*w^6*e^(k*x))*x^3 + 3*(k^6*e^(k*x) + k^4*w^2*e^(k*x) - k^2*w^4*e^(k*x) - w^6*e^(k*x))*x^2 - 6*(k^5*e^(k*x) - 2*k^3*w^2*e^(k*x) - 3*k*w^4*e^(k*x))*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)
sage: integrate(1/x^2, x, 1, infinity)
1

Expand Down Expand Up @@ -256,9 +256,8 @@
sage: var('s, t')
(s, t)
sage: f = t^5*exp(t)*sin(t)
sage: L = laplace(f, t, s); L

Check failure on line 259 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: 3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 + 720*(s - 1)/(s^2 - 2*s + 2)^4

Check failure on line 259 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: 3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 + 720*(s - 1)/(s^2 - 2*s + 2)^4

Check failure on line 259 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: 3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 + 720*(s - 1)/(s^2 - 2*s + 2)^4

Check failure on line 259 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: 3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 + 720*(s - 1)/(s^2 - 2*s + 2)^4

Check failure on line 259 in src/doc/en/constructions/calculus.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: 3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 + 720*(s - 1)/(s^2 - 2*s + 2)^4
3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 +
720*(s - 1)/(s^2 - 2*s + 2)^4
240*(3*s^5 - 15*s^4 + 20*s^3 - 12*s + 4)/(s^12 - 12*s^11 + 72*s^10 - 280*s^9 + 780*s^8 - 1632*s^7 + 2624*s^6 - 3264*s^5 + 3120*s^4 - 2240*s^3 + 1152*s^2 - 384*s + 64)

is another way.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/en/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 184 in src/doc/en/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 184 in src/doc/en/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 184 in src/doc/en/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 184 in src/doc/en/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 184 in src/doc/en/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Here is a more involved example. The displacement from equilibrium
(respectively) for a coupled spring attached to a wall on the left
Expand Down
2 changes: 1 addition & 1 deletion src/doc/es/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 166 in src/doc/es/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 166 in src/doc/es/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 166 in src/doc/es/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 166 in src/doc/es/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 166 in src/doc/es/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Veamos un ejemplo más complicado. El desplazamiento desde el punto de equilibrio
de dos resortes acoplados, sujetos a una pared a la izquierda
Expand Down
2 changes: 1 addition & 1 deletion src/doc/fr/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 151 in src/doc/fr/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 151 in src/doc/fr/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 151 in src/doc/fr/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 151 in src/doc/fr/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 151 in src/doc/fr/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Voici un exemple plus élaboré. L'élongation à partir du point
d'équilibre de ressorts couplés attachés à gauche à un mur
Expand Down
2 changes: 1 addition & 1 deletion src/doc/it/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 152 in src/doc/it/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 152 in src/doc/it/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 152 in src/doc/it/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 152 in src/doc/it/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 152 in src/doc/it/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Il successivo è un esempio più articolato. Lo scostamento dall'equilibrio
(rispettivamente) per due molle accoppiate fissate ad un muro a sinistra
Expand Down
2 changes: 1 addition & 1 deletion src/doc/ja/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 178 in src/doc/ja/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 178 in src/doc/ja/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 178 in src/doc/ja/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 178 in src/doc/ja/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 178 in src/doc/ja/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)


もう少し手間のかかる問題を考えてみよう.
Expand Down
2 changes: 1 addition & 1 deletion src/doc/pt/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 171 in src/doc/pt/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 171 in src/doc/pt/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 171 in src/doc/pt/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 171 in src/doc/pt/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 171 in src/doc/pt/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

A seguir, um exemplo mais complicado. O deslocamento, com respeito à
posição de equilíbrio, de duas massas presas a uma parede através de
Expand Down
2 changes: 1 addition & 1 deletion src/doc/ru/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)

Check failure on line 168 in src/doc/ru/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 168 in src/doc/ru/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 168 in src/doc/ru/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 168 in src/doc/ru/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3

Check failure on line 168 in src/doc/ru/tutorial/tour_algebra.rst

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Failed example:

Failed example:: Got: -1/(s^2 + 1) + 2/(s - 1)^3
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

Приведем более сложный пример. Отклонение от положения равновесия для пары
пружин, прикрепленных к стене слева,
Expand Down
5 changes: 2 additions & 3 deletions src/doc/zh/constructions/calculus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Sage 还可以计算涉及极限的符号定积分。
(x, k, w)
sage: f = x^3 * e^(k*x) * sin(w*x)
sage: f.integrate(x)
((24*k^3*w - 24*k*w^3 - (k^6*w + 3*k^4*w^3 + 3*k^2*w^5 + w^7)*x^3 + 6*(k^5*w + 2*k^3*w^3 + k*w^5)*x^2 - 6*(3*k^4*w + 2*k^2*w^3 - w^5)*x)*cos(w*x)*e^(k*x) - (6*k^4 - 36*k^2*w^2 + 6*w^4 - (k^7 + 3*k^5*w^2 + 3*k^3*w^4 + k*w^6)*x^3 + 3*(k^6 + k^4*w^2 - k^2*w^4 - w^6)*x^2 - 6*(k^5 - 2*k^3*w^2 - 3*k*w^4)*x)*e^(k*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)
((24*k^3*w*e^(k*x) - 24*k*w^3*e^(k*x) - (k^6*w*e^(k*x) + 3*k^4*w^3*e^(k*x) + 3*k^2*w^5*e^(k*x) + w^7*e^(k*x))*x^3 + 6*(k^5*w*e^(k*x) + 2*k^3*w^3*e^(k*x) + k*w^5*e^(k*x))*x^2 - 6*(3*k^4*w*e^(k*x) + 2*k^2*w^3*e^(k*x) - w^5*e^(k*x))*x)*cos(w*x) - (6*k^4*e^(k*x) - 36*k^2*w^2*e^(k*x) + 6*w^4*e^(k*x) - (k^7*e^(k*x) + 3*k^5*w^2*e^(k*x) + 3*k^3*w^4*e^(k*x) + k*w^6*e^(k*x))*x^3 + 3*(k^6*e^(k*x) + k^4*w^2*e^(k*x) - k^2*w^4*e^(k*x) - w^6*e^(k*x))*x^2 - 6*(k^5*e^(k*x) - 2*k^3*w^2*e^(k*x) - 3*k*w^4*e^(k*x))*x)*sin(w*x))/(k^8 + 4*k^6*w^2 + 6*k^4*w^4 + 4*k^2*w^6 + w^8)
sage: integrate(1/x^2, x, 1, infinity)
1

Expand Down Expand Up @@ -241,8 +241,7 @@ Sage 还可以计算涉及极限的符号定积分。
(s, t)
sage: f = t^5*exp(t)*sin(t)
sage: L = laplace(f, t, s); L
3840*(s - 1)^5/(s^2 - 2*s + 2)^6 - 3840*(s - 1)^3/(s^2 - 2*s + 2)^5 +
720*(s - 1)/(s^2 - 2*s + 2)^4
240*(3*s^5 - 15*s^4 + 20*s^3 - 12*s + 4)/(s^12 - 12*s^11 + 72*s^10 - 280*s^9 + 780*s^8 - 1632*s^7 + 2624*s^6 - 3264*s^5 + 3120*s^4 - 2240*s^3 + 1152*s^2 - 384*s + 64)

上面是另一种方法。

Expand Down
2 changes: 1 addition & 1 deletion src/doc/zh/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Sage 可以对许多函数进行微分和积分。
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)
-1/(s^2 + 1) + 2/(s - 1)^3
2/(s^3 - 3*s^2 + 3*s - 1) - 1/(s^2 + 1)

这里是一个更复杂的示例。左侧连接到墙上的耦合弹簧的平衡位移

Expand Down
8 changes: 4 additions & 4 deletions src/sage/calculus/calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
sage: M^2
[x^2 + x 2*x^3]
[ 2 x^2 + x]
sage: e^M

Check failure on line 135 in src/sage/calculus/calculus.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: [ 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x)) 1/2*(x*e^(2*sqrt(x)) - x)*sqrt(x)*e^(x - sqrt(x))] [ 1/2*(e^(2*sqrt(x)) - 1)*e^(x - sqrt(x))/x^(3/2) 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x))]
[ 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x)) 1/2*(x*e^(2*sqrt(x)) - x)*sqrt(x)*e^(x - sqrt(x))]
[ 1/2*(e^(2*sqrt(x)) - 1)*e^(x - sqrt(x))/x^(3/2) 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x))]
[ 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x)) 1/2*x^(3/2)*(e^(2*sqrt(x)) - 1)*e^(x - sqrt(x))]
[1/2*(e^(2*sqrt(x)) - 1)*e^(x - sqrt(x))/x^(3/2) 1/2*(e^(2*sqrt(x)) + 1)*e^(x - sqrt(x))]

Complex exponentiation works, but may require a patched version of
maxima (:issue:`32898`) for now::
Expand Down Expand Up @@ -1243,7 +1243,7 @@

sage: limit(sin(x)/x, x, 0, algorithm='sympy')
1
sage: limit(sin(x)/x, x, 0, algorithm='giac') # needs sage.libs.giac
sage: limit(sin(x)/x, x, 0, algorithm='giac') # needs sage.libs.giac
1
sage: limit(x^x, x, 0, dir='+', algorithm='fricas') # optional - fricas
1
Expand Down Expand Up @@ -1815,8 +1815,8 @@
(a, s, t)
sage: f = exp (2*t + a) * sin(t) * t; f
t*e^(a + 2*t)*sin(t)
sage: L = laplace(f, t, s); L

Check failure on line 1818 in src/sage/calculus/calculus.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: 2*(s - 2)*e^a/(s^2 - 4*s + 5)^2
2*(s - 2)*e^a/(s^2 - 4*s + 5)^2
2*(s - 2)*e^a/(s^4 - 8*s^3 + 26*s^2 - 40*s + 25)
sage: inverse_laplace(L, s, t)
t*e^(a + 2*t)*sin(t)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/calculus/test_sympy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
2*cos(2*x)
sage: diff(tan(x), x)
tan(x)^2 + 1
sage: limit((tan(x+y) - tan(x))/y, y=0)

Check failure on line 65 in src/sage/calculus/test_sympy.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: cos(x)^(-2)
cos(x)^(-2)
tan(x)^2 + 1
sage: diff(sin(2*x), x, 1)
2*cos(2*x)
sage: diff(sin(2*x), x, 2)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/calculus/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@

sage: integrate(exp(1-x^2),x)
1/2*sqrt(pi)*erf(x)*e
sage: integrate(sin(x^2),x)

Check failure on line 121 in src/sage/calculus/tests.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: 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))
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))
1/16*sqrt(pi)*((I + 1)*sqrt(2)*erf((1/2*I + 1/2)*sqrt(2)*x) - (I - 1)*sqrt(2)*erf(sqrt(-I)*x) - 2*sqrt(2)*imag_part(erf((-1)^(1/4)*x)) + 2*sqrt(2)*real_part(erf((-1)^(1/4)*x)))

sage: integrate((1-x^2)^n,x) # long time
x*hypergeometric((1/2, -n), (3/2,), x^2*exp_polar(2*I*pi))
Expand Down
10 changes: 5 additions & 5 deletions src/sage/functions/bessel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ class SphericalBesselJ(BuiltinFunction):
sage: spherical_bessel_J(4, x).simplify()
-((45/x^2 - 105/x^4 - 1)*sin(x) + 5*(21/x^2 - 2)*cos(x)/x)/x
sage: integrate(spherical_bessel_J(1,x)^2,(x,0,oo))
1/6*pi
0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reported this regression upstream at https://sourceforge.net/p/maxima/bugs/4601/

sage: latex(spherical_bessel_J(4, x))
j_{4}\left(x\right)

Expand Down Expand Up @@ -1772,7 +1772,7 @@ class SphericalBesselY(BuiltinFunction):
sage: integrate(spherical_bessel_Y(0, x), x)
-1/2*Ei(I*x) - 1/2*Ei(-I*x)
sage: integrate(spherical_bessel_Y(1,x)^2,(x,0,oo))
-1/6*pi
0
sage: latex(spherical_bessel_Y(0, x))
y_{0}\left(x\right)

Expand Down Expand Up @@ -1867,7 +1867,7 @@ class SphericalHankel1(BuiltinFunction):
sage: spherical_hankel1(3 + 0.2 * I, 3)
0.201654587512037 - 0.531281544239273*I
sage: spherical_hankel1(1, x).simplify()
-(x + I)*e^(I*x)/x^2
-I*(-I*x + 1)*e^(I*x)/x^2
sage: spherical_hankel1(3 + 2 * I, 5 - 0.2 * I)
1.25375216869913 - 0.518011435921789*I
sage: integrate(spherical_hankel1(3, x), x)
Expand Down Expand Up @@ -1965,11 +1965,11 @@ class SphericalHankel2(BuiltinFunction):
sage: spherical_hankel2(3 + 0.2 * I, 3)
0.0998874108557565 + 0.479149050937147*I
sage: spherical_hankel2(1, x).simplify()
-(x - I)*e^(-I*x)/x^2
I*(I*x + 1)*e^(-I*x)/x^2
sage: spherical_hankel2(2,i).simplify()
-e
sage: spherical_hankel2(2,x).simplify()
(-I*x^2 - 3*x + 3*I)*e^(-I*x)/x^3
-I*(x^2 - 3*I*x - 3)*e^(-I*x)/x^3
sage: spherical_hankel2(3 + 2*I, 5 - 0.2*I)
0.0217627632692163 + 0.0224001906110906*I
sage: integrate(spherical_hankel2(3, x), x)
Expand Down
33 changes: 17 additions & 16 deletions src/sage/interfaces/maxima.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@

You can even nicely typeset the solution in latex::

sage: latex(s)

Check failure on line 182 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: \left[ \left[ a=-\left({{\sqrt{79}\,i-11}\over{4}}\right) , b={{ \sqrt{79}\,i+9}\over{4}} , c={{\sqrt{79}\,i+1}\over{10}} \right] , \left[ a={{\sqrt{79}\,i+11}\over{4}} , b=-\left({{\sqrt{79}\,i-9 }\over{4}}\right) , c=-\left({{\sqrt{79}\,i-1}\over{10}}\right) \right] \right]
\left[ \left[ a=-...{{\sqrt{79}\,i-11}\over{4}}... , b={{...\sqrt{79}\,i+9...}\over{4}} , c={{\sqrt{79}\,i+1}\over{10}} \right] , \left[ a={{...\sqrt{79}\,i+11}\over{4}} , b=-...{{\sqrt{79}\,i-9...}\over{4}}... , c=-...{{...\sqrt{79}\,i-1}\over{10}}... \right] \right]
\left[ \left[ a=-\left({{\sqrt{79}\,i-11}\over{4}}\right) , b={{\sqrt{79}\,i +9}\over{4}} , c={{\sqrt{79}\,i+1}\over{10}} \right] , \left[ a={{\sqrt{79} \,i+11}\over{4}} , b=-\left({{\sqrt{79}\,i-9}\over{4}}\right) , c=-\left({{ \sqrt{79}\,i-1}\over{10}}\right) \right] \right]

To have the above appear onscreen via ``xdvi``, type
``view(s)``. (TODO: For OS X should create pdf output
Expand All @@ -201,12 +201,12 @@

::

sage: f = maxima('x^3 * %e^(k*x) * sin(w*x)'); f

Check failure on line 204 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: x^3*%e^(k*x)*sin(w*x)
x^3*%e^(k*x)*sin(w*x)
%e^(k*x)*x^3*sin(w*x)
sage: f.diff('x')

Check failure on line 206 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: k*x^3*%e^(k*x)*sin(w*x)+3*x^2*%e^(k*x)*sin(w*x)+w*x^3*%e^(k*x) *cos(w*x)
k*x^3*%e^(k*x)*sin(w*x)+3*x^2*%e^(k*x)*sin(w*x)+w*x^3*%e^(k*x) *cos(w*x)
%e^(k*x)*k*x^3*sin(w*x)+3*%e^(k*x)*x^2*sin(w*x)+%e^(k*x)*w*x^3 *cos(w*x)
sage: f.integrate('x')

Check failure on line 208 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: (((k*w^6+3*k^3*w^4+3*k^5*w^2+k^7)*x^3 +(3*w^6+3*k^2*w^4-3*k^4*w^2-3*k^6)*x^2+(-(18*k*w^4)-12*k^3*w^2+6*k^5)*x-6*w^4 +36*k^2*w^2-6*k^4) *%e^(k*x)*sin(w*x) +((-w^7-3*k^2*w^5-3*k^4*w^3-k^6*w)*x^3+(6*k*w^5+12*k^3*w^3+6*k^5*w)*x^2 +(6*w^5-12*k^2*w^3-18*k^4*w)*x-24*k*w^3 +24*k^3*w) *%e^(k*x)*cos(w*x)) /(w^8+4*k^2*w^6+6*k^4*w^4+4*k^6*w^2+k^8)
(((k*w^6+3*k^3*w^4+3*k^5*w^2+k^7)*x^3 +(3*w^6+3*k^2*w^4-3*k^4*w^2-3*k^6)*x^2+(...-...18*k*w^4)-12*k^3*w^2+6*k^5)*x-6*w^4 +36*k^2*w^2-6*k^4) *%e^(k*x)*sin(w*x) +((...-w^7...-3*k^2*w^5-3*k^4*w^3-k^6*w)*x^3...+(6*k*w^5+12*k^3*w^3+6*k^5*w)*x^2...+(6*w^5-12*k^2*w^3-18*k^4*w)*x-24*k*w^3 +24*k^3*w) *%e^(k*x)*cos(w*x)) /(w^8+4*k^2*w^6+6*k^4*w^4+4*k^6*w^2+k^8)
(((%e^(k*x)*k*w^6+3*%e^(k*x)*k^3*w^4+3*%e^(k*x)*k^5*w^2+%e^(k*x)*k^7)*x ^3 +(3*%e^(k*x)*w^6+3*%e^(k*x)*k^2*w^4-3*%e^(k*x)*k^4*w^2-3*%e^(k*x)*k^6)*x^2 +(-(18*%e^(k*x)*k*w^4)-12*%e^(k*x)*k^3*w^2+6*%e^(k*x)*k^5)*x-6*%e^(k*x)*w^4 +36*%e^(k*x)*k^2*w^2-6*%e^(k*x)*k^4) *sin(w*x) +((-(%e^(k*x)*w^7)-3*%e^(k*x)*k^2*w^5-3*%e^(k*x)*k^4*w^3-%e^(k*x)*k^6*w)*x^3 +(6*%e^(k*x)*k*w^5+12*%e^(k*x)*k^3*w^3+6*%e^(k*x)*k^5*w)*x^2 +(6*%e^(k*x)*w^5-12*%e^(k*x)*k^2*w^3-18*%e^(k*x)*k^4*w)*x-24*%e^(k*x)*k*w^3 +24*%e^(k*x)*k^3*w) *cos(w*x)) /(w^8+4*k^2*w^6+6*k^4*w^4+4*k^6*w^2+k^8)

::

Expand Down Expand Up @@ -276,14 +276,15 @@
::

sage: _ = maxima.eval("f(t) := t^5*exp(t)*sin(t)")
sage: maxima("laplace(f(t),t,s)")

Check failure on line 279 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: (360*(2*s-2))/(s^2-2*s+2)^4-(480*(2*s-2)^3)/(s^2-2*s+2)^5 +(120*(2*s-2)^5)/(s^2-2*s+2)^6
(360*(2*s-2))/(s^2-2*s+2)^4-(480*(2*s-2)^3)/(s^2-2*s+2)^5 +(120*(2*s-2)^5)/(s^2-2*s+2)^6
(720*s^5-3600*s^4+4800*s^3-2880*s+960) /(s^12-12*s^11+72*s^10-280*s^9+780*s^8-1632*s^7+2624*s^6-3264*s^5+3120*s^4 -2240*s^3+1152*s^2-384*s+64)
sage: print(maxima("laplace(f(t),t,s)"))

Check failure on line 281 in src/sage/interfaces/maxima.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Failed example:

Failed example:: Got: 3 5
3 5
360 (2 s - 2) 480 (2 s - 2) 120 (2 s - 2)
--------------- - --------------- + ---------------
2 4 2 5 2 6
(s - 2 s + 2) (s - 2 s + 2) (s - 2 s + 2)
5 4 3
(720 s - 3600 s + 4800 s - 2880 s + 960)
12 11 10 9 8 7 6 5
/(s - 12 s + 72 s - 280 s + 780 s - 1632 s + 2624 s - 3264 s
4 3 2
+ 3120 s - 2240 s + 1152 s - 384 s + 64)

::

Expand Down Expand Up @@ -349,11 +350,11 @@

sage: S = maxima('nusum(exp(1+2*i/n),i,1,n)')
sage: print(S)
2/n + 3 2/n + 1
%e %e
----------------------- - -----------------------
1/n 1/n 1/n 1/n
(%e - 1) (%e + 1) (%e - 1) (%e + 1)
2/n + 3 2/n + 1
%e %e
─────────────────────── - ───────────────────────
1/n 1/n 1/n 1/n
(%e - 1) (%e + 1) (%e - 1) (%e + 1)

We formally compute the limit as `n\to\infty` of
`2S/n` as follows::
Expand Down Expand Up @@ -402,7 +403,7 @@

sage: g = maxima('exp(3*%i*x)/(6*%i) + exp(%i*x)/(2*%i) + c')
sage: latex(g)
-...{{i\,e^{3\,i\,x}}\over{6}}...-{{i\,e^{i\,x}}\over{2}}+c
c-{{e^{3\,i\,x}\,i}\over{6}}-{{e^{i\,x}\,i}\over{2}}

Long Input
----------
Expand Down
38 changes: 19 additions & 19 deletions src/sage/interfaces/maxima_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@

EXAMPLES::

sage: t = maxima._tab_completion(verbose=False)

Check warning on line 340 in src/sage/interfaces/maxima_abstract.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Warning: slow doctest:

slow doctest:: Test ran for 19.44s cpu, 19.35s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 340 in src/sage/interfaces/maxima_abstract.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Warning: slow doctest:

slow doctest:: Test ran for 18.62s cpu, 18.54s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 340 in src/sage/interfaces/maxima_abstract.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Warning: slow doctest:

slow doctest:: Test ran for 19.06s cpu, 18.99s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 340 in src/sage/interfaces/maxima_abstract.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11, all)

Warning: slow doctest:

slow doctest:: Test ran for 22.76s cpu, 31.00s wall Check ran for 0.01s cpu, 0.00s wall

Check warning on line 340 in src/sage/interfaces/maxima_abstract.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12, all)

Warning: slow doctest:

slow doctest:: Test ran for 21.78s cpu, 26.55s wall Check ran for 0.00s cpu, 0.00s wall
sage: 'gcd' in t
True
sage: len(t) # random output
Expand Down Expand Up @@ -827,11 +827,11 @@
sage: maxima.de_solve('diff(y,x,2) + 3*x = y', ['x','y'], [1,1,1])
y = 3*x-2*%e^(x-1)
sage: maxima.de_solve('diff(y,x,2) + 3*x = y', ['x','y'])
y = %k1*%e^x+%k2*%e^-x+3*x
y = 3*x+%e^-x*%k2+%e^x*%k1
sage: maxima.de_solve('diff(y,x) + 3*x = y', ['x','y'])
y = (%c-3*(...-x...-1)*%e^-x)*%e^x
y = %e^x*(%c-3*%e^-x*(-x-1))
sage: maxima.de_solve('diff(y,x) + 3*x = y', ['x','y'],[1,1])
y = -...%e^-1*(5*%e^x-3*%e*x-3*%e)...
y = %e^-1*(3*%e*x-5*%e^x+3*%e)
"""
if not isinstance(vars, str):
str_vars = '%s, %s' % (vars[1], vars[0])
Expand Down Expand Up @@ -870,20 +870,20 @@

sage: maxima.clear('x'); maxima.clear('f')
sage: maxima.de_solve_laplace("diff(f(x),x,2) = 2*diff(f(x),x)-f(x)", ["x","f"], [0,1,2])
f(x) = x*%e^x+%e^x
f(x) = %e^x*x+%e^x

::

sage: maxima.clear('x'); maxima.clear('f')
sage: f = maxima.de_solve_laplace("diff(f(x),x,2) = 2*diff(f(x),x)-f(x)", ["x","f"])
sage: f
f(x) = x*%e^x*('at('diff(f(x),x,1),x = 0))-f(0)*x*%e^x+f(0)*%e^x
f(x) = %e^x*x*('at('diff(f(x),x,1),x = 0))-%e^x*f(0)*x+%e^x*f(0)
sage: print(f)
!
x d ! x x
f(x) = x %e (-- (f(x))! ) - f(0) x %e + f(0) %e
dx !
!x = 0
x d │ x x
f(x) = %e x (── (f(x)) ) - %e f(0) x + %e f(0)
dx
x = 0

.. NOTE::

Expand Down Expand Up @@ -1094,10 +1094,10 @@
sage: f = maxima('1/(x-1)^3'); f
1/(x-1)^3
sage: print(f)
1
--------
3
(x - 1)
1
────────
3
(x - 1)
"""
return self.display2d(onscreen=False)

Expand Down Expand Up @@ -1713,9 +1713,9 @@
sage: y,d = var('y,d')
sage: f = function('f')
sage: latex(maxima(derivative(f(x*y), x)))
\left(\left.{{{\it \partial}}\over{{\it \partial}\, {\it \_symbol}_{0}}}\,f\left( {\it \_symbol}_{0}\right)\right|_{ {\it \_symbol}_{0}={\it x}\, {\it y}}\right)\,{\it y}
\left(\left.{{{\it \partial}}\over{{\it \partial}\, {\it \_symbol}_{0}}}\,f\left({\it \_symbol}_{0} \right)\right|_{{\it \_symbol}_{0}={\it x}\, {\it y}}\right)\,{\it y}
sage: latex(maxima(derivative(f(x,y,d), d,x,x,y)))
{{{\it \partial}^4}\over{{\it \partial}\,{\it d}\, {\it \partial}\,{\it x}^2\,{\it \partial}\, {\it y}}}\,f\left({\it x} , {\it y} , {\it d}\right)
{{{\it \partial}^4}\over{{\it \partial}\,{\it d}\, {\it \partial}\,{\it x}^2\,{\it \partial}\,{\it y} }}\,f\left({\it x} , {\it y} , {\it d} \right)
sage: latex(maxima(d/(d-2)))
{{{\it d}}\over{{\it d}-2}}
"""
Expand Down Expand Up @@ -1826,9 +1826,9 @@
sage: f.partial_fraction_decomposition('x')
1/(2*(x-1))-1/(2*(x+1))
sage: print(f.partial_fraction_decomposition('x'))
1 1
--------- - ---------
2 (x - 1) 2 (x + 1)
1 1
───────── - ─────────
2 (x - 1) 2 (x + 1)
"""
return self.partfrac(var)

Expand Down
Loading
Loading