Skip to content

Commit

Permalink
Minimal reproduction for #494
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Mar 30, 2024
1 parent 66ee972 commit 9843d13
Showing 1 changed file with 158 additions and 0 deletions.
158 changes: 158 additions & 0 deletions test/issues/494.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "5b654db6-895f-4253-9e00-ba39e02f5e87",
"metadata": {},
"source": [
"- https://github.com/pygae/galgebra/issues/494\n",
"- https://github.com/sympy/sympy/wiki/release-notes-for-1.10"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "3f90b44c-9c29-4412-a357-32aab6698290",
"metadata": {},
"outputs": [],
"source": [
"from sympy import symbols"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "9eca3371-cb29-4199-b37f-b634c540601d",
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$\\displaystyle a b^{2} x^{2} \\cdot \\left(4 a^{4} c^{2} x^{2} + a^{3} b^{3} + 5 b c x^{2}\\right)$"
],
"text/plain": [
"a*b**2*x**2*(4*a**4*c**2*x**2 + a**3*b**3 + 5*b*c*x**2)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(a, b, c) = abc = symbols('a,b,c',real=True)\n",
"x = symbols('x',real=True)\n",
"a*b**2*x**2*(4*a**4*c**2*x**2 + a**3*b**3 + 5*b*c*x**2)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "e361fc35-f681-4bc2-800c-75c18c045c58",
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$\\displaystyle a b^{2} x^{2} \\cdot \\left(4 a^{4} c^{2} x^{2} + 5 b c x^{2}\\right)$"
],
"text/plain": [
"a*b**2*x**2*(4*a**4*c**2*x**2 + 5*b*c*x**2)"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a*b**2*x**2*(4*a**4*c**2*x**2 + 5*b*c*x**2)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "51820828-d4ab-4b02-bbcc-d10846979f2d",
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$\\displaystyle a b^{2} x^{2} \\cdot \\left(4 a^{4} c^{2} x^{2} + a^{3} b^{3}\\right)$"
],
"text/plain": [
"a*b**2*x**2*(4*a**4*c**2*x**2 + a**3*b**3)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a*b**2*x**2*(4*a**4*c**2*x**2 + a**3*b**3)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "ec4f0a46-daed-4259-9a12-2220ff03883b",
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$\\displaystyle a b^{2} x^{2} \\left(a^{3} b^{3} + 5 b c x^{2}\\right)$"
],
"text/plain": [
"a*b**2*x**2*(a**3*b**3 + 5*b*c*x**2)"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a*b**2*x**2*(5*b*c*x**2 + a**3*b**3)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "eb446b9a-290c-4648-9b51-538e0a49004b",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "d88ea89e-90c8-4172-99f4-4ecf86621075",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit 9843d13

Please sign in to comment.