Skip to content

Commit 3655f73

Browse files
Changes
1 parent f287dda commit 3655f73

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed

Python/Sympy/.ipynb_checkpoints/Sympy-checkpoint.ipynb

+37-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 3,
14+
"execution_count": 2,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -130,6 +130,42 @@
130130
"c = sympy.sin(x)**2 + sympy.cos(x)**2\n",
131131
"c"
132132
]
133+
},
134+
{
135+
"cell_type": "code",
136+
"execution_count": 14,
137+
"metadata": {},
138+
"outputs": [
139+
{
140+
"name": "stdout",
141+
"output_type": "stream",
142+
"text": [
143+
"Enter the quation in terms of x: \n",
144+
"\n",
145+
"x**2-1\n"
146+
]
147+
},
148+
{
149+
"data": {
150+
"text/latex": [
151+
"$\\displaystyle \\left\\{-1, 1\\right\\}$"
152+
],
153+
"text/plain": [
154+
"FiniteSet(-1, 1)"
155+
]
156+
},
157+
"execution_count": 14,
158+
"metadata": {},
159+
"output_type": "execute_result"
160+
}
161+
],
162+
"source": [
163+
"from sympy import solveset\n",
164+
"x = Symbol('x')\n",
165+
"print(\"Enter the quation in terms of x: \\n\")\n",
166+
"equation = input()\n",
167+
"solveset(equation)"
168+
]
133169
}
134170
],
135171
"metadata": {

Python/Sympy/Sympy.ipynb

+37-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 3,
14+
"execution_count": 2,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -130,6 +130,42 @@
130130
"c = sympy.sin(x)**2 + sympy.cos(x)**2\n",
131131
"c"
132132
]
133+
},
134+
{
135+
"cell_type": "code",
136+
"execution_count": 14,
137+
"metadata": {},
138+
"outputs": [
139+
{
140+
"name": "stdout",
141+
"output_type": "stream",
142+
"text": [
143+
"Enter the quation in terms of x: \n",
144+
"\n",
145+
"x**2-1\n"
146+
]
147+
},
148+
{
149+
"data": {
150+
"text/latex": [
151+
"$\\displaystyle \\left\\{-1, 1\\right\\}$"
152+
],
153+
"text/plain": [
154+
"FiniteSet(-1, 1)"
155+
]
156+
},
157+
"execution_count": 14,
158+
"metadata": {},
159+
"output_type": "execute_result"
160+
}
161+
],
162+
"source": [
163+
"from sympy import solveset\n",
164+
"x = Symbol('x')\n",
165+
"print(\"Enter the quation in terms of x: \\n\")\n",
166+
"equation = input()\n",
167+
"solveset(equation)"
168+
]
133169
}
134170
],
135171
"metadata": {

0 commit comments

Comments
 (0)